Hi,
I would like to create a condition in an automation that compares energy usage before and after an action.
My scenario is that I’ve 433mhz plugs outside that I use to control the car heating in the winter times. It works 95% of the times, but sometimes the plugs just haven’t received the signal. It is extremely frustrating when you realize that the car didn’t get preheated when you plan to drive.
So to validate if the signal has gone through, I would like to create below logic by comparing my houses real-time energy usage. One aspect of the challenge is that I’m not recording the energy usage, as it would create a lot of entries. MQTT publishes energy usage every second.
- Set/store current energy usage to a variable
- Turn outside plug on
- Wait 2 seconds
- If energy usage more than 800 watts than few seconds ago (compare to step 1) then OK else notify “car heating not on”
The issue is which I don’t know how to solve or even if it is possible, is to store a value in a variable inside a flow and use it later in the flow to compare.
Thanks for the ideas for helping me to solve this.