I will check to make sure there are no memory leaks. I have seen in the past about network buffers not be released under certain circumstances so I will look into that.
I have 6 devices setup and the app has got up to 18MB but is climbing steadily so does look a bit suspicious.
I have presented the app to the Athom store and if it is accepted I will keep the new ID. If it’s refused then I will revert back to the original ID and just keep it in the HCS only.
Up & running Adrian, a 1001 times thanks.
I got it up my dash, and the offline ones blink orange now
(I had to add alarm_offline capability to the code)
Just info: Now I wanted to group them, so I get only one device with an alarm status on my dash, like my doorcontacts and PIR’s, but the group app doesn’t provide for alarm_offline sensor capability yet.
Ah I get that. I asked Arjan the other day if he could add measure_ph to the Virtual Devices app, but he sticks with the default capabilities provided by Athom, otherwise he would be busy all day to add capabilities
This is available in Group app at the moment (enough alarms though ):
I made a “IP device offline” indicator, while using a VD light with color capability.
I put my IP devices in a dedicated zone, so I can use generic alarm detection.
is it possible to add the following flow card to this app?
IF device status changed
Currently you have 2 IF statements: if device come online or if device goes offline, would be great to have a 3th option. If device changed state.
What a great app, thank you for the development! I’ve been searching long foe a app with this functions.
I use it to check whether my TV is on or not when my lights go off in the evening. If so, a few lights stay on. As the tv switches off, those lights go off as well. I check if the fixed IP address changes to offline.
But all of a sudden, the lights stay on, even when the tv is off for some time. Do I have to restart the app once in a while or so? Do you know this, will that solve the problem?
I’m using the latest version of the app.
Are you running the test version?
I think the release version has a memory leak, that I have fixed, and when the it gets to a certain level Homey kills the app.
Hi Adrian,
I didn’t know/realize it can detect the internet connection also.
But it only works with my own internet IP address, not with f.i. 8.8.8.8, or both www.athom.com IP’s.
But, using the TCP device port 80 works for webservers
Just FYI
By the way, the memory graph is still around 8MB’s
Last night as the tv was turned off, the lights went off as planned. I installed the test version of the app.
We don’t know whether it did function correctly this time because of the new app. Maybe restarting the old app would have been good enough. I will keep an eye on it the coming days and see what happens.
As far as I can see arping, like ping, uses low level network functions that are not available to a Homey app. So I don’t think it is possible to add it unless Athom provide an API into those functions.
Sorry, newbie question: How do I check if a PC running Windows 10 is awake? Doesn’t seem to work with check IP or check TCP port (tried several that is supposed to be open).
If you have a firewall that complete blocks access to ports then neither will work.
The IP option checks port 1 and just looks for any kind of response, even if it is a rejection as when the PC is switched off nothing is returned and the request times out.
The TCP option checks the specified port but requires a valid response.