WTH: can I do "EntityA < EntityB" as a condition using the UI

Allow conditions of the automations to compare entities with <, <=, >=, >, ==, !=, using the UI editor.

The use of templates or yaml (which often cannot be tested in the automation editor) is one of my biggest causes for bugs. Doing basic comparison or logic in the UI would make it much easier to use this functionally.

Update: updated the text based on feedback below

You can do all of these.

>

condition:
  condition: numeric_state
  entity_id: climate.living_room_thermostat
  attribute: temperature
  above: input_number.temperature_threshold_low

<

condition:
  condition: numeric_state
  entity_id: climate.living_room_thermostat
  attribute: temperature
  below: input_number.temperature_threshold_low

=

condition:
  condition: state
  entity_id: alarm_control_panel.home
  state: input_select.guest_mode

Editing something in the UI with “Edit in yaml” does not satisfy some users, so I’ll be opening this back up.

1 Like

Thanks, I didn’t know this apparently a lot of other people on discord for example don’t know this either.
Having this available on the UI would help beginning users to find what they need in an initiative way.
Also the testing functionally of edited yaml does not seem to work.

TIL you can use an entity as state in a state condition :slight_smile: