Problem
I sometimes see a lot of zero values in my devices log such for my Intergas temperature device.
I know this is because my network router sometimes failes. I have A-grade hardware but. When this happens I manually need to remove all ZERO values from the domoticz device log database. Think of Temperature logs, pressure logs, heating logs and more. For my own bash scripts I wrote a piece of simple code to prevent this. But for the hardware devices included in Domoticz I don't know how to solve this. I also do not want to edit the code of domoticz. For example the Intergas RF module....
Question:
Would it be possible to always check the network connection if the (external) IP device is available, and so before getting a device value from it?
This way many Domoticz users can prevent filling up their device log with (tens/hundreds) of ZERO values when facing a network issue.
Zero values in devices - 1st check device IP connection before polling?
Moderators: leecollings, remb0
-
- Posts: 19
- Joined: Saturday 25 June 2016 17:21
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Stable
- Contact:
-
- Posts: 543
- Joined: Saturday 02 July 2016 5:17
- Target OS: Linux
- Domoticz version: Beta
- Contact:
Re: Zero values in devices - 1st check device IP connection before polling?
If and only if through testing you are certain of which Domoticz hardware module is causing this problem (and it is built directly into Domoticz) I suggest filing a bug on Github.
https://github.com/domoticz/domoticz/issues
Personally I've never seen this problem with a core Domoticz plugin, only when I have sent incorrect data to Domoticz via JSON or MQTT.
https://github.com/domoticz/domoticz/issues
Personally I've never seen this problem with a core Domoticz plugin, only when I have sent incorrect data to Domoticz via JSON or MQTT.
Unless otherwise stated, all my code is released under GPL 3 license: https://www.gnu.org/licenses/gpl-3.0.en.html
-
- Posts: 19
- Joined: Saturday 25 June 2016 17:21
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Stable
- Contact:
Re: Zero values in devices - 1st check device IP connection before polling?
Okay, In my example I named a network failure is causing this. For example in combination with the Intergas (InComfort LAN2RF Gateway) domoticz hardware plugin. Thank you for your guidance!
-
- Posts: 543
- Joined: Saturday 02 July 2016 5:17
- Target OS: Linux
- Domoticz version: Beta
- Contact:
Re: Zero values in devices - 1st check device IP connection before polling?
No correctly functioning plugin should cause problems by outputting null data (eg due to a network fault), there should be protections to guard against that built into the plugin.
Unless otherwise stated, all my code is released under GPL 3 license: https://www.gnu.org/licenses/gpl-3.0.en.html
Who is online
Users browsing this forum: No registered users and 1 guest