I used Node Red to create a couple alerts when the Garage is opening, open, and closed. I just received a notification that the garage is open, and then another that it is closed. The garage did not just open and close however. I’m using HA Green, and RATGDO with EspHome. I also setup an alert to let me know if the garage is open for longer than 30 minutes, however I’m just getting an alert every 30 minutes that the Garage is actually closed.
How do I prevent the erroneous alerts that the garage was open / closed, but it was not.
How can I adjust my (garage is open) notification to only send if the garage is open for 30 minutes?
So would the below work?
Also, how do I get the random false messages, seems like maybe there is a moment where the device either goes offline or the status is unknown and then because of that it fires on an erroneous alert (#1 above).
oh I don’t think what I put would work, it probably just delays the alert 30 minutes, and doesn’t actually verify that it is still open, I’d probably need to poll the state before the alert?
Do I need to check all those “Ignore state change event when:…” or just certain ones to omit the erroneous Alerts? Like would just the “Previous state…” get me what I’m looking for?
Yes that will trigger when the door is open for 30 minutes. As far as the random state changes, look at the garage door entity in HA click on the entity to bring up the more info page pop up.
Click the little graph icon for the history and log book, does it show the entity as unavailable or unknown?
That’s going to cause a problem. If the door goes from open to unavailable and back to open it will reset the 30 minute timer. I don’t think checking the boxes will fix that. It should help with the other event nodes.
It’s likely the wifi connection. Is there anyway to move the ap closer?
The AP is basically in the next room over from the garage. I wonder if other people using the RATGDO also have that same issue. I wish it used Zigbee instead of WiFi tbh.
Seems it went unavailable again for no reason about 40 minutes ago.
They use esp32’s. While I don’t use ratgdo I do use a lot of esp32s. It’s best to have them on a network/ssid that is 2.4 ghz only. Another thing that can help is switching the ap’s wifi channel. 1, 6, or 11 usually have the least interference.
I have a Google Nest Pro WiFi, you’d think the “pro” aspect of that would allow me to change those settings… however sadly I’m not seeing that in the settings, I did just assign a static IP Address, I’ll monitor and see if that helps keep it awake.
Newer ap try to move 2.4g connected devices to 5g when they are close enough. Moving the ap further away may help in this situation. Some units may let you set a guest network that can be set to 2.4g only.