Page 1 of 1

Problem with PPM indicator

Posted: Wednesday 18 January 2023 13:11
by BartSr
Hi,
I hooked up a Sensair airquality sensor to espeasy.
In espeasy I see correct PPM value
Than I created in Domoticz dummy device airquality
I sent datya from esp easy with command
SendToHTTP,<192.168.2.100>,<8080>,/json.htm?param=udevice&type=command&idx=910&nvalue=401.00
But nothing arrives in Domoticz
Any suggestion?

If I hook the value using MQTT I see in the device list also nothing but if I use instead dummy device "GAS" I see the value as 0.401

-Bart

Re: Problem with PPM indicator

Posted: Wednesday 18 January 2023 14:22
by waltervl
If I remember correctly easpeasy has an issue with "?param" statement.
So perhaps try

Code: Select all

SendToHTTP,<192.168.2.100>,<8080>,/json.htm?type=command&param=udevice&idx=910&nvalue=401.00
Also you can try to send integer value instead of decimal so 401 instead if 401.00

Re: Problem with PPM indicator

Posted: Wednesday 18 January 2023 15:33
by jvdz
Get rid of the <> in both the IP and port parameters.

Re: Problem with PPM indicator

Posted: Wednesday 18 January 2023 15:38
by waltervl
jvdz wrote: Wednesday 18 January 2023 15:33 Get rid of the <> in both the IP and post parameters.
Indeed, RTFM ;-) https://espeasy.readthedocs.io/en/lates ... sendtohttp

Re: Problem with PPM indicator

Posted: Wednesday 18 January 2023 16:04
by FireWizard
Hi,

The "Air Quality" sensor accepts only integer values. I see you try to send a number with two digits, 401.00
Try to send only nvalue=401.

Regards

Re: Problem with PPM indicator

Posted: Wednesday 18 January 2023 17:15
by BartSr
Yes, removing the < and > did the trick. And yes I left the last digits behind "."
Thanks to both Waltervl as well as jvdz.