Try set current light without conditions
This commit is contained in:
@@ -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 }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user