Magic Home Led Controller RGBw


(Carlos Alberto Martins) #1

Alguem tem MagicHome controlador de LED RGBw com tasmota ?
Poderia enviar a config mqtt.


(Rodolfo) #2

Primeiro que tudo tens que entrar dentro do magic home e configurar o modulo para 34 MagicHome depois vai à consola e escreves: SetOption15 1

De seguida no teu configuration.yaml

light:
- platform: mqtt
  name: magic
  effect_list:
      - 0
      - 1
      - 2
      - 3
      - 4
      - 5
      - 6
      - 7
      - 8
      - 9
      - 10
      - 11
      - 12
  state_topic: "cmnd/sonoff/POWER"
  command_topic: "cmnd/sonoff/POWER"
  brightness_state_topic: "cmnd/sonoff/Dimmer"
  brightness_command_topic: "cmnd/sonoff/Dimmer"
  brightness_scale: 100
  rgb_command_template: "{{ '%02x%02x%02x' | format(red, green, blue)}}"
  rgb_state_topic: "cmnd/sonoff/Color"
  rgb_command_topic: "cmnd/sonoff/Color"
  effect_command_topic: "cmnd/sonoff/Scheme"
  effect_state_topic: "cmnd/sonoff/Scheme"
  state_value_template: "{{ value }}"
  brightness_value_template: "{{ value }}"
  effect_value_template: "{{ value }}"
  rgb_command_mode: hex
  retain: false
  qos: 1
  payload_on: "ON"
  payload_off: "OFF"