Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update channel levels based on wall plate key presses #5

Open
marengaz opened this issue Jun 5, 2020 · 1 comment
Open

update channel levels based on wall plate key presses #5

marengaz opened this issue Jun 5, 2020 · 1 comment

Comments

@marengaz
Copy link
Owner

marengaz commented Jun 5, 2020

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
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants