Snake8140

Magichome Tasmota

Oct 18th, 2020
492
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. light:
  2.   - platform: mqtt
  3.     name: "Magichome"
  4.     command_topic: "cmnd/magichome/POWER"
  5.     state_topic: "stat/magichome/RESULT"
  6.     state_value_template: "{{value_json.POWER}}"
  7.     payload_on: "ON"
  8.     payload_off: "OFF"
  9.     availability_topic: "tele/magichome/LWT"
  10.     payload_available: "Online"
  11.     payload_not_available: "Offline"
  12.     brightness_command_topic: "cmnd/magichome/Dimmer"
  13.     brightness_state_topic: "stat/magichome/RESULT"
  14.     brightness_scale: 100
  15.     on_command_type: "brightness"
  16.     brightness_value_template: "{{value_json.Dimmer}}"
  17.     white_value_state_topic: "stat/magichome/RESULT"
  18.     white_value_command_topic: "cmnd/magichome/Channel4"
  19.     white_value_scale: 100
  20.     white_value_template: >- #"{{ value_json.Channel[3] }}"
  21.       {% if 'White' in value_json %}
  22.         {{ value_json.White }}
  23.       {% endif %}
  24.     rgb_command_topic: "cmnd/magichome/Color2"
  25.     rgb_state_topic: "stat/magichome/RESULT"
  26.     rgb_value_template: >- #"{{value_json.Color.split(',')[0:3]|join(',')}}"
  27.       {% if 'Color' in value_json %}
  28.         {{ value_json.Color.split(',')[0:3] | join(',') }}
  29.       {% endif %}
  30.     effect_command_topic: "cmnd/magichome/Scheme"
  31.     effect_state_topic: "stat/magichome/RESULT"
  32.     effect_value_template: "{{value_json.Scheme}}"
  33.     effect_list:
  34.      - 0
  35.       - 1
  36.       - 2
  37.       - 3
  38.       - 4
  39.     qos: 1
RAW Paste Data