mirror of https://github.com/arendst/Tasmota.git
Update magichome
parent
5996fc20ae
commit
e2775eb460
|
@ -212,20 +212,37 @@ Configure the module as "34 MagicHome" and form the Console run `SetOption15 1`.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
light:
|
light:
|
||||||
- platform: mqtt
|
- platform: mqtt
|
||||||
name: bar_leds
|
name: magic
|
||||||
state_topic: "stat/sonoff/POWER"
|
effect_list:
|
||||||
command_topic: "cmnd/sonoff/POWER"
|
- 0
|
||||||
qos: 1
|
- 1
|
||||||
retain: true
|
- 2
|
||||||
payload_on: "ON"
|
- 3
|
||||||
payload_off: "OFF"
|
- 4
|
||||||
brightness_scale: 100
|
- 5
|
||||||
brightness_command_topic: "cmnd/sonoff/DIMMER"
|
- 6
|
||||||
brightness_state_topic: "stat/sonoff/RESULT"
|
- 7
|
||||||
brightness_value_template: "{{ value_json.Dimmer }}"
|
- 8
|
||||||
rgb_command_topic: "cmnd/sonoff/COLOR"
|
- 9
|
||||||
rgb_command_template: '{{ "%02x" | format(red|int) }}{{ "%02x" | format(green|int) }}{{ "%02x" | format(blue|int) }}'
|
- 10
|
||||||
rgb_state_topic: "stat/sonoff/RESULT"
|
- 11
|
||||||
rgb_value_template: "{{ value_json.Color[0:2] | int(base=16) }},{{ value_json.Color[2:4] | int(base=16) }},{{ value_json.Color[4:6] | int(base=16) }}"
|
- 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"
|
||||||
|
|
Loading…
Reference in New Issue