First off I’m still fairly new to Home assistant, but I have an automation that sends notifications if the Air Conditioner is on and a window or door is open for 30 minutes. It seems to work well, but what I would like to do now is to have a condition that only allows it to send the notification if the outside temperature (from the weather attribute?)is greater than the inside temperature ( from my smart thermostat-ecobee).
Not really sure where to start with something like that. Any help is appreciated. See below for my current automation.
alias: HVAC Running with Windows/Doors Open-AC
description: ""
trigger:
- platform: state
entity_id:
- binary_sensor.house_windows_and_doors
to: "on"
for:
hours: 0
minutes: 30
seconds: 0
from: "off"
condition:
- condition: device
device_id: 1
domain: climate
entity_id: 2
type: is_hvac_mode
hvac_mode: cool
action:
- metadata: {}
data:
message: Windows or Doors open while AC is running
title: CLOSE THE WINDOWS AND DOORS!
action: notify.notify
mode: single