My condition is not conditioning. If this and that

Trying to send a notification if someone leaves my bedroom door open and it’s hot in there. This condition is not working. Trying to say if the bedroom door has been open for 1 minute and it’s over 78 degrees in the room, send the notification. What am I doing wrong?

condition: and
conditions:
  - condition: state
    entity_id: binary_sensor.door_master_bedroom_iaszone
    state: "on"
    for:
      hours: 0
      minutes: 1
      seconds: 0
  - condition: state
    entity_id: climate.bedroom_ac_3
    attribute: current_temperature
    state: ">78"

What is your trigger?

A State condition is not correct for what you are trying to do with the climate entity, use a Numeric state condition for comparing numeric values. Also, you do not need to use an And in this case, conditions acted as AND by design. The And condition is usually only needing in a few specific cases, often when you are also using a Not or Or condition.

trigger: ?

condition:
  - condition: state
    entity_id: binary_sensor.door_master_bedroom_iaszone
    state: "on"
    for:
      hours: 0
      minutes: 1
      seconds: 0
  - condition: numeric_state
    entity_id: climate.bedroom_ac_3
    attribute: current_temperature
    above: "78"
action: ?

Thank you! That worked. I’m obviously new. Learning everyday from this community.

1 Like