Page 1 of 1

Senseair value in Domoticz zero

Posted: 09 Mar 2021, 16:54
by jack100
Hi,

Today I connected an senseair S8 to an wemos with Easy ESP.
I see the CO2 value under device in the Easy ESP software.
In Domoticz the CO2 stays at zero and will not change.
The IDX number is correct. Both in Easy ESP and Domoticz.
In the log of the Easy ESP I see the rules:
2504445: Senseair: co2 = 1107
2504449: Domoticz: Sensortype: 1 idx: 89 values: 1107
2519445: Senseair: co2 = 1109
2519449: Domoticz: Sensortype: 1 idx: 89 values: 1109
2522854: WD : Uptime 42 ConnectFailures 0 FreeMem 16600 WiFiStatus 3

What goes wrong here?

Grtz,
Jack

Re: Senseair value in Domoticz zero

Posted: 09 Mar 2021, 16:55
by TD-er
What type of Domoticz sensor did you use?
Domoticz does expect the "CO2" sensor to use "nvalue" and we only send "svalue" (or the other way around....)
So for CO2 you need to use a "custom" sensor type in Domoticz.

Re: Senseair value in Domoticz zero

Posted: 09 Mar 2021, 16:58
by jack100
The senseair S8 sensor

Re: Senseair value in Domoticz zero

Posted: 09 Mar 2021, 17:01
by jack100
What must I fill in the field: Aslabel under create vitual sensor?

Re: Senseair value in Domoticz zero

Posted: 09 Mar 2021, 17:04
by jack100
Thanks!!
Solved.

Re: Senseair value in Domoticz zero

Posted: 09 Mar 2021, 17:11
by TD-er
jack100 wrote: 09 Mar 2021, 17:01 What must I fill in the field: Aslabel under create vitual sensor?
Unit of measure of a CO2 sensor is ppm

Re: Senseair value in Domoticz zero

Posted: 09 Mar 2021, 17:36
by GravityRZ
i would create a co2 sensor in Domoticz and then use rules to send out the nvalue.

this looks way better in domoticz including levels instead of a custom sensor

this is what you put in rules

through MQTT

Code: Select all

on Slaapkamer#PPM do
Publish domoticz/in,'{"idx":349,"nvalue":[Slaapkamer#PPM],"svalue":""}' // CO2 sensor in domoticz needs Nvalue
endon
or through HTTP

Code: Select all

on Slaapkamer#PPM do
SendToHTTP 192.168.1.50,8084,/json.htm?type=command&param=udevice&idx=349&nvalue=[Slaapkamer#PPM]&svalue=0
endon

Re: Senseair value in Domoticz zero

Posted: 09 Mar 2021, 21:54
by TD-er
... or I should put a flag in the 2 CO2 plugins to do this for Domoticz....
It is only a feature request dating back to 2017 or something like that... sigh.

Re: Senseair value in Domoticz zero

Posted: 10 Mar 2021, 20:22
by GravityRZ
that would be even nicer.