Hi there!
I try to add a shorthand notation of a condition. I use this configuration:
condition:
- condition: and
conditions:
- condition: template
value_template: >
{% if is_state("binary_sensor.workday_sensor", "on") %}
{{ states.binary_sensor.quiet_workday_time.state == 'off' }}
{% else %}
{{ states.binary_sensor.quiet_holiday_time.state == 'off' }}
{% endif %}
- condition: numeric_state
entity_id: sensor.air_humidifier_water_level
below: 5
- "{{ states('variable.water_level_allowed_to_notify') }}"
and I get this in UI:
this in Yaml editor
condition:
- condition: and
conditions:
- condition: template
value_template: |
{% if is_state("binary_sensor.workday_sensor", "on") %}
{{ states.binary_sensor.quiet_workday_time.state == 'off' }}
{% else %}
{{ states.binary_sensor.quiet_holiday_time.state == 'off' }}
{% endif %}
- condition: numeric_state
entity_id: sensor.air_humidifier_water_level
below: '5'
- condition: template
value_template: ''
Am I using shorthand condition notation wrong or is it broken in 2021.12.1 version?