I was wondering if someone could help me create an automation that will turn my A/c on a specific temp and run for 3:30 hours @1am after i click a button in lovelace. then the button will reset to off at 5am
alias: Run A/C tonight
description: ''
mode: restart
trigger:
- platform: state
entity_id: input_button.run_a_c_tonight
from: 'off'
to: 'on'
condition: []
action:
- service: climate.set_temperature
data:
temperature: 64
hvac_mode: cool
target:
entity_id: climate.kitchen
That is my code but i want to trigger the button in lovelave and then have it run at a set time.
1 post - 1 participant