Commit graph

12 commits

Author SHA1 Message Date
Victor
b3c6334f0c
Improve MQTT behavior and add experimental parsing for color temp support from Plejd API (#298)
* Update underlying docker containers and dependencies.
* Minor linting and code issues fixes
* Update supported devices section
* Improve Mqtt message properties - retain, etc.
- Retain discovery messages
- Don't retain others
- Set QoS to 1 consistently to ensure at least once delivery
- Set session timeout to ensure a reasonable TTL on messages
* Code and logic to remove any retained mqtt messages for SET/STATE/AVAILABILITY
* Temporary restructure of init flow for mqtt.
- No longer wait for HA birth message
- Don't listen to incoming messages until old retained messages have been purged.
- More details in https://github.com/icanos/hassio-plejd/issues/218
* Fix lingering incorrect access of connectedDevice.id
* Fix to avoid Home Assistant setting retain flag on MQTT SET STATE messages
* Parse new TRAIT=15, assuming this means dimmable and tunable white
* Clarify TRAITS bitmask values
* Add experimental parsing for color temp support from Plejd API
* Lint fixes
* Remove null coalescing operator since we don't compile code
* Handle case where outputSettings is null in PlejdApi
* Solve MQTT errors due to deprecated api color_temp and unsupported removal of retained state messages
2025-08-05 19:55:50 +02:00
swevictor
aaad0ebf61 Add description to device types to improve clarity 2023-08-15 15:18:53 +02:00
swevictor
efac28fc30 Change API entity definition from enum to string for relevant types 2023-08-15 15:18:52 +02:00
Victor Hagelbäck
56870879b8 Change behavior to add all devices to Home Assistan, whether they are hidden in the Plejd app or not 2021-06-21 12:06:08 +02:00
faanskit
729559750e Updated based on review feedback from @SweVictor. Thanks! 2021-05-11 21:03:48 +02:00
faanskit
7ba38d6acf Lights and switches, including roomsAsLighs, is now proposing an area for Home Assistant based on the room name from Plejd.
This by using suggested_area in MQTT config.

In many installations, Plejd units have the same name and are separated by the room they belong to.
Eg. Badrum -> Spottar, Kök->Spottar, Sovrum->Taklampa, Kök->Taklampa

With 8.0.0 devices can have the same name, and therefore it makes sense to now also support areas.
2021-05-07 08:52:57 +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
792a9e9840
Merge branch 'develop' into feature/id-refactor 2021-05-05 12:30:25 +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
9a76a3ba50 Refactor code to use plejd outputs rather than devices as main entity 2021-03-31 20:07:15 +02:00
Victor Hagelbäck
764a3ca223 Add typings and jsdoc comments to improve developer experience 2021-03-29 12:50:59 +02:00