Skip to content

Commit

Permalink
v1.2.5 (#121)
Browse files Browse the repository at this point in the history
## [Version 1.2.5](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.2.5) (2021-11-25)

## What's Changed
* Fixed Bug: Where `set_minLux` & `set_maxLux` config settings not effecting OpenAPI Lux.

**Full Changelog**: v1.2.4...v1.2.5
  • Loading branch information
donavanbecker authored Nov 25, 2021
1 parent 66a0b3b commit 0dfa437
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

All notable changes to this project will be documented in this file. This project uses [Semantic Versioning](https://semver.org/)

## [Version 1.2.5](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.2.5) (2021-11-25)

## What's Changed
* Fixed Bug: Where `set_minLux` & `set_maxLux` config settings not effecting OpenAPI Lux.

**Full Changelog**: https://github.com/OpenWonderLabs/homebridge-switchbot/compare/v1.2.4...v1.2.5

## [Version 1.2.4](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.2.4) (2021-11-24)

## What's Changed
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"displayName": "Homebridge SwitchBot",
"name": "@switchbot/homebridge-switchbot",
"version": "1.2.4",
"version": "1.2.5",
"description": "The [Homebridge](https://homebridge.io) SwitchBot plugin allows you to access your [SwitchBot](https://www.switch-bot.com) device(s) from HomeKit.",
"author": "SwitchBot <[email protected]> (https://github.com/SwitchBot)",
"license": "ISC",
Expand Down
6 changes: 4 additions & 2 deletions src/devices/curtains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -373,14 +373,16 @@ export class Curtain {
+ ` TargetPosition: ${this.TargetPosition}, PositionState: ${this.PositionState},`);

if (!this.device.curtain?.hide_lightsensor) {
this.set_minLux = this.minLux();
this.set_maxLux = this.maxLux();
// Brightness
switch (this.deviceStatus.body.brightness) {
case 'dim':
this.CurrentAmbientLightLevel = 0.0001;
this.CurrentAmbientLightLevel = this.set_minLux;
break;
case 'bright':
default:
this.CurrentAmbientLightLevel = 100000;
this.CurrentAmbientLightLevel = this.set_maxLux;
}
this.platform.debug(`Curtain: ${this.accessory.displayName} CurrentAmbientLightLevel: ${this.CurrentAmbientLightLevel}`);
}
Expand Down

0 comments on commit 0dfa437

Please sign in to comment.