Ping a device

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
Mikey
Posts: 31
Joined: Friday 13 January 2017 7:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Ping a device

Post 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
krizzz
Posts: 200
Joined: Wednesday 20 November 2013 20:36
Target OS: Linux
Domoticz version:
Location: The Netherlands
Contact:

Re: Ping a device

Post 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
etrubin
Posts: 3
Joined: Saturday 18 February 2017 16:40
Target OS: Linux
Domoticz version:
Contact:

Re: Ping a device

Post 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
blauwebuis
Posts: 331
Joined: Wednesday 21 December 2016 9:11
Target OS: Raspberry Pi / ODroid
Domoticz version: current
Contact:

Re: Ping a device

Post by blauwebuis »

Arping also supports setting a time-out. Have a look at the presence detection script.

https://www.domoticz.com/wiki/Presence_detection
Mikey
Posts: 31
Joined: Friday 13 January 2017 7:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Ping a device

Post 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?
User avatar
Egregius
Posts: 2589
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: Ping a device

Post by Egregius »

Set the wake up interval in the parameters?
Mikey
Posts: 31
Joined: Friday 13 January 2017 7:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Ping a device

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest