6 Commits
1.2.1 ... 1.2.3

Author SHA1 Message Date
0846a72931 Update
All checks were successful
continuous-integration/drone/push Build is passing
2022-01-07 16:50:16 -05:00
f1d1da0945 Adding step to remove old packages
All checks were successful
continuous-integration/drone/push Build is passing
2022-01-07 16:48:45 -05:00
76438d6811 Separating restart step
All checks were successful
continuous-integration/drone/push Build is passing
2022-01-07 16:38:49 -05:00
7971fd3ec1 Updating deployment step
All checks were successful
continuous-integration/drone/push Build is passing
2022-01-07 16:22:38 -05:00
3fe902c50b Adding deploy step
All checks were successful
continuous-integration/drone/push Build is passing
2022-01-07 16:16:15 -05:00
52a259dafd Fixing restart issue
All checks were successful
continuous-integration/drone/push Build is passing
2022-01-04 13:24:54 -05:00
4 changed files with 62 additions and 3 deletions

View File

@ -5,6 +5,9 @@ name: default
clone: clone:
disable: true disable: true
node:
lan: internal
steps: steps:
- name: clone - name: clone
image: alpine/git image: alpine/git
@ -66,6 +69,62 @@ steps:
exclude: exclude:
- pull_request - pull_request
- name: remove old package
image: appleboy/drone-ssh
environment:
SSH_USER:
from_secret: ssh_user
settings:
host: homebridge.me
envs:
- SSH_USER
username:
from_secret: ssh_user
key:
from_secret: ssh_key
port: 22
script:
- rm -r /home/$SSH_USER/.npm-global/lib/node_modules/@watsonb8/homebridge-harmony-control
when:
event:
- tag
exclude:
- pull_request
- name: deploy
image: appleboy/drone-ssh
settings:
host: homebridge.me
username:
from_secret: ssh_user
key:
from_secret: ssh_key
port: 22
script:
- npm install -g @watsonb8/homebridge-harmony-control --registry http://10.44.1.6:4873
when:
event:
- tag
exclude:
- pull_request
- name: restart homebridge
image: appleboy/drone-ssh
settings:
host: homebridge.me
username:
from_secret: elevated_ssh_user
key:
from_secret: ssh_key
port: 22
script:
- systemctl restart homebridge
when:
event:
- tag
exclude:
- pull_request
- name: Notify - name: Notify
image: drillster/drone-email image: drillster/drone-email
settings: settings:

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{ {
"name": "@watsonb8/homebridge-harmony-control", "name": "@watsonb8/homebridge-harmony-control",
"version": "1.2.1", "version": "1.2.3",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@ -1,6 +1,6 @@
{ {
"name": "@watsonb8/homebridge-harmony-control", "name": "@watsonb8/homebridge-harmony-control",
"version": "1.2.1", "version": "1.2.3",
"description": "Homebridge platform to control smart home equipment by room.", "description": "Homebridge platform to control smart home equipment by room.",
"main": "bin/index.js", "main": "bin/index.js",
"publishConfig": { "publishConfig": {

View File

@ -117,7 +117,7 @@ export class ActivityService {
let currentOtherState: IActivityState = let currentOtherState: IActivityState =
this._stateDataProvider.states[controlUnitKey]!; this._stateDataProvider.states[controlUnitKey]!;
if (!currentOtherState) { if (!currentOtherState || !currentOtherState.currentActivity) {
return devicesToTurnOn; return devicesToTurnOn;
} }