Automation UI needs an option to ignore unexpected triggers when state changes from or to "unavailable" or "unknown"

trigger:
  - platform: state
    entity_id:
      - binary_sensor.bathroom_light_switch
    from: ["off", "on"]
    to: ["off", "on"]

This works fine, usually what I use. Or for sensors which aren’t binary:

trigger:
  - platform: state
    entity_id:
      - sensor.some_sensor
    not_from: ["unavailable", "unknown"]
    not_to: ["unavailable", "unknown"]

But still, checkboxes would be nicer.

8 Likes