It would be nice same syntax for “for” like synstax for “delay”.
On the below is actual error, if “for” is string.
“for” is same as “delay”, but (i don’t know) why “for” havn’t string syntax.
Docs:
alias: Toggle Kotel
sequence:
- if:
- condition: or
# ...
then:
- if:
- condition: device
type: is_off
device_id: ac1e2c0c43cb7b066aff673346e88581
domain: light
for: "00:15:00"
then:
- type: turn_on
device_id: ac1e2c0c43cb7b066aff673346e88581
domain: light
else:
- delay: "00:15:01"
- action: script.toggle_kotel
# ...
Message malformed: expected dict for dictionary value @ data[‘for’]
4 posts - 3 participants