Commit graph

38 commits

Author SHA1 Message Date
Victor
1766afb2e0
0.17.0 release - improve startup and fix color temp (#324)
* Add working support for color temperature

* Lint fixes

* Fix to config json version to make it build

* Clean up and BLE constants and prepare for lightlevel UUID

* Eagerly send HA discovery, standardize colorTemp, clean up MQTT subscribe

* Fix typo in MqttClient

* Listen to HA birth messages to make devices available after HA restart

- Extract constants to common file

* Prepare for 0.17.0 release
2025-09-12 08:36:02 +02:00
swevictor
633f603e52 Add no-operation support for ext-01 2025-08-07 12:27:51 +02:00
swevictor
f6cdbdc155 Add support for OUT-02 2025-08-07 08:53:11 +02:00
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
fbfe239421 Add support for DWN-02 from dev to master 2025-08-05 10:35:42 +02:00
swevictor
1b9889c0ee Patch notes for new DIM-01 hardware 2025-08-05 09:43:37 +02:00
Tom Aafloen
0f3cee0284
Add DIM-01 support, hardware id 22 (#318)
Merge of PR to add support for DIM-01, hw id 22.
2025-08-04 16:38:36 +02:00
swevictor
9146f9c7d3 Lint and code style fixes 2023-10-06 14:11:23 +02:00
swevictor
14ba127182 Add support for DWN-01 smart tunable downlight 2023-10-02 08:58:11 +02:00
swevictor
5f77638ca3 Add support for the DAL-01 Dali broadcast with dimmer and tuneable white support 2023-08-25 15:57:00 +02:00
swevictor
cacd9fc4ba Linting of all fixes 2023-08-16 15:32:53 +02:00
swevictor
aaad0ebf61 Add description to device types to improve clarity 2023-08-15 15:18:53 +02:00
swevictor
f016058b57 Update the device list with new devices
- Based on the device list from @SM6WGG in https://github.com/icanos/hassio-plejd/issues/250#issuecomment-1269535099
2023-08-15 15:18:52 +02:00
swevictor
12a8f4e475 Catch errors due to unknown device type to avoid addon crashing 2023-08-15 15:18:52 +02:00
swevictor
b6a566f973 Add hardware id 14 as DIM-01 2022-04-12 09:15:08 +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
78b815d3f0 Updated legacy based on feedback from @SweVictor 2021-05-12 11:31:43 +02:00
faanskit
de30a6aa3d changed back behaviour of rooms as devices. Will not appear in suggested rooms 2021-05-12 10:45:27 +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
535c8f6c0f Fixed the issue when a WPH were configured with single click to run a scene.
Made code a bit more resilient.
2021-05-06 13:28:13 +02:00
faanskit
531aa8ee3e Fixed errors from npm run lint:fix 2021-05-05 19:34:34 +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
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
36e5c62b4f Fix for devices without output 2021-04-28 20:07:53 +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
dbc0e02f11 Minor fixes 2021-03-31 23:28:25 +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
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
55f0f60be9 Fix setting state for created Plejd room devices
- when using includeRoomsAsLights setting
2021-02-27 16:41:05 +01:00
Victor Hagelbäck
853511a755 Clarify login 403 error message 2021-02-10 10:23:27 +01:00
Victor Hagelbäck
be86f08bec Implement caching of API responses including setting to prefer cache to avoid api requests 2021-02-08 22:23:54 +01:00
Victor Hagelbäck
377c6a75db Rewrite PlejdAPI to async/await, set data in central DeviceRegistry 2021-02-04 08:06:23 +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/api.js (Browse further)