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
Ping a device
Moderators: leecollings, remb0
-
- Posts: 200
- Joined: Wednesday 20 November 2013 20:36
- Target OS: Linux
- Domoticz version:
- Location: The Netherlands
- Contact:
Re: Ping a device
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
Verzonden vanaf mijn iPhone met Tapatalk
-
- Posts: 3
- Joined: Saturday 18 February 2017 16:40
- Target OS: Linux
- Domoticz version:
- Contact:
Re: Ping a device
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
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
-
- Posts: 331
- Joined: Wednesday 21 December 2016 9:11
- Target OS: Raspberry Pi / ODroid
- Domoticz version: current
- Contact:
Re: Ping a device
Arping also supports setting a time-out. Have a look at the presence detection script.
https://www.domoticz.com/wiki/Presence_detection
https://www.domoticz.com/wiki/Presence_detection
-
- Posts: 31
- Joined: Friday 13 January 2017 7:26
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Ping a device
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?
Isn't there a solution with these Aeotec sensors to wake them up every hour?
- 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
Set the wake up interval in the parameters?
-
- Posts: 31
- Joined: Friday 13 January 2017 7:26
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Ping a device
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.
Who is online
Users browsing this forum: No registered users and 1 guest