Skip to content

Commit

Permalink
node-switchbot beta
Browse files Browse the repository at this point in the history
  • Loading branch information
donavanbecker committed Oct 21, 2024
1 parent 4d990b3 commit a10eb6b
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 54 deletions.
88 changes: 39 additions & 49 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
"async-mqtt": "^2.6.3",
"fakegato-history": "^0.6.5",
"homebridge-lib": "^7.0.9",
"node-switchbot": "^3.1.2-beta.2",
"node-switchbot": "^3.1.2-beta.5",
"rxjs": "^7.8.1"
},
"devDependencies": {
Expand All @@ -97,7 +97,7 @@
"eslint": "^9.13.0",
"eslint-plugin-format": "^0.1.2",
"homebridge": "^1.8.4",
"homebridge-config-ui-x": "4.61.0",
"homebridge-config-ui-x": "4.62.0",
"nodemon": "^3.1.7",
"npm-check-updates": "^17.1.4",
"shx": "^0.3.4",
Expand Down
4 changes: 1 addition & 3 deletions src/device/motion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,7 @@ export class Motion extends deviceBase {
accessory.context.LightSensor = this.LightSensor as object

// Initialize LightSensor Characteristics
this.LightSensor.Service.setCharacteristic(this.hap.Characteristic.Name, this.LightSensor.Name).setCharacteristic(this.hap.Characteristic.StatusActive, true).getCharacteristic(this.hap.Characteristic.CurrentAmbientLightLevel).onGet(() => {
return this.LightSensor!.CurrentAmbientLightLevel
})
this.LightSensor.Service.setCharacteristic(this.hap.Characteristic.Name, this.LightSensor.Name).setCharacteristic(this.hap.Characteristic.StatusActive, true)
};

// Retrieve initial values and updateHomekit
Expand Down

0 comments on commit a10eb6b

Please sign in to comment.