Skip to content

Smart Bulbs

digiblur edited this page Mar 22, 2019 · 5 revisions

Utilize the latest digiDim bin file to always report the state of the light and dimming/color levels in HA.

RGBW Lights (4 channel lights)

Configure the Device Module and run the following on the Tasmota console: SetOption17 1 - This enables decimal colors

# Example configuration.yaml entry - change all light1 topics to the topic of your device
light:
  - platform: mqtt
    name: "Light 1"
    command_topic: "cmnd/light1/POWER"
    state_topic: "stat/light1/RESULT"
    state_value_template: "{{value_json.POWER}}"
    availability_topic: "tele/light1/LWT"
    brightness_command_topic: "cmnd/light1/Dimmer"
    brightness_state_topic: "stat/light1/RESULT"
    brightness_scale: 100
    on_command_type: "brightness"
    brightness_value_template: "{{value_json.Dimmer}}"
    white_value_state_topic: "stat/light1/RESULT"
    white_value_command_topic: "cmnd/light1/Channel4"
    white_value_scale: 100
    white_value_template: "{{ value_json.Channel[3] }}"
    rgb_command_topic: "cmnd/light1/Color2"
    rgb_state_topic: "stat/light1/RESULT"
    rgb_value_template: "{{value_json.Color.split(',')[0:3]|join(',')}}"
    effect_command_topic: "cmnd/light1/Scheme"
    effect_state_topic: "stat/light1/RESULT"
    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

RGBW Lights (4 channel lights) with detached white value

Alternate schema to detach white value slider and reset the RGB leds off when adjusting the white light value.

  - platform: mqtt
    name: "Light1"
    command_topic: "cmnd/Light1/POWER"
    state_topic: "stat/Light1/RESULT"
    state_value_template: "{{value_json.POWER}}"
    availability_topic: "tele/Light1/LWT"
    brightness_command_topic: "cmnd/Light1/Dimmer"
    brightness_state_topic: "stat/Light1/RESULT"
    brightness_scale: 100
    on_command_type: "brightness"
    brightness_value_template: "{{value_json.Dimmer}}"
    white_value_state_topic: "stat/Light1/RESULT"
    white_value_command_topic: "cmnd/Light1/white"
    white_value_scale: 100
    white_value_template: "{{ value_json.Channel[3] }}"
    rgb_command_topic: "cmnd/Light1/Color2"
    rgb_state_topic: "stat/Light1/RESULT"
    rgb_value_template: "{{value_json.Color.split(',')[0:3]|join(',')}}"
    effect_command_topic: "cmnd/Light1/Scheme"
    effect_state_topic: "stat/Light1/RESULT"
    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

RGBWW Lights (5 channel lights)

Configure the Device Module and run the following on the Tasmota console: SetOption17 1 - This enables decimal colors

# Example configuration.yaml entry - change all light1 topics to the topic of your device
light:
  - platform: mqtt
    name: "Light 1"
    command_topic: "cmnd/light1/POWER"
    state_topic: "stat/light1/RESULT"
    state_value_template: "{{value_json.POWER}}"
    availability_topic: "tele/light1/LWT"
    brightness_command_topic: "cmnd/light1/Dimmer"
    brightness_state_topic: "stat/light1/RESULT"
    brightness_scale: 100
    on_command_type: "brightness"
    brightness_value_template: "{{value_json.Dimmer}}"
    color_temp_command_topic: "cmnd/light1/CT"
    color_temp_state_topic: "stat/light1/RESULT"
    color_temp_value_template: "{{value_json.CT}}"
    rgb_command_topic: "cmnd/light1/Color2"
    rgb_state_topic: "stat/light1/RESULT"
    rgb_value_template: "{{value_json.Color.split(',')[0:3]|join(',')}}"
    effect_command_topic: "cmnd/light1/Scheme"
    effect_state_topic: "stat/light1/RESULT"
    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

CWWW Lights (2 channel lights)

Configure the Device Module and run the following on the Tasmota console: SetOption17 1 - This enables decimal colors

# Example configuration.yaml entry - change all light1 topics to the topic of your device
light:
  - platform: mqtt
    name: "Light 1"
    command_topic: "cmnd/light1/POWER"
    state_topic: "stat/light1/RESULT"
    state_value_template: "{{value_json.POWER}}"
    availability_topic: "tele/light1/LWT"
    brightness_command_topic: "cmnd/light1/Dimmer"
    brightness_state_topic: "stat/light1/RESULT"
    brightness_scale: 100
    on_command_type: "brightness"
    brightness_value_template: "{{value_json.Dimmer}}"
    color_temp_command_topic: "cmnd/light1/CT"
    color_temp_state_topic: "stat/light1/RESULT"
    color_temp_value_template: "{{value_json.CT}}"
    payload_on: "ON"
    payload_off: "OFF"
    payload_available: "Online"
    payload_not_available: "Offline"
    qos: 1
    retain: false
You can’t perform that action at this time.