I want to start a fan if the CO2 level is high, the CO2 is measured with Netatmo sensors.
The problem is that the sValues of the CO2-sensors, and only CO2-sensors is missing in the events, "Show current states" list.
I tried to write the value to the log and it shows up as a empty value.
The graph for all 3 CO2-sensors are normal with no missed readings.
Domoticz v3.4834
Any simple workaround?
Empty sValue for Netatmo CO2
Moderator: leecollings
-
- Posts: 3
- Joined: Thursday 14 July 2016 11:30
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Empty sValue for Netatmo CO2
To get around the problem I created a dummy sensor and a bash script updating the dummy with a value that is taken from a XML json, figuring that a new sensor with data from a text file would always show up with a sValue.
The new dummy sensor is listed under Utility sensors, and updated every few minutes from the script, and here is the terminal output for the update, first I echo the value to the terminal;
CO2level=601
HTTP/1.1 200 OK
Content-Length: 53
Content-Type: application/json;charset=UTF-8
Cache-Control: no-cache
Pragma: no-cache
Access-Control-Allow-Origin: *
{
"status" : "OK",
"title" : "Update Device"
}
If I understand the echo output, the CO2 value written to the virtual sensor does not start with a whitespace or something else, and since the virtual sensor graph is correct everything should work.
But it gives the same error.
The table 'Show current states' now give me 4 empty values, 3 real CO2 sensors and one virtual.
The new dummy sensor is listed under Utility sensors, and updated every few minutes from the script, and here is the terminal output for the update, first I echo the value to the terminal;
CO2level=601
HTTP/1.1 200 OK
Content-Length: 53
Content-Type: application/json;charset=UTF-8
Cache-Control: no-cache
Pragma: no-cache
Access-Control-Allow-Origin: *
{
"status" : "OK",
"title" : "Update Device"
}
If I understand the echo output, the CO2 value written to the virtual sensor does not start with a whitespace or something else, and since the virtual sensor graph is correct everything should work.
But it gives the same error.
The table 'Show current states' now give me 4 empty values, 3 real CO2 sensors and one virtual.
-
- Posts: 3
- Joined: Thursday 14 July 2016 11:30
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Empty sValue for Netatmo CO2
I created a virtual temperature sensor with the same value, and that sensor is working as it should.
Who is online
Users browsing this forum: No registered users and 1 guest