Yeah it might be because of dropping the internet. I have four systems with Ecobees on them & a combination of having to get teh pin again or just reloading the engine to get them back up. The controller on this one sent me an alert earlier that it was down, then back up. Assuming it wasn't just the Vera bug that's constantly telling me that when it's not actually true (ugh), that makes sense.
I asked earlier about how to get notification when the Ecobee drops but I don't know enough about using lua code to do that. Could you spell that out a little more for me please? I basically need the full code to paste.
I am doing this on openLuup/Altui. There are multiple ways to do it so let's take this in steps:
1. Get a notification service. Do you want to use the native vera one or vera alerts or any other service? You probably want to look it up. I personally use pushover and go through a local notification API I set up on home assistant. Basically vera/cameras/openluup all send their notifications to home assistant which then sends them to my devices through the Pushover service. I used to use the mcv one which requires knowing your user id (I found in my logs) to send customized notification messages through their API. The lack of reliability made me give up on this.
2. Once you have that notification service, I suppose you would have an url for it or a REST API call to generate the notification which is a constructed http url. Generally a "post" call. If you use VeraAlert, that plugin will do it for you so you may want to look at it.
3. On the vera create a manually triggered scene which would send this call. I am pretty sure it would make use of a Vera Alert function. For me it is a Lua code to send a message.
4. create a "luup.variable_watch" with the corresponding function like below in your startup Lua:
luup.variable_watch("ecobeeupdate", "urn:ecobee-com:serviceId:Ecobee1", "Status", k)
function ecobeeupdate (lul_device, lul_service, lul_variable, lul_value_old, lul_value_new)
if tonumber(lul_value_new) == 1 then
luup.call_action("urn:micasaverde-com:serviceId:HomeAutomationGateway1","RunScene",{ SceneNum="**12345**" }, 0) --** scene number of the scene you created to send notification of connection
end
if tonumber(lul_value_new) == 0 then
luup.call_action("urn:micasaverde-com:serviceId:HomeAutomationGateway1","RunScene",{ SceneNum="**123**" }, 0) --** scene number of the scene you created to send notification of disconnection
end
end
If you know the action to send the notification directly without a scene, you can even avoid creating a scene altogether and just post that call instead of the run scene I have suggested. As I said, there are many ways to do this.