Skip to content
New issue

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

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

Already on GitHub? # to your account

RGBW device support #7

Open
enesbcs opened this issue Mar 11, 2023 · 1 comment
Open

RGBW device support #7

enesbcs opened this issue Mar 11, 2023 · 1 comment

Comments

@enesbcs
Copy link
Owner

enesbcs commented Mar 11, 2023

The problem

Domoticz MQTT-AD defaultly sends this payload for RGB devices:
{"color":{"b":77,"g":132,"r":255},"state":"ON"}

It also contains a "hack" to send this payloads for Fibaro FGRGBW:
"value": {"red": 255, "green": 132, "blue": 77}}

But none of the above will work with Shelly as it needs such payload to operate:

{ "mode": "color", "turn": "on","red": 0,"green": 0,"blue": 255,"gain": 100,"white": 0}

See Shelly docs: https://shelly-api-docs.shelly.cloud/gen1/#shelly-bulb-rgbw-mqtt

For adding Shelly RGBW device support, Domoticz MQTT-AD has to implement these at least partially:

rgbw_command_topic, rgbw_command_template, rgbw_state_topic, rgbw_value_template

See HA docs: https://www.home-assistant.io/integrations/light.mqtt/

@enesbcs
Copy link
Owner Author

enesbcs commented Dec 3, 2023

domoticz/domoticz#5896

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant