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

Sonoff B1 change color and dim with domoticz #981

Closed
sth313 opened this issue Oct 6, 2017 · 4 comments
Closed

Sonoff B1 change color and dim with domoticz #981

sth313 opened this issue Oct 6, 2017 · 4 comments

Comments

@sth313
Copy link

sth313 commented Oct 6, 2017

I got my B1 working with tasmota, with the console the color could be changed.

Is it also possible to add the bulb to domoticz and change the color and dim the lights?

For now i can only turn it on and off with a RGBW dimmer selected.

@arendst
Copy link
Owner

arendst commented Oct 8, 2017

As I am unable to find any configurable and useable RGB configuration in Domoticz using MQTT please provide more information about Domoticz RGB posibilities for non zigbee devices.

@sth313
Copy link
Author

sth313 commented Oct 9, 2017

I didn't got it working with Domoticz either so I switched to Home Assistant with Hass.io. With HA i was able to use this configuration:

light:
platform: mqtt
name: "Lounge lamp"
state_topic: "stat/sonoff/POWER"
state_value_template: "{{ value_json.state }}"
command_topic: "cmnd/sonoff/POWER"
rgb_state_topic: "stat/sonoff/COLOR/RESULT"
rgb_command_topic: "cmnd/sonoff/COLOR"
rgb_command_template: "{{ '#%02x%02x%02x%02x%02x' | format(red, green, blue, 00, 00)}}"
brightness_state_topic: "stat/sonoff/RESULT"
brightness_command_topic: "cmnd/sonoff/DIMMER"
brightness_scale: 100
brightness_value_template: "{{ value_json.brightness }}"
color_temp_state_topic: "stat/sonoff/RESULT"
color_temp_command_topic: "cmnd/sonoff/CT"
color_temp_value_template: "{{ value_json.color_temp }}"
qos: 0
payload_on: "ON"
payload_off: "OFF"
optimistic: false
retain: true

found on link

Meaby the code can be rewriten for domoticz?

@sth313 sth313 closed this as completed Oct 11, 2017
@PeggyFree
Copy link

PeggyFree commented Oct 11, 2017 via email

@ahmeaqas
Copy link

Use RGB WW Virtual Switch in Domoticz for Colour / Warm / Cold / Brightness etc. features

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

4 participants