ESP8266 Air quality sensor

Everything about esp8266 and more.

Moderator: leecollings

astrapowerrr
Posts: 141
Joined: Tuesday 31 January 2017 20:34
Target OS: -
Domoticz version:
Contact:

Re: ESP8266 Air quality sensor

Post by astrapowerrr »

jvdz wrote:Yea, that all looks good, but what does it show when you click on the Log button for the "Lux sensor Woonkamer" ?
That should show whether values are actually send for the sensor.

Jos
Image

Not what it is supposed to do..



Verzonden vanaf mijn iPhone met Tapatalk
User avatar
jvdz
Posts: 2330
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: ESP8266 Air quality sensor

Post by jvdz »

That looks strange as I get a graph when I click on the Log button and no text at all..
Maybe recreate the dummy Lux sensor and try that new IDX, just to see if something went wrong during the creation process of the current one?

Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
astrapowerrr
Posts: 141
Joined: Tuesday 31 January 2017 20:34
Target OS: -
Domoticz version:
Contact:

Re: ESP8266 Air quality sensor

Post by astrapowerrr »

jvdz wrote:That looks strange as I get a graph when I click on the Log button and no text at all..
Maybe recreate the dummy Lux sensor and try that new IDX, just to see if something went wrong during the creation process of the current one?

Jos
You can get the text when you hit the 3 bars logo at the right top and select view data table...

I will try later to make a new dummy.
I’ll keep you posted!


Verzonden vanaf mijn iPhone met Tapatalk
User avatar
jvdz
Posts: 2330
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: ESP8266 Air quality sensor

Post by jvdz »

You could also test the Dummy sensor by sending a value yourself through a JSON call:

Code: Select all

your-domoticz-url:port/json.htm?type=command&param=udevice&idx=577&svalue=10
Jos
EDIT:
astrapowerrr wrote: Thursday 24 January 2019 21:28 You can get the text when you hit the 3 bars logo at the right top and select view data table...
Ah ..yes, that shows a similar table with the 5 minute interval.
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
astrapowerrr
Posts: 141
Joined: Tuesday 31 January 2017 20:34
Target OS: -
Domoticz version:
Contact:

ESP8266 Air quality sensor

Post by astrapowerrr »

jvdz wrote:You could also test the Dummy sensor by sending a value yourself through a JSON call:

Code: Select all

your-domoticz-url:port/json.htm?type=command&param=udevice&idx=577&svalue=10
Jos
EDIT:
astrapowerrr wrote: Thursday 24 January 2019 21:28 You can get the text when you hit the 3 bars logo at the right top and select view data table...
Ah ..yes, that shows a similar table with the 5 minute interval.
Tested it with jsonand that worked. So I can make sure the dummy is ok.?

And settings in espeasy also ok.

What do I miss??

Update:
I recreated a lux dummy but with no luck.
Then I used idx 588 temp/humidity dummy for my dht 22(waiting for parts).

Then my esp lux value was 6.67 at that moment.
In Domoticz the value of the temp/humidity was 6.
Then I raised the light in the living room.
Pictures will tell more.
Image
Image

So is the conclusion the lux dummy in Domoticz is broken?
You use that dummy to don’t you?


Verzonden vanaf mijn iPhone met Tapatalk
User avatar
jvdz
Posts: 2330
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: ESP8266 Air quality sensor

Post by jvdz »

Which version of domoticz are you using?
Could you try changing the espeasy setup to use 0 decimals in stead of 2 and see whether that works?

Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
astrapowerrr
Posts: 141
Joined: Tuesday 31 January 2017 20:34
Target OS: -
Domoticz version:
Contact:

Re: ESP8266 Air quality sensor

Post by astrapowerrr »

jvdz wrote:Which version of domoticz are you using?
Could you try changing the espeasy setup to use 0 decimals in stead of 2 and see whether that works?

Jos
Domoticz is running on latest stable version.
Tried decimals setting with zero but no luck. Still not working...


Verzonden vanaf mijn iPhone met Tapatalk
User avatar
jvdz
Posts: 2330
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: ESP8266 Air quality sensor

Post by jvdz »

You mentioned you are using the above version, so did you download the bin from develpment20 and load that or compile one yourself?
When you used the available bin, I will test with the exact same version to see what that does for my setup. Might be Sunday before I have the opportunity to do the testing but at least we know whether the issue is in that version of espeasy or not.

Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
User avatar
jvdz
Posts: 2330
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: ESP8266 Air quality sensor

Post by jvdz »

One more thing to check...
astrapowerrr wrote: Thursday 24 January 2019 22:01 Tested it with jsonand that worked. So I can make sure the dummy is ok.?
And settings in espeasy also ok.
Correct, the dummy should be correct. It seems that the svalue isn't interpreted correctly (or send correctly to domoticz). You can also see that with the Temp/Hum device, it is only showing the integer part. Could you try testing with JSON including a decimal value with both a comma and decimal dot:
1: your-domoticz-url:port/json.htm?type=command&param=udevice&idx=577&nvalue=0&svalue=10.12
2: your-domoticz-url:port/json.htm?type=command&param=udevice&idx=577&nvalue=0&svalue=10,23

I also added the nvalue as that is more or less the url ESPEasy is creating.

Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
astrapowerrr
Posts: 141
Joined: Tuesday 31 January 2017 20:34
Target OS: -
Domoticz version:
Contact:

Re: ESP8266 Air quality sensor

Post by astrapowerrr »

jvdz wrote: Friday 25 January 2019 14:59 One more thing to check...
astrapowerrr wrote: Thursday 24 January 2019 22:01 Tested it with jsonand that worked. So I can make sure the dummy is ok.?
And settings in espeasy also ok.
Correct, the dummy should be correct. It seems that the svalue isn't interpreted correctly (or send correctly to domoticz). You can also see that with the Temp/Hum device, it is only showing the integer part. Could you try testing with JSON including a decimal value with both a comma and decimal dot:
1: your-domoticz-url:port/json.htm?type=command&param=udevice&idx=577&nvalue=0&svalue=10.12
this gives the value of 10 lux in domoticz
2: your-domoticz-url:port/json.htm?type=command&param=udevice&idx=577&nvalue=0&svalue=10,23
this gives the value of 10 lux in domoticz

I also added the nvalue as that is more or less the url ESPEasy is creating.

Jos
You mentioned you are using the above version, so did you download the bin from develpment20 and load that or compile one yourself?
When you used the available bin, I will test with the exact same version to see what that does for my setup. Might be Sunday before I have the opportunity to do the testing but at least we know whether the issue is in that version of espeasy or not.
i opend the folder ESPEasy-Developmentv20\dist and used the flash tool exe to flash with firmware4096.bin

downloaded from your link from last week or so..

marco
User avatar
jvdz
Posts: 2330
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: ESP8266 Air quality sensor

Post by jvdz »

So it really looks like this version of ESPEasy has the problem in it for the LUX sensor.
I will test this sunday and let you know what I find.

Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
astrapowerrr
Posts: 141
Joined: Tuesday 31 January 2017 20:34
Target OS: -
Domoticz version:
Contact:

Re: ESP8266 Air quality sensor

Post by astrapowerrr »

jvdz wrote:So it really looks like this version of ESPEasy has the problem in it for the LUX sensor.
I will test this sunday and let you know what I find.

Jos
Ok. I will be patient!

Maybe something interesting,
I got my dht22 today and installed it.
In espeasy all looking good.
But in Domoticz only temp is showing in devices section but when I go to temp. The icon is blank without any data.


Verzonden vanaf mijn iPhone met Tapatalk
User avatar
jvdz
Posts: 2330
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: ESP8266 Air quality sensor

Post by jvdz »

Made it home early so just did a check and the issue is/was indeed in the change I've made in the development20 version.
Just loaded it on my ESP unit with the MH-Z19b; BMP085; DHT22 and 2*BH1750 Lux sensors and it was only updating the CO2, all others failed.
After checking what it actually send to domoticz it appeared had made an error for the MHZ19b.
Uploaded the fix to Github together with the new bin, so give that one a try. :)

Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
astrapowerrr
Posts: 141
Joined: Tuesday 31 January 2017 20:34
Target OS: -
Domoticz version:
Contact:

Re: ESP8266 Air quality sensor

Post by astrapowerrr »

jvdz wrote:Made it home early so just did a check and the issue is/was indeed in the change I've made in the development20 version.
Just loaded it on my ESP unit with the MH-Z19b; BMP085; DHT22 and 2*BH1750 Lux sensors and it was only updating the CO2, all others failed.
After checking what it actually send to domoticz it appeared had made an error for the MHZ19b.
Uploaded the fix to Github together with the new bin, so give that one a try. :)

Jos
Image thank you. That was the solution.
Now all my sensors are working.

Now I just want to add as a extra a gy-68 barometer.
That uses scl and sda.
I used those pins already for my lux sensor.
Can I add this parallel on those pins, or should I use other pins, or just not possible.

Marco


Verzonden vanaf mijn iPhone met Tapatalk
User avatar
jvdz
Posts: 2330
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: ESP8266 Air quality sensor

Post by jvdz »

astrapowerrr wrote: Saturday 26 January 2019 23:25 Image thank you. That was the solution.
Now all my sensors are working.
Good to see it is working now and you are welcome. :)
astrapowerrr wrote: Saturday 26 January 2019 23:25 Now I just want to add as a extra a gy-68 barometer.
That uses scl and sda.
I used those pins already for my lux sensor.
Can I add this parallel on those pins, or should I use other pins, or just not possible.
Those are the I2C bus pins so you can add multiple devices to it. I have 2 BH1750 and the BMP085 connected to them so should work fine.

Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
astrapowerrr
Posts: 141
Joined: Tuesday 31 January 2017 20:34
Target OS: -
Domoticz version:
Contact:

ESP8266 Air quality sensor

Post by astrapowerrr »

jvdz wrote:
astrapowerrr wrote: Saturday 26 January 2019 23:25 Image thank you. That was the solution.
Now all my sensors are working.
Good to see it is working now and you are welcome. :)
astrapowerrr wrote: Saturday 26 January 2019 23:25 Now I just want to add as a extra a gy-68 barometer.
That uses scl and sda.
I used those pins already for my lux sensor.
Can I add this parallel on those pins, or should I use other pins, or just not possible.
Those are the I2C bus pins so you can add multiple devices to it. I have 2 BH1750 and the BMP085 connected to them so should work fine.

Jos
Hi.
Sensors are just Working great.
But the gy-68 is not in the devices list..
use another sensor or should I somehow add it?

Uhm... little bit stupid should looked for bmp180...Image

Will try to fix a dummy with temp/hum/baro in one Domoticz dummy sensor.

But I’m trying how to figure this with rules or something...

Marco


Verzonden vanaf mijn iPhone met Tapatalk
Last edited by astrapowerrr on Sunday 27 January 2019 21:09, edited 1 time in total.
User avatar
jvdz
Posts: 2330
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: ESP8266 Air quality sensor

Post by jvdz »

Isn't that simply an BMP180 that records Temp+Pressure?
If so select that device type in the Dummy sensor creation dropdown box and you should be good to go.

Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
astrapowerrr
Posts: 141
Joined: Tuesday 31 January 2017 20:34
Target OS: -
Domoticz version:
Contact:

Re: ESP8266 Air quality sensor

Post by astrapowerrr »

jvdz wrote: Sunday 27 January 2019 22:18 Isn't that simply an BMP180 that records Temp+Pressure?
If so select that device type in the Dummy sensor creation dropdown box and you should be good to go.

Jos
I got it working with help of this link
https://www.letscontrolit.com/forum/vie ... 8&start=10
So now i have 1 temp/hum/baro dummy sensor filled with data in domoticz.

Only 1 question left.(more domoticz related).
On the 24h graph from the co2 sensor, i saw in some graphs the text "good" or "bad".
in my graph i only see the different colors(darkness) what group my air is in but not the text.
is this a setting?

marco
User avatar
jvdz
Posts: 2330
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: ESP8266 Air quality sensor

Post by jvdz »

astrapowerrr wrote: Monday 28 January 2019 19:34 I got it working with help of this link
https://www.letscontrolit.com/forum/vie ... 8&start=10
So now i have 1 temp/hum/baro dummy sensor filled with data in domoticz.
Nice 8-)
astrapowerrr wrote: Monday 28 January 2019 19:34 Only 1 question left.(more domoticz related).
On the 24h graph from the co2 sensor, i saw in some graphs the text "good" or "bad".
in my graph i only see the different colors(darkness) what group my air is in but not the text.
is this a setting?
I think that disappeared at some point with an upgrade as I don't see them either anymore in the graph.
Looking at the code in js/domoticz.js, it seems the logic is still there but it is not showing up in the graph. I don't know enough of this part of the setup so hope somebody else can chime in here.

Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
astrapowerrr
Posts: 141
Joined: Tuesday 31 January 2017 20:34
Target OS: -
Domoticz version:
Contact:

Re: ESP8266 Air quality sensor

Post by astrapowerrr »


[/quote]
I think that disappeared at some point with an upgrade as I don't see them either anymore in the graph.
Looking at the code in js/domoticz.js, it seems the logic is still there but it is not showing up in the graph. I don't know enough of this part of the setup so hope somebody else can chime in here.

Jos[/quote]

Well i hope that too.
But for now I’m satisfied with a working esp board!! Thanks for your help.

Will try searching the forum for the graph.
Is on my later to do list.

Marco


Verzonden vanaf mijn iPhone met Tapatalk
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest