Hello,
I would like to ask for help with the following code, how to make it simpler and more transparent?
description: Karácsonyi világítás
triggers:
- at: "16:00:00"
id: 16_ora
trigger: time
- at: "20:00:00"
id: 20_ora
trigger: time
conditions: []
actions:
- if:
- condition: trigger
id:
- 16_ora
- condition: device
type: is_off
device_id: 1c18e2ae8fddb34b44a69ac25a17e3f8
entity_id: c95a25a70fa8cd3ff75670c890460b90
domain: switch
then:
- type: turn_on
device_id: 1c18e2ae8fddb34b44a69ac25a17e3f8
entity_id: c95a25a70fa8cd3ff75670c890460b90
domain: switch
- if:
- condition: trigger
id:
- 20_ora
- condition: device
type: is_on
device_id: 1c18e2ae8fddb34b44a69ac25a17e3f8
entity_id: c95a25a70fa8cd3ff75670c890460b90
domain: switch
then:
- type: turn_off
device_id: 1c18e2ae8fddb34b44a69ac25a17e3f8
entity_id: c95a25a70fa8cd3ff75670c890460b90
domain: switch
mode: restart
type or paste code here