marengaz / rakomqtt

Interpreter between rako bridge and home assistant's mqtt light platform
MIT License
6 stars 2 forks source link

update channel levels based on wall plate key presses #5

Open marengaz opened 4 years ago

marengaz commented 4 years ago

rako bridge only issues status updates at the level you send the command

example 1: i. set scene 1 for room 42. this can be done in the rako app/wall plate/HA via mqtt command_topic: "rako/room/42/set" ii. rako bridge sends a state update of "scene 1 was applied to room 42", which gets sent back to mqtt state_topic "rako/room/42" NOTE: Rako room scenes 1,2,3,4,off are mapped to home assistant brightness levels 255,192,128,64,0 respectively (1 being the brightest, 4 being the dimmest).

example 2: i. set level 255 (100%) for room 42, channel 5. this can be done in the rako app/HA via mqtt command_topic: "rako/room/42/channel/5/set" ii. rako bridge sends a state update of "level 255 was applied to room 42, channel 5", which gets sent back to mqtt state_topic "rako/room/42/channel/5"

the feature we would like is all the functionality of example 2, but a small modification to example 1: i. set scene 1 for room 42. this can be done in the rako app/wall plate/HA via mqtt command_topic: "rako/room/42/set" ii. rako bridge sends a state update of "scene 1 was applied to room 42", which gets sent back to mqtt state_topic "rako/room/42" *additionally, all channels that are affected by the scene change are sent back to mqtt state_topic "rako/room/42/channel/" with their individual brightnesses**

there must be a way to do this, because the app updates channel levels based on wall plate key presses, but i'm not sure exactly how!?

shawwellpete commented 3 years ago

Hi @marengaz, have just got your poratiner container working, thank you so much!

As well as updating the channel based on wall plate key presses it would be ideal if the status was changed elsewhere, say using Alexa or Apple Homekit with rako cloud.

Is there a way to use MQTT to check the status of all light periodically?