Victor Hagelbäck
2bf2c05915
Fix wrong initial brightness when transitioning turned-off lights
2021-01-16 10:00:33 +01:00
John Lindahl
7bc4801289
Cleanup of clearTimeout and nonasync funcs
2021-01-13 19:43:11 +01:00
John Lindahl
8fda4a8d61
Define delayedInit in constructor
2021-01-13 10:00:07 +01:00
John Lindahl
126c393cee
multiple fixes for improved lifecycle and errors
...
* Init and _internalInit is actually awaitable
* this.bleDevices is reset on init
* check for actual data in write to preven length of undefined
* Throttled re-inits on write-errors.
2021-01-13 01:47:05 +01:00
Victor Hagelbäck
a618c038d2
Fix incorrect branching when brightness === 0
2021-01-02 10:04:24 +01:00
Victor Hagelbäck
4eeaac0626
Fix typo omitting "this"
2021-01-01 20:48:53 +01:00
Victor Hagelbäck
e01f0f2061
Improved transitioning of brightness
...
- Unified turn on/off - brightness = 0 => turn off command
- Cancel any ongoing transition before starting new
- Drop transition steps if communication is slow
2021-01-01 20:15:00 +01:00
Marcus Westin
4455d6cb8c
added missing state
2020-06-12 11:16:48 +02:00
Marcus Westin
8a2da6d46f
reworked some transitions stuff
2020-06-12 11:15:00 +02:00
Marcus Westin
b7f3f65ff0
added new config parameter and upped version
2020-03-03 16:22:30 +01:00
Marcus Westin
49214bf8f4
compile error
2020-03-03 16:07:15 +01:00
Marcus Westin
80950906e3
do not break this
2020-03-03 16:06:52 +01:00
Marcus Westin
819c6c8266
fixed typo
2020-03-03 16:05:48 +01:00
Marcus Westin
5e11f39c86
reworked write queue
2020-03-03 15:59:10 +01:00
icanos
d2beca6fb2
implemented support for Plejd scenes, wph-01 and write queues
2020-02-29 15:54:08 +00:00
icanos
c87eee2d2c
added some config and logging
2020-01-27 20:43:52 +00:00
icanos
0fa82e3681
potential bug fixed and new version
2020-01-24 17:30:17 +00:00
Marcus Westin
df4cdc1141
minor fixes
2020-01-24 10:20:39 +01:00
Marcus Westin
ff1952cd88
added entities as devices and stability in ble
2020-01-21 14:24:02 +00:00
icanos
85a194b794
optimization
2020-01-20 21:32:46 +00:00
Marcus Westin
6e524c7189
removed logging
2020-01-20 14:20:40 +00:00
Marcus Westin
3dd1ddf9bf
small fixes
2020-01-20 14:17:06 +00:00
Marcus Westin
27e8326202
clear previous ble devices
2020-01-20 14:11:58 +00:00
Marcus Westin
c078683e71
moved again
2020-01-20 14:10:30 +00:00
Marcus Westin
58041b1d99
moved listening to plejd events
2020-01-20 14:08:43 +00:00
Marcus Westin
ce84a296ab
reconnect and version up
2020-01-20 12:28:02 +00:00
icanos
667beaa11f
continued work
2020-01-20 10:58:03 +00:00
Marcus Westin
51c257d461
added event handler for lastData, cleaned up loggin
2020-01-20 07:58:23 +00:00
icanos
682a181a28
continued work on bluez implementation
2020-01-19 20:08:48 +00:00
icanos
ff04e8da41
continued work with bluez
2020-01-18 15:50:46 +00:00
Marcus Westin
7a1ee5a504
start converting ble to bluez
2020-01-17 14:50:58 +00:00