Problem is that you write off some rule and forget how things work over time.
Want to write a simple automation. I will flip an input boolean switch - coming home and HA should check the google drive time to me. So wheni am in proximity of 15 minutes - it will switch on the airconds and bring the temperature down. Below is the rule i came up - but now i’m in confusion. With the trigger input_boolean state to on - will HA check and fire only once when the switch is off from on or it will fire up several time until conditions are met? If the first option than the trigger shoul’d be driving time - state?
- alias: "Presence Coming home" trigger: - platform: state entity_id: input_boolean.rules_cominghome to: 'on' condition: - condition: numeric_state entity_id: sensor.house_temp above: 23 - condition: numeric_state entity_id: sensor.dark_sky_temperature above: 18 - condition: numeric_state entity_id: input_boolean.time_to_travel below: 15 action: - service: climate.set_operation_mode data: entity_id: climate.mys_zal_31_0 operation_mode: "Cool" - service: switch.turn_on entity_id: switch.kitchen_ac