Try set current light without conditions

This commit is contained in:
Pavel Kachalouski
2024-12-01 20:49:31 +01:00
parent 8e68d906b6
commit eaf97cf14e

View File

@@ -90,14 +90,11 @@ action:
sequence: sequence:
- service: homeassistant.toggle - service: homeassistant.toggle
target: !input "first_light" target: !input "first_light"
- choose: - service: input_text.set_value
- conditions: "{{ current_light != none }}" target:
sequence: entity_id: !input "current_light"
- service: input_text.set_value data:
target: value: first_light
entity_id: !input "current_light"
data:
value: first_light
- conditions: - conditions:
- "{{ command == 'recall' }}" - "{{ command == 'recall' }}"
- "{{ second_light != none }}" - "{{ second_light != none }}"