@buckyfan wrote:
Hello. I’ve upgrade incandescent bulbs that were controlled by a Martin Jerry dimmer switch to RGBCCT bulbs. All devices have been flashed via Tuya Convert to Tasmota. MQTT is enabled and partially implemented. I think the error is in my MQTT definitions but I’m stuck. I want the MJ dimmer to control the brightness of the two bulbs. If I drag the brightness slider from HA, the bulbs dim properly and the display on the dimmer switch will match current state. However, if I use the pushbutton on the switch to alter the brightness, bulbs don’t respond. The slider in HA moves correctly, but bulbs just don’t see the change.
Fireplace -> Dimmer switch
FireplaceRGBx -> RGB bulbs
Fireplace Lights -> Group containing both RGB lights
Code from the lights.yaml file. I also set “Grouptopic” in Tasmota to “fireplace”
### Family Room - platform: mqtt name: "Fireplace" state_topic: "stat/fireplace/POWER" command_topic: "cmnd/fireplace/POWER" availability_topic: "tele/fireplace/LWT" brightness_state_topic: "stat/fireplace/RESULT" brightness_command_topic: "cmnd/fireplace/Dimmer" brightness_scale: 100 brightness_value_template: "{{ value_json.Dimmer }}" qos: 1 payload_on: "ON" payload_off: "OFF" payload_available: "Online" payload_not_available: "Offline" retain: false - platform: mqtt name: "FireplaceRGB1" command_topic: "cmnd/fireplace1_rgbcct/POWER" state_topic: "tele/fireplace1_rgbcct/STATE" state_value_template: "{{value_json.POWER}}" availability_topic: "tele/fireplace1_rgbcct/LWT" # brightness_command_topic: "cmnd/fireplace1_rgbcct/Dimmer" brightness_command_topic: "cmnd/fireplace/Dimmer" brightness_state_topic: "tele/fireplace1_rgbcct/STATE" brightness_scale: 100 on_command_type: "brightness" brightness_value_template: "{{value_json.Dimmer}}" color_temp_command_topic: "cmnd/fireplace1_rgbcct/CT" color_temp_state_topic: "tele/fireplace1_rgbcct/STATE" color_temp_value_template: "{{value_json.CT}}" rgb_command_topic: "cmnd/fireplace1_rgbcct/Color2" rgb_state_topic: "tele/fireplace1_rgbcct/STATE" rgb_value_template: "{{value_json.Color.split(',')[0:3]|join(',')}}" effect_command_topic: "cmnd/fireplace1_rgbcct/Scheme" effect_state_topic: "tele/fireplace1_rgbcct/STATE" effect_value_template: "{{value_json.Scheme}}" effect_list: - 0 - 1 - 2 - 3 - 4 payload_on: "ON" payload_off: "OFF" payload_available: "Online" payload_not_available: "Offline" qos: 1 retain: false
Any help would be appreciated! I realize I’ll have to change color, temperature, etc via the app.
Posts: 1
Participants: 1