alias: Greenhouse Ventilation description: >- Vent switch follows binary_sensor.greenhouse_should_vent with anti-flip-flop delays. triggers: - entity_id: - binary_sensor.greenhouse_should_vent to: - "on" for: hours: 0 minutes: 1 seconds: 0 trigger: state - entity_id: - binary_sensor.greenhouse_should_vent to: - "off" for: hours: 0 minutes: 2 seconds: 0 trigger: state actions: - target: entity_id: switch.agv_esp32_greenhouse_ventilation action: switch.turn_{{ trigger.to_state.state }} mode: single