Hello, I am fairly new to this and have a question that the community experts might be able to help with. I have configured the below in the automations.yaml file, however I would like for the switch to only be on between a certain time, say on at '07:00:00 and off at ‘19:00:00’ and for said temperature to turn the ac off/on between that time. I know that this would more than likely be a condition but I am having a hard time with formatting that template correctly. Any help would greatly be appreciated
- id: ChickenCoopAC_OffBasedOnTemperature
alias: Turn off Chickencoop AC at 75 Degrees
trigger:
platform: numeric_state
entity_id: sensor.chicken_coop_temperature
below: 75
action:
service: switch.turn_off
entity_id: switch.chickencoop_ac
- id: ChickenCoopRunAC_OnBasedOnTemperature
alias: Turn on Chickencoop Run AC at 80 Degrees
trigger:
- platform: numeric_state
entity_id: sensor.chicken_coop_temperature
above: '80'
action:
- service: switch.turn_on
entity_id: switch.chickencoop_run_ac
1 post - 1 participant