Open serg013 opened 3 years ago
I think your config node is not correct; it says 'myhost' in the SSE connection string. Are you sure that is your OpenHAB host?
I replaces local ip address while putting info here with "myhost". Anyway it works with 2.5.9 and does not work with 3.0.0.M1. Config is right and it can control item state but can not get it from "in" node.
Sorry, I faced with error. When I used "...contrib-openhab2" there was a problem with sending control state to item and I could read states. Now I just checked state control and I can do it but unable to read states. First time I restarted node red I had "in" connected. After second restart connection is lost I have couple error messages: Cannot destructure property state of 'undefined' or 'null'. Error: Request failed with status code 404 TypeError: Cannot read property 'temp' of undefined TypeError: Cannot read property '1' of undefined
response error '{"statusCode":404,"body":"","headers":{"connection":"close","allow":"DELETE,POST,GET,PUT,OPTIONS,HEAD","date":"Tue, 06 Oct 2020 19:45:15 GMT","content-length":"0","server":"Jetty(9.4.20.v20190813)"},"request":{"uri":{"protocol":"http:","slashes":true,"auth":null,"host":"myhost:8080","port":"8080","hostname":"myhost","hash":null,"search":null,"query":null,"pathname":"/rest/items","path":"/rest/items","href":"http://myhost:8080/rest/items"},"method":"GET","headers":{}}}' on 'http://myhost:8080/rest/items' SSE http://192.168.0.103:8080/rest/events - Not found ERROR {"type":{"errno":"ECONNREFUSED","code":"ECONNREFUSED","syscall":"connect","address":"myhost","port":8080}}
I restarted ones again & do not see error messages but anyway unable read item status.