I made a virtual Air Quality device with index 120. I try to update it with a value from an ESP8266 but it does not update the device. I don't even know what Domoticz does with the data at all...
The ESP8266 gets IP number 192.168.1.158 when connected. On the security page I enabled 'Allow Basic-Auth authentication over plain HTTP (API only)' and set '192.168.1.*' as a trusted network. I also tried with a text device but that doesn't work also.
If I do an http API call it says the connection is reinitialized. With an https call the secured connection fails with fault PR_END_OF_FILE_ERROR. I did not do exact the same command, but used "http://192.168.1.162:8080/json.htm?type ... &range=day" which should normally work - and did work before I upgraded. This was the first time since the update I tried to use an ESP8266.
If not you should check the trusted network settings, or check the nvalue if it has the correct range.
Hi Walter,
That doesn't work but it works if I use port number 443 and https instead of port number 8080 and http. That's weird because I have allowed Basic Authentication over plain HTTP. The ESP8266 has address 192.168.1.158 and the trusted network range is '192.168.1.*;127.0.0.*;localhost'. I do remember in my old setup I also had a IPv6 address in this range but I can't find how to specify that. May that be the problem?
I think in latest 2023 beta there were some changes to loosen up some security rules. But I have not enough knowledge to understand if it would help in your case.
With the HTTP authorization setting in my opinion it should indeed behave the same has with HTTPS.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Why not simply use MQTT for this?
The ESP8266 is well capable of that and this way you have a protokoll standard, instead of writing scripts for every device.
I have around 10 ESP devices in my network and they all operate on MQTT. No issues at all.
I changed to MQTT yesterday. I now have a working Ikea Vindriktning device in Domoticz. But it still annoys me that it doesn't work like it used to ...
you may still look into your previous issue for sure, but I always find it a good idea, to use standard protocols.
Errorhandling and a possible later migration are so much easier.
I write a lot of different integrations and I never even consider using anything else but MQTT.
waltervl wrote: ↑Monday 17 April 2023 0:47
I think in latest 2023 beta there were some changes to loosen up some security rules. But I have not enough knowledge to understand if it would help in your case.
With the HTTP authorization setting in my opinion it should indeed behave the same has with HTTPS.