forked from ESPWortuhr/Multilayout-ESP-Wordclock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfiguration_example.yaml
31 lines (31 loc) · 951 Bytes
/
configuration_example.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Example configuration.yaml entry
mqtt:
light:
- name: Wortuhr
unique_id: "wortuhr"
schema: template
effect_list:
- Wordclock
- Seconds
- Digitalclock
- Scrollingtext
- Rainbowcycle
- Rainbow
- Color
command_topic: "ESPWordclock"
# state_topic: "ESPWordclock"
command_on_template: >
{"state": "on"
{%- if red is defined and green is defined and blue is defined -%}
, "color": [{{ red }}, {{ green }}, {{ blue }}]
{%- endif -%}
{%- if effect is defined -%}
, "effect": "{{ effect }}"
{%- endif -%}
}
command_off_template: '{"state": "off"}'
state_template: '{{ value_json.state }}'
red_template: '{{ value_json.color[0] }}'
green_template: '{{ value_json.color[1] }}'
blue_template: '{{ value_json.color[2] }}'
effect_template: '{{ value_json.effect }}'