pdmangel / node-red-contrib-openhab2

Other
21 stars 15 forks source link

List of Item Names does not populate #43

Open ncsusix opened 4 years ago

ncsusix commented 4 years ago

I have node red setup on a hass.io environment. I also have Openhab running on a different server. Using node red i'm trying to connect to Openhab to run some commands via Openhab . I have confirmed the connection to Openhab works as I am able to see Openhab events using the debug node and the openhab2-events node.

However I'm having issues with the other Openhab nodes. I am unable to configure the nodes because nothing displaying in the list of Item Names. Is there anyway I can manually type the Item Names or force the list of items to refresh?

I have also confirmed that if if visit openhab:8080/rest/items I see a long list of my openhab items.

pdmangel commented 4 years ago

This indeed looks strange. Which version of node-red-contrib-openhab2 is installed ?

fxcoolby commented 4 years ago

Hello I have the same problem also running through hassio addon. I am running the latest version as of today.
image

fxcoolby commented 4 years ago

After some investigation, I think the problem stems from the fact that this node can't communicate with openhab if the nodered is installed in a docker container. Is there a way around this?

pdmangel commented 4 years ago

@fxcoolby You should specify as 'Host' the ip address of the openhab host or container from the node-red container point-of-view. On which OS do you run docker and openhab ?

fxcoolby commented 4 years ago

Thanks for the reply. The openhab is running on the raspbian light out side of docker environment. However, the Node Red is installed in a docker container (as part of Home Assistant). However, both are running on the same raspberry pi with the same ip address each of course with their respective port number.

pdmangel commented 4 years ago

Please execute the command 'hostname -I'. You should get at least 2 ip adresses.

guny74 commented 3 years ago

Hello,

I have the same problem (without hassio). No Item could be selected. The OH-Config Node throws error "404"...nothing else changed... OH runs in Docker container with seperate "mcVLAN-IP". The connection works before Update.

any Solution. How to downgrade ?

Thank you

Regards

JackBeQuick87 commented 3 years ago

I have the same issue. It was working fine but it broke overnight. I have not been able to trace down any change that could have occurred, let alone triggered it.

I am not running Node-red within docker.

If I use a "http request" node targeting "localhost:8080/rest/items" and outputting to a debug node, the debug pane correctly shows a JSON of all of my nodes. This tells me that the node-red runtime can access openhab's http interface just fine.

I have read through the journalctl logs but I cannot find any clues.

Any suggestions on where I can look or how I can better help?