I have a hydroponics (NFT) setup that I have on schedule but I would like to add a trigger when outdoor temp is above 95F turn on smart switch for 5 min every 30 min.
I tried to figure this out but couldn’t get there.
I have a hydroponics (NFT) setup that I have on schedule but I would like to add a trigger when outdoor temp is above 95F turn on smart switch for 5 min every 30 min.
I tried to figure this out but couldn’t get there.
Hi, can you post your automation YAML code, properly formatted (the </> sign in the toolbar)
I don’t really have one
Try this:
description: ""
mode: single
trigger:
- platform: time_pattern
minutes: "30"
condition:
- condition: numeric_state
entity_id: sensor.<your temperature device>
above: 95
action:
- service: switch.turn_on
metadata: {}
data: {}
target:
entity_id: switch.<your switch device>
- delay:
hours: 0
minutes: 5
seconds: 0
milliseconds: 0
- service: switch.turn_off
metadata: {}
data: {}
target:
entity_id: switch.<your switch device>