Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 105642

Supports string syntax for "for"

$
0
0

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

Read full topic


Viewing all articles
Browse latest Browse all 105642

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>