Set sensor to 'invalid' value

Python and python framework

Moderator: leecollings

Post Reply
elgringo
Posts: 92
Joined: Thursday 18 May 2017 8:08
Target OS: Raspberry Pi / ODroid
Domoticz version: Left
Contact:

Set sensor to 'invalid' value

Post by elgringo »

I have several sensors from a solar invertor which are only available when the device is on. Normally when the sun is shining, the VAC sensor for example.

Currently I set them to 0V when not available, but this shows in the logging a VAC of 0V, which is never the case.
Other option is not to update them, but Domoticz will show the last known value; which is also not the case. I actually want the values to be unknown.

When the deviced is off I want to set these sensor to an 'invalid' data so this value is ingored by domticz and not shown in the logging. Is this possible? Perhaps by updating the svalues with 'NaN'?
dgatien
Posts: 4
Joined: Monday 11 March 2019 9:47
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Set sensor to 'invalid' value

Post by dgatien »

Hi !
I have the same need.
Did you find a solution ?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest