faanskit
93eca16639
Added support to report back to HA via MQTT when a Scene is executed, so that following device_automations gets executed.
...
This will make Plejd Scene execution behave the same from Plejd App, Plejd Hardware and Home Assistant Scene triggered - in the eyes of Home Assistant
2021-05-20 13:49:44 +02:00
faanskit
9cf3b3bdd6
Fix for issue discussed im #198 . Scene device triggers were not unique from Scenes and device_trigger /config topic was too long
2021-05-20 07:24:22 +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
d239aacbc1
Fixed error only showing in github for the readme
2021-05-07 18:37:07 +02:00
faanskit
4b85782784
Merge pull request #3 from faanskit/Develop
...
Updated CHANGELOG to reflect additions with rooms.
2021-05-07 18:30:14 +02:00
faanskit
672c957fd3
Updated CHANGELOG to reflect additions with rooms.
...
Updated README to provide clarity how different Plejd units will be propagated into Home Assistant.
Updated README to solve #189
2021-05-07 18:25:47 +02:00
faanskit
dc3d2237da
Updating the Plejd / HA Device information model to be compatible with suggested_area.
2021-05-07 10:59:52 +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
49024f5392
Updated README.md to include information about WRT-01, tested by @vBrolin
2021-05-06 13:43:51 +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
c8890b8cd7
Updates based om comments from @SweVictor
2021-05-06 07:58:06 +02:00
faanskit
531aa8ee3e
Fixed errors from npm run lint:fix
2021-05-05 19:34:34 +02:00
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
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
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
zissou1
c70731444c
Update README.md
...
Added intel NUC7i5BNH to ”tested on”
2021-03-25 20:10:27 +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 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 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