Joolee / nl.joolee.homey.espeasy

ESP Easy is a firmware for ESP8266 boards like the WeMos D1 and NodeMCU. It allows you to quickly make custom devices with switches, sensors and other hardware. This app adds support to Homey for connecting with ESP Easy units.
GNU General Public License v3.0
6 stars 5 forks source link

Informing homey of a button press dont work. #36

Open Insectodium opened 1 year ago

Insectodium commented 1 year ago

Sending info of a button press/GPIO state change results in a 401 invalid session

Error : HTTP : C008 xx.xx.xx.xx GET... failed HTTP code: 401 Received reply: {"code":401,"error":"invalid_session","error_description":"An unkown error has occured [invalid_ses...

postisng to another webserver shows a correct url: "GET /api/app/nl.joolee.homey.espeasy/?i=xx.xx.xx.xx&m=de%3aad%3abe%3aef%3a0c%3a64&t=ESPEasy62ButtonRight&x=621&k=State&v=0 HTTP/1.1"

"Fake-posting" from a browser or curl on the other hand woks well, even from a different local IP, and homey then answer {"response":"ok"}

Where do one start troubleshooting/any tips on what could be wrong?

Joolee commented 1 year ago

That's a weird situation. Have you tried restarting both Homey and the ESP and can you post the version numbers of both software?

This communication takes place between the ESP Easy and Homey API's, it doesn't look like this message comes from a part of the code I can control, unfortunately.

Insectodium commented 1 year ago

Actually, it seems like homey is not accepting any push messages from any ESPEasy boards. Not even the generic "system info" device. At the moment I'm testing 4 different boards, all running ESP_Easy_mega_20220809_normal_ESP32_4M316k or some variation of it, all failing the same way for push messages from all of them. But pushing the same url from from a browser or curl works. Homey can easily pull data from the boards. Homey and boards have been restarted several times. I've even tried older ESPeasy versions with no luck so far.

Homey version: 8.0.8 ESP Easy app versjon: v1.12.1 ESP Easy version: mega_20220809