Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List of Item Names does not populate #43

Open
ncsusix opened this issue Dec 23, 2019 · 8 comments
Open

List of Item Names does not populate #43

ncsusix opened this issue Dec 23, 2019 · 8 comments

Comments

@ncsusix
Copy link

ncsusix commented Dec 23, 2019

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
Copy link
Owner

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

@fxcoolby
Copy link

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

@fxcoolby
Copy link

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
Copy link
Owner

@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
Copy link

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
Copy link
Owner

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

@guny74
Copy link

guny74 commented Dec 26, 2020

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
Copy link

JackBeQuick87 commented Jan 19, 2021

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants