Thx, but that didn't help either :/
ESP8266 Air quality sensor
Moderator: leecollings
-
- Posts: 40
- Joined: Thursday 18 January 2018 20:57
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: ESP8266 Air quality sensor
- Attachments
-
- Skærmbillede 2018-01-18 kl. 21.18.27.png (34.78 KiB) Viewed 3264 times
- jvdz
- Posts: 2189
- Joined: Tuesday 30 December 2014 19:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.107
- Location: Netherlands
- Contact:
Re: ESP8266 Air quality sensor
Ok, please show me the whole rule you have to check for its total syntax.
Jos
Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
-
- Posts: 40
- Joined: Thursday 18 January 2018 20:57
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: ESP8266 Air quality sensor
on CO2#PPM do
SendToHTTP 192.168.1.188,8080,/json.htm?param=udevice&type=command&idx=12&nvalue=[CO2#PPM]
endon
SendToHTTP 192.168.1.188,8080,/json.htm?param=udevice&type=command&idx=12&nvalue=[CO2#PPM]
endon
- jvdz
- Posts: 2189
- Joined: Tuesday 30 December 2014 19:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.107
- Location: Netherlands
- Contact:
Re: ESP8266 Air quality sensor
A comma was missing before the IP address. Try this version:
Jos
Code: Select all
on CO2#PPM do
SendToHTTP,192.168.1.188,8080,/json.htm?param=udevice&type=command&idx=12&nvalue=[CO2#PPM]
endon
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
-
- Posts: 40
- Joined: Thursday 18 January 2018 20:57
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: ESP8266 Air quality sensor
Nope.
I know the esp is connected to the controller. Testet it with a relay and could turn it on/off.
It is the wrong firmware on the esp?
- jvdz
- Posts: 2189
- Joined: Tuesday 30 December 2014 19:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.107
- Location: Netherlands
- Contact:
Re: ESP8266 Air quality sensor
Ok just try the url from a browser to see whether that works. One reason for failure could be when you use https or userid&password with domoticz.
Just put it in your browser hit enter and see whether it returns ok or an error.
Jos
Code: Select all
http://192.168.1.188:8080/json.htm?param=udevice&type=command&idx=12&nvalue=111
Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
-
- Posts: 40
- Joined: Thursday 18 January 2018 20:57
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: ESP8266 Air quality sensor
its make an errorjvdz wrote: ↑Thursday 18 January 2018 21:59 Ok just try the url from a browser to see whether that works. One reason for failure could be when you use https or userid&password with domoticz.Just put it in your browser hit enter and see whether it returns ok or an error.Code: Select all
http://192.168.1.188:8080/json.htm?param=udevice&type=command&idx=12&nvalue=111
Jos
{
"status" : "ERR"
}
it is the IDX from hardware or from devices list?
-
- Posts: 40
- Joined: Thursday 18 January 2018 20:57
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: ESP8266 Air quality sensor
stupid me..
Wrong IDX. I took It from the hardware list..
Find out it was IDX 9.
Just changede it, and got this:
{
"status" : "OK",
"title" : "Update Device"
}
//there was a reading in Domoticz, but now it just 0PPM on the dashboard :/ it goes between 0-111.. has I something to do with the calibration?
Wrong IDX. I took It from the hardware list..
Find out it was IDX 9.
Just changede it, and got this:
{
"status" : "OK",
"title" : "Update Device"
}
//there was a reading in Domoticz, but now it just 0PPM on the dashboard :/ it goes between 0-111.. has I something to do with the calibration?
- jvdz
- Posts: 2189
- Joined: Tuesday 30 December 2014 19:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.107
- Location: Netherlands
- Contact:
Re: ESP8266 Air quality sensor
Not sure I understand this. When you update the ESP rules things should work fine and the value in the log should be displayed in the domoticz device.
Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
-
- Posts: 40
- Joined: Thursday 18 January 2018 20:57
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: ESP8266 Air quality sensor
Yeah but nothing happening in domoticz. I can see that the "last seen on, the time" is updated.
But the readings just says 0 PPM
And if i look in the log, nothing has changed the last 24 hour.
- Attachments
-
- Screenshot_20180119-070732.jpg (192.21 KiB) Viewed 3236 times
- jvdz
- Posts: 2189
- Joined: Tuesday 30 December 2014 19:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.107
- Location: Netherlands
- Contact:
Re: ESP8266 Air quality sensor
What exactly is shown in the Domoticz Devices page for this device?
It should be something like:
It should already update when you do the manual URL as we discussed.
Jos
It should be something like:
It should already update when you do the manual URL as we discussed.
Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
-
- Posts: 40
- Joined: Thursday 18 January 2018 20:57
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: ESP8266 Air quality sensor
Have this
- Attachments
-
- Screenshot_20180119-095305.jpg (267.76 KiB) Viewed 3228 times
- jvdz
- Posts: 2189
- Joined: Tuesday 30 December 2014 19:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.107
- Location: Netherlands
- Contact:
Re: ESP8266 Air quality sensor
So... which exact url are you now using when testing with the browser? and that does give the OK back?
If it does it really should so the proper data specified in the url in the device under DATA.
Also ensure the ESPEAsy is not writing anything to Domoticz at this time to ensure there is no interference.
So DIsable the Rules and also check in the Device that the "Send to Controller" is unchecked!
Jos
If it does it really should so the proper data specified in the url in the device under DATA.
Also ensure the ESPEAsy is not writing anything to Domoticz at this time to ensure there is no interference.
So DIsable the Rules and also check in the Device that the "Send to Controller" is unchecked!
Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
-
- Posts: 40
- Joined: Thursday 18 January 2018 20:57
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: ESP8266 Air quality sensor
Hi.jvdz wrote:So... which exact url are you now using when testing with the browser? and that does give the OK back?
If it does it really should so the proper data specified in the url in the device under DATA.
Also ensure the ESPEAsy is not writing anything to Domoticz at this time to ensure there is no interference.
So DIsable the Rules and also check in the Device that the "Send to Controller" is unchecked!
Jos
I am using this URL.
http://192.168.1.188:8080/json.htm?para ... nvalue=111
And it's retur with this:
OK
Update device
I Will try to uncheck when i get home tomorrow.
Sendt fra min ONEPLUS A3003 med Tapatalk
- jvdz
- Posts: 2189
- Joined: Tuesday 30 December 2014 19:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.107
- Location: Netherlands
- Contact:
Re: ESP8266 Air quality sensor
The URL looks good, so my guess indeed is that the value is overridden by the ESPEasy settings in the Device, which will send the wrong information to domoticz.
Jos
Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
-
- Posts: 40
- Joined: Thursday 18 January 2018 20:57
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: ESP8266 Air quality sensor
Hey jos.jvdz wrote:The URL looks good, so my guess indeed is that the value is overridden by the ESPEasy settings in the Device, which will send the wrong information to domoticz.
Jos
This is the settings in the ESPeasy
Sendt fra min ONEPLUS A3003 med Tapatalk
- jvdz
- Posts: 2189
- Joined: Tuesday 30 December 2014 19:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.107
- Location: Netherlands
- Contact:
Re: ESP8266 Air quality sensor
So uncheck the tickmark before the IDX 9 field as that will send wrong information to Domoticz.
Did you also do the other steps I mentioned and then do the URL to see if the value get properly updated?
Jos
Did you also do the other steps I mentioned and then do the URL to see if the value get properly updated?
Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
-
- Posts: 40
- Joined: Thursday 18 January 2018 20:57
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: ESP8266 Air quality sensor
Yes i have deleted the rules.jvdz wrote:So uncheck the tickmark before the IDX 9 field as that will send wrong information to Domoticz.
Did you also do the other steps I mentioned and then do the URL to see if the value get properly updated?
Jos
And when is using the link IT says
Status OK
Update device.
Got this now. (but i Dont think IT updates the last seen. )
Sendt fra min ONEPLUS A3003 med Tapatalk
- jvdz
- Posts: 2189
- Joined: Tuesday 30 December 2014 19:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.107
- Location: Netherlands
- Contact:
Re: ESP8266 Air quality sensor
Great, so that means it works. Now only add the Rule back and leave the Device tickbox unchecked.
This should trigger the update to domoticz each time the MHZ19 is updated on ESPEasy.
Jos
This should trigger the update to domoticz each time the MHZ19 is updated on ESPEasy.
Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
-
- Posts: 40
- Joined: Thursday 18 January 2018 20:57
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: ESP8266 Air quality sensor
Can i setup to update om every minutter?jvdz wrote:Great, so that means it works. Now only add the Rule back and leave the Device tickbox unchecked.
This should trigger the update to domoticz each time the MHZ19 is updated on ESPEasy.
Jos
Sendt fra min ONEPLUS A3003 med Tapatalk
Who is online
Users browsing this forum: No registered users and 1 guest