dnpwwo / Domoticz-Pinger-Plugin

Python plugin that pings and shows response times for network devices
MIT License
4 stars 1 forks source link

Error messages in log #1

Open digdilem opened 6 years ago

digdilem commented 6 years ago

Added fine as per your instructions. Created a new device "Simons phone" and it didn't "Turn On", despite the IP (10.1.0.5) responding to pings from the same server domoticz is hosted on.

Upon enabling Verbose, the following is shown.

(BTW, I think the instructions are unclear on what units the interval is for. I assume seconds (1-20) but it could be minutes and it's not defined)

Thanks. Good to see support for demoticz.

2018-01-04 13:33:09.619 Error: (Simons Phone) 'onStart' failed 'AttributeError':''Domoticz.Device' object has no attribute 'TimedOut''.
2018-01-04 13:33:09.619 Error: (Simons Phone) ----> Line 168 in /srv/domoticz/plugins/Domoticz-Pinger-Plugin/plugin.py, function onStart
2018-01-04 13:33:09.619 Error: (Simons Phone) ----> Line 105 in /srv/domoticz/plugins/Domoticz-Pinger-Plugin/plugin.py, function onStart
2018-01-04 13:33:09.619 Error: (Simons Phone) ----> Line 185 in /srv/domoticz/plugins/Domoticz-Pinger-Plugin/plugin.py, function UpdateDevice
2018-01-04 13:33:09.619 (Simons Phone) Heartbeat interval set to: 20.
2018-01-04 13:33:19.133 (Simons Phone) Calling message handler 'onHeartbeat'.
2018-01-04 13:33:19.133 (Simons Phone) Heartbeating...
2018-01-04 13:33:19.133 Error: (Simons Phone) 'onHeartbeat' failed 'IndexError':'list index out of range'.
2018-01-04 13:33:19.133 Error: (Simons Phone) ----> Line 180 in /srv/domoticz/plugins/Domoticz-Pinger-Plugin/plugin.py, function onHeartbeat
2018-01-04 13:33:19.133 Error: (Simons Phone) ----> Line 156 in /srv/domoticz/plugins/Domoticz-Pinger-Plugin/plugin.py, function onHeartbeat 
digdilem commented 6 years ago

Extra info: Using the current stable release of demoticz, not the beta.

dnpwwo commented 6 years ago

That is the problem.

The Timed Out functionality was added quite recently

fabiotodesco commented 6 years ago

i conferme the same problem on stable version... his it resolvable?

dnpwwo commented 6 years ago

Yes, you will need to run the beta version until the next stable version is released