Commit graph

19 commits

Author SHA1 Message Date
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)