Page 1 of 1
Ping a device
Posted: Sunday 05 March 2017 11:58
by Mikey
I tried to make a device check which checks once a day if my sensors are online and working. This actually works, but some sensors do reply only very seldom. And even with polling the devices do not reply frequently. Thats why I would like to send a ping to the sensors to check them. Is it somehow possible to send a ping to sensors? Do they have an ip?
Thanks
Re: Ping a device
Posted: Sunday 05 March 2017 21:33
by krizzz
Please give some more info. What is the protocol your sensors work on? Do they receive an ip within your regular home network? If yes, then you can already ping your sensors with or without Domoticz.
Verzonden vanaf mijn iPhone met Tapatalk
Re: Ping a device
Posted: Sunday 05 March 2017 21:51
by etrubin
Hi!
Use dZvents
https://github.com/dannybloe/dzVents
There is a sample checking "last seen" time for sensors.
This make me understand is sensor is still alive and sending data.
Отправлено с моего MI 4S через Tapatalk
Re: Ping a device
Posted: Sunday 05 March 2017 22:48
by blauwebuis
Arping also supports setting a time-out. Have a look at the presence detection script.
https://www.domoticz.com/wiki/Presence_detection
Re: Ping a device
Posted: Monday 06 March 2017 19:55
by Mikey
Thanks for your answers. My sensors working on zWave. And I already have a code which makes the check, if a device replied within the last 24 hours. This works properly. The only problem is, that my devices do not wake up in a given time. So if I would know, "Sensor 1" will wake up every 36 hours, then I could check it like this. But the sensor sometimes does not wake up for multiple days. So I would like to wake up my sensor every hour, to make sure it will answer. I was reading about an sendHeartbeat() - function, but I think this will not work with my sensors (Aeotec Window/Door Sensor 6). And I think they also don't have an IP, right? I was searching for hours and days, but I don't find a solution to wake up my sensors every hour.
Isn't there a solution with these Aeotec sensors to wake them up every hour?
Re: Ping a device
Posted: Monday 06 March 2017 20:17
by Egregius
Set the wake up interval in the parameters?
Re: Ping a device
Posted: Monday 06 March 2017 20:26
by Mikey
I did that, but it didn't change anything. I put the wake up interval on 3600 seconds. And even the polling is on, but the devices do not wake up.