Commit graph

15 commits

Author SHA1 Message Date
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
ca7a5cdd57 Clean up events and subscriptions 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
55f0f60be9 Fix setting state for created Plejd room devices
- when using includeRoomsAsLights setting
2021-02-27 16:41:05 +01:00
Victor Hagelbäck
d133efe228 Fix type-o in writeFailed error handling 2021-02-11 22:45:13 +01:00
Victor Hagelbäck
ef7a5086a1 Handle when scene and device have the same Id
- Catch emitted errors in Mqtt
2021-02-10 10:10:28 +01:00
Victor Hagelbäck
898a9d822f Lint and style fixes 2021-02-04 08:08:28 +01:00
Victor Hagelbäck
75b9a1a8d7 Clarify MqttClient structure, logging, and start using DeviceRegistry 2021-02-04 08:06:23 +01:00
Victor Hagelbäck
5af6a8c452 Code lint fixes 2021-01-30 10:00:09 +01:00
Victor
dba9c98097
Merge pull request #115 from thomasloven/publish-availability
Publish availability of devices
2021-01-30 09:26:59 +01:00
Thomas Lovén
f3b8181107 Publish availability of devices 2021-01-29 22:56:29 +01:00
Thomas Lovén
9bb8f69c23 Actually listen to all topics too. Not just subscribe. 2021-01-29 21:06:50 +01:00
Thomas Lovén
2a3bcb0753 Listen to Home Assistant default birth topic by default 2021-01-28 14:24:04 +01:00
Victor Hagelbäck
5562c2d838 Improved error handling in event handling code
- Earlier errors would restart the addon
2021-01-25 08:06:28 +01:00
Victor Hagelbäck
281acd6ad8 Adjust code to airbnb style guide, including eslint rules and prettier configuration for code base 2021-01-22 15:49:02 +01:00
Renamed from plejd/mqtt.js (Browse further)