Sensair in Domoticz

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
Cdzn
Normal user
Posts: 58
Joined: 06 Oct 2020, 18:15

Sensair in Domoticz

#1 Post by Cdzn » 28 Oct 2021, 16:34

I`ve not found any solutions of my problem. So i need help.
I have S8 and lastest ESPeasy firmware. I did everythingthat i found in domoticz and Letscontrol forums but have no idea how to send ppm to domoticz? http and mqtt rules just won`t working!
How to convert this MQTT data to domoticz.
almost forgot, if i create custom sensor it work fine, but i would like to see good or bad air quality.

I tried these code

Code: Select all

on SEns#ppm do
 SendToHTTP 192.168.0.108,8080,/json.htm?type=command&param=udevice&idx=59&nvalue=[SEns#ppm]
endon

on SEns#ppm do
  TaskValueSet 2,1,[SEns#ppm]
  Publish domoticz/in,'{"idx":57,"nvalue":"[Co2Test#Dummy]"}'
endon
Please need help

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Sensair in Domoticz

#2 Post by TD-er » 28 Oct 2021, 17:07

You can also add the sensor as "custom" sensor in Domoticz and then you can use the controller to send it to Domoticz, without the need to send it via rules.

Sorry, missed your last sentence...
I will have a look

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Sensair in Domoticz

#3 Post by TD-er » 28 Oct 2021, 17:14

I think you should leave out the quotes on the actual numerical value for nvalue.

Code: Select all

  Publish domoticz/in,'{"idx":57,"nvalue":[Co2Test#Dummy]}'

Cdzn
Normal user
Posts: 58
Joined: 06 Oct 2020, 18:15

Re: Sensair in Domoticz

#4 Post by Cdzn » 28 Oct 2021, 19:30

TD-er wrote: 28 Oct 2021, 17:14 I think you should leave out the quotes on the actual numerical value for nvalue.

Code: Select all

  Publish domoticz/in,'{"idx":57,"nvalue":[Co2Test#Dummy]}'
OMG it WORKS! Thank YOU! I did`t know that the i should leave quotes for nvalue. Thanks again!

Cdzn
Normal user
Posts: 58
Joined: 06 Oct 2020, 18:15

Re: Sensair in Domoticz

#5 Post by Cdzn » 28 Oct 2021, 19:32

TD-er wrote: 28 Oct 2021, 17:14 I think you should leave out the quotes on the actual numerical value for nvalue.

Code: Select all

  Publish domoticz/in,'{"idx":57,"nvalue":[Co2Test#Dummy]}'
Do You know any solution how to send value without rules?

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Sensair in Domoticz

#6 Post by TD-er » 28 Oct 2021, 19:47

Yep... That involves adding a selector to both CO2 plugins to switch to using nvalue instead of svalue.
The selector is to keep installations in use working.

Or add it to both Domoticz controllers as it is a specific Domoticz issue.

It is in the back of my mind's todo list for years and I keep forgetting it to look into it.

Cdzn
Normal user
Posts: 58
Joined: 06 Oct 2020, 18:15

Re: Sensair in Domoticz

#7 Post by Cdzn » 01 Nov 2021, 11:37

TD-er wrote: 28 Oct 2021, 19:47 Yep... That involves adding a selector to both CO2 plugins to switch to using nvalue instead of svalue.
The selector is to keep installations in use working.

Or add it to both Domoticz controllers as it is a specific Domoticz issue.

It is in the back of my mind's todo list for years and I keep forgetting it to look into it.
Hard to understand it a.t.m. i found a solution just as You say. If you wiil find out how to configure, please don`t forget post it here)

Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 28 guests