Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95919

Did it freeze last night?

$
0
0

@SpacemanSpiff wrote:

So, this morning I went to drive my kid to school. We were a bit late. When I stepped out the front door I saw that the windshield of my car had frozen over. So Home Assistant to the rescue, to give me a heads-up not to take that second cup of coffee but to go outside to defrost the car.
My approach would be:

  1. Create a boolean flag “did it freeze last night”
  2. Automation 1: set flag to off at midnight
  3. Automation 2: if temp below +3° C between 0:01 and 7:00 then set flag to on
  4. Automation 3: at 7:15, if flag = on then notify

So my question to you: Is this the “cleanest” way to do this?
Perhaps there is a way to have a single automation with a condition “has temp been below +3° C in the last x hours”, which runs at 7:15?

Thx

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 95919

Trending Articles