I am trying to start setting up automations to notify me of things that are left on based on time.
Basically I want to be reminded whenever I forget to turn my shop ac off at night.
I have a nest t-stat that is working in HA. I have tried setting up a simple, if ac is on at a certain time to notify me with notify.notify.
When I test the automation i do get the alert on my iphone and ipad however either the trigger or condition isn’t working. I have also had issues with other timed automations not working. I orignally thought it was maybe the time zone or UTC offset was set wrong but I am pretty sure it is set right.
Here is my automation
alias: Notify - Shop AC is still on
description: Notify - Shop AC is still on
trigger:
- platform: time
at: '23:25:00'
condition:
- condition: state
entity_id: climate.shop
state: cool
attribute: hvac_modes
action:
- service: notify.notify
data:
message: Shop AC is still on
mode: single
UPDATE: I have found that the timed trigger is triggering by looking at the show trace option in the automation. The part of the automation that it is failing on is the condition.
I have tried two different conditions for the nest thermostat. Here is my both of my tested conditions that are not working.
alias: Notification - Shop AC is still on
description: Notification - Shop AC is still on
trigger:
- platform: time
at: '12:12:00'
condition:
- condition: state
entity_id: climate.shop
state: cool
attribute: hvac_modes
action:
- service: notify.notify
data:
message: Shop AC is still on
mode: single
alias: Notification - Shop AC is still on
description: Notification - Shop AC is still on
trigger:
- platform: time
at: '12:12:00'
condition:
- condition: device
device_id: d8225110618cf1557539e3a3ebee5685
domain: climate
entity_id: climate.shop
type: is_hvac_mode
hvac_mode: cool
action:
- service: notify.notify
data:
message: Shop AC is still on
mode: single