So works with http.controller out of your box. Nice.
Let's go for a different (aka Jos) approach then.
Tnx.
Shame your solution can not be merged into the main espeasy branch

Moderator: leecollings
1098305: MHZ19: Error, timeout while trying to read
1098305: MHZ19: Unknown response: 0 0 0 0 0 0 0 0 0
1111685: WD : Uptime 19 ConnectFailures 0 FreeMem 14448
Where can I check my version? Which build do I need? At the moment I have download a .bin file @ Github. Anyone who has the right .bin file for ESP Easy and sensors I have?....Starting version dev-13, this will be supported.....
jvdz, created his own imageRR46 wrote: ↑Monday 25 March 2019 22:45 Sorry, forgotten:
1098305: MHZ19: Error, timeout while trying to read
1098305: MHZ19: Unknown response: 0 0 0 0 0 0 0 0 0
1111685: WD : Uptime 19 ConnectFailures 0 FreeMem 14448
Edit 26.03.2019: I found already a topic @ letscontrolit.com...
https://www.letscontrolit.com/forum/vie ... php?t=3857
Where can I check my version? Which build do I need? At the moment I have download a .bin file @ Github. Anyone who has the right .bin file for ESP Easy and sensors I have?....Starting version dev-13, this will be supported.....
How do you deal with the temperature? as far as i know the sensor uses it temperature for correction of measurements.EddyG wrote: ↑Tuesday 09 April 2019 20:10 Just to show how it can fit in: https://www.eijlander.nl/stekkerbehuizi ... -3703.html
It works fine, except for the random reboot of the espeasy firmware. Most random reboots are within a day.
Housing is 74x43x38 mm.
IMG_20190324_162748+.jpg
IMG_20190324_162734+.jpg
Code: Select all
http://192.168.1.106/json.htm?param=udevice&type=command&idx=62&nvalue=111.00
Code: Select all
{
"status" : "OK",
"title" : "Update Device"
}
Code: Select all
3401524: MHZ19: PPM value: 924 Temp/S/U values: 23/0/0.00
3401527: EVENT: MHZ19#PPM=924.00
3401541: ACT : SendToHTTP,192.168.1.106,80,/json.htm?param=udevice&type=command&idx=62&nvalue=924.00
3401550: Command: sendtohttp
3401567: EVENT: MHZ19#Temperature=23.00
3401576: EVENT: MHZ19#U=0.00
Hi Jos,jvdz wrote: ↑Tuesday 30 April 2019 16:47 You are probably using the standard version of ESPEasy?
If so, you need to add the appropriate rules to ESPEASY as the standard version doesn't have the correct configuration to support Domoticz via API/JSON calls because it is defines as a 3 svalue sensor in stead of a one nvalue sensor.
I have build my own version to support that and other stuff at the time I made it, as the b version wasn't working at that time.
Now all is working except REST for Domoticz.
Example rules are defined in this thread.
Jos
Code: Select all
on MHZ19#PPM do
SendToHTTP,192.168.1.106,80,/json.htm?param=udevice&type=command&idx=62&nvalue=[MHZ19#PPM]
endon
You can use the jvdz solution indeed.jvdz wrote: ↑Tuesday 30 April 2019 17:30 Ah, I see now..... sorry about that.![]()
Could it be you are using Userid/Password security for the Local network preventing the url to update the device?
That second option is what my story was about!
EDIT: there is already a working bin available in this branch: https://github.com/jvanderzande/ESPEasy ... ntv20/dist
Code: Select all
commandArray = {}
-- loop through all the changed devices
for deviceName,deviceValue in pairs(devicechanged) do
-- print ("Device based event fired on '"..deviceName.."', value '"..tostring(deviceValue).."'");
if (deviceName=='PPM_C') then
-- print ("Device value '"..deviceName.."', value '"..tostring(deviceValue).."'");
devvalue=tostring(deviceValue)
devidx=21
commandArray['UpdateDevice']=devidx .. "|" .. devvalue .. "|0"
os.execute ('curl -s "http://192.168.**.**:8080/json.htm?type=command¶m=udevice&idx=1711&nvalue="'..devvalue)
end
end
return commandArray
OK, flashed this one.jvdz wrote: ↑Tuesday 30 April 2019 17:30 Ah, I see now..... sorry about that.![]()
Could it be you are using Userid/Password security for the Local network preventing the url to update the device?
That second option is what my story was about!
EDIT: there is already a working bin available in this branch: https://github.com/jvanderzande/ESPEasy ... ntv20/dist
Users browsing this forum: No registered users and 0 guests