Commit graph

409 commits

Author SHA1 Message Date
faanskit
2610c1eaa4 Incorrect trigger 2021-05-05 19:18:43 +02:00
faanskit
5190341be6 removed ts-ignore 2021-05-05 19:05:52 +02:00
faanskit
78e1616b4e Updated to match the latest developer branch and modified according to feedback from review. 2021-05-05 19:02:10 +02:00
faanskit
cbcd33fde6
Added support for WRT-01 2021-05-05 12:33:30 +02:00
faanskit
39c0658871
Merge pull request #2 from faanskit/feature/id-refactor
Added support for WRT-10 as a Device Automation
2021-05-05 12:30:38 +02:00
faanskit
792a9e9840
Merge branch 'develop' into feature/id-refactor 2021-05-05 12:30:25 +02:00
faanskit
a9f31d188d
Merge pull request #1 from icanos/develop
Merge develop
2021-05-05 12:23:40 +02:00
Victor
34cb7b36d1
Merge pull request #179 from icanos/feature/id-refactor
Refactor unique id handling throughout the addon
2021-05-05 11:23:02 +02:00
Victor Hagelbäck
236e533c8a Set entiteis to correct type (switch/light) and fix availability for scenes
- General cleanup and clarification of MQTT messages
2021-05-03 09:50:54 +02:00
faanskit
5a21290364 Added support for WRT-10 as a Device Automation 2021-05-01 19:41:29 +02:00
Victor Hagelbäck
36e5c62b4f Fix for devices without output 2021-04-28 20:07:53 +02:00
Victor Hagelbäck
a633ffacb3 Quick-fix to force switch devices to the light mqtt domain 2021-04-27 11:36:38 +02:00
Victor Hagelbäck
74e381f009 Device triggers for scenes implemented 2021-04-26 13:13:10 +02:00
Victor Hagelbäck
b10583336e Replace mqttt scene switches with actual scenes 2021-04-24 09:22:36 +02:00
Victor Hagelbäck
aacf87a50c Revert mqtt v5 code since not supported by HassIO Mosquitto plugin 2021-04-23 10:42:18 +02:00
Victor Hagelbäck
c646bc55eb Revert scenes to register as switches over mqtt 2021-04-21 21:07:17 +02:00
Victor Hagelbäck
7c8373d2c7 Update mqtt package to v4
- Minor updates to other packages
- Relates to #181
2021-04-07 10:26:33 +02:00
Victor Hagelbäck
464c17d920 Fixes to scene handling and device unique id 2021-04-01 13:19:02 +02:00
Victor Hagelbäck
754fe00c9a Bump version to signify dev release and notify in changelog of breaking changes 2021-03-31 23:37:12 +02:00
Victor Hagelbäck
dbc0e02f11 Minor fixes 2021-03-31 23:28:25 +02:00
Victor Hagelbäck
7de1238c12 Refactor mqtt messaging to use unique id:s and trigger scenes rather than switches 2021-03-31 20:07:46 +02:00
Victor Hagelbäck
9a76a3ba50 Refactor code to use plejd outputs rather than devices as main entity 2021-03-31 20:07:15 +02:00
Victor Hagelbäck
ef718cf1db Add physical devices to DeviceRegistry to allow for serial number lookup during BLE startup 2021-03-31 19:57:25 +02:00
Victor Hagelbäck
d6b9d9104a Refactor DeviceRegistry to start use unique ids based on device serial and output index 2021-03-29 12:51:48 +02:00
Victor Hagelbäck
764a3ca223 Add typings and jsdoc comments to improve developer experience 2021-03-29 12:50:59 +02:00
Victor
f219b4b2bf
Merge pull request #178 from zissou1/patch-1
Update README.md
2021-03-25 20:53:46 +01:00
zissou1
c70731444c
Update README.md
Added intel NUC7i5BNH to ”tested on”
2021-03-25 20:10:27 +01:00
Victor
e5df9c9f52
Merge pull request #177 from icanos/develop
Release 0.7.1
2021-03-25 16:48:42 +01:00
Victor Hagelbäck
44856e16c2 Release 0.7.1 2021-03-25 16:47:33 +01:00
Victor Hagelbäck
5454c8e16b Fix room devices and bump version 2021-03-25 16:39:56 +01:00
Victor
afe7dba757
Merge pull request #174 from icanos/feature/0.7.0
Release 0.7.0
2021-03-23 13:51:16 +01:00
Victor Hagelbäck
8dd43979d8 Update changelog for 0.7.0 2021-03-23 13:50:08 +01:00
Victor Hagelbäck
f663cf4990 Update config for version 0.7.0 2021-03-23 13:45:12 +01:00
Victor
744230d5d3
Merge pull request #167 from SweVictor/feature/restructure-ble
Feature/restructure ble
2021-03-08 17:18:27 +01:00
Victor Hagelbäck
0f9ad41b9f Merge remote-tracking branch 'origin/feature/restructure-ble' into feature/restructure-ble 2021-02-28 10:32:44 +01:00
Victor Hagelbäck
517ab75e8e Invoke power cycling of the BLE adapter every 10th reconnect attempt 2021-02-28 10:32:17 +01:00
Victor Hagelbäck
042447d1a8 Stop recreating the dbus.systemBus on retries (old instances are not disposed correctly by underlying code) 2021-02-28 10:32:17 +01:00
Victor Hagelbäck
e7b8a5a82a Stop write queue when BLE is not connected to avoid loosing commands
- Set max retry count to 10 since BLE loop will set channel to disconnected after 5 retries (or known unrecoverable errors)
2021-02-28 10:32:17 +01:00
Victor Hagelbäck
4591af57b9 Remove redundant log row 2021-02-28 10:20:05 +01:00
Victor Hagelbäck
ca7a5cdd57 Clean up events and subscriptions 2021-02-28 10:20:05 +01:00
Victor Hagelbäck
4d7de61e42 Move BLE states to DeviceRegistry and improve logging
- Make deviceRegistry states/lists immutable
2021-02-28 10:20:05 +01:00
Victor Hagelbäck
8d259a768b Fix turn off and dim commands 2021-02-28 10:20:05 +01:00
Victor Hagelbäck
fb48b1fd1f Split device communication and BLE handling into separate files 2021-02-28 10:18:32 +01:00
Victor Hagelbäck
b3adf221e2 Break out and structure creation of BLE command payloads 2021-02-28 10:18:32 +01:00
Victor Hagelbäck
e986c8b85a Bump version to 0.6.2 2021-02-27 16:41:20 +01:00
Victor Hagelbäck
55f0f60be9 Fix setting state for created Plejd room devices
- when using includeRoomsAsLights setting
2021-02-27 16:41:05 +01:00
Victor Hagelbäck
6855e03e68 Invoke power cycling of the BLE adapter every 10th reconnect attempt 2021-02-27 13:46:41 +01:00
Victor
3804c63991
Merge pull request #166 from icanos/develop
Release v0.6.0
2021-02-27 10:43:15 +01:00
Victor Hagelbäck
925ccba647 Stop recreating the dbus.systemBus on retries (old instances are not disposed correctly by underlying code) 2021-02-27 09:57:29 +01:00
Victor Hagelbäck
4d5a4ddbe3 Stop write queue when BLE is not connected to avoid loosing commands
- Set max retry count to 10 since BLE loop will set channel to disconnected after 5 retries (or known unrecoverable errors)
2021-02-22 09:50:06 +01:00