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

Openhab-Nodes: No item names selectable with configured httpRoot #21

Open
ruebox opened this issue Jan 4, 2018 · 5 comments
Open

Openhab-Nodes: No item names selectable with configured httpRoot #21

ruebox opened this issue Jan 4, 2018 · 5 comments

Comments

@ruebox
Copy link

ruebox commented Jan 4, 2018

Hi,

To integrate node-red within openhab, I added within the node-red settings.json ->
httpRoot: '/red',

After this change, the node-red-openhab is still able to properly fetch values from the openhab.
However, if I add a new openhab node, the ui does not provide a list of existing openhab items:
ItemName remains empty. It is not possible to select an item.

Thanks for your support.

Best,
Rüdiger

@ruebox ruebox changed the title Openhab-Nodes: No item names selectable Openhab-Nodes: No item names selectable with configured httpRoot Jan 4, 2018
@mishakim
Copy link

mishakim commented Mar 7, 2018

I have the same problem. Using the "openhab2 get" node and passing the item still works, as does manually importing a node as text with the itemname property set, but the UI cannot select the Item

@pdmangel
Copy link
Owner

@ruebox : I can't reproduce this behaviour ... are you using the latest version of node-red-contrib-openhab2 ?

@mishakim
Copy link

as far as I can tell - I'm on 1.1.3. OpenHab is 2.2.0 release build and node-red is 0.18.3

@zosky
Copy link

zosky commented Feb 12, 2020

i have this running great on a few pis. but on 1 (that also hosts oh2), it wont list ...

in chrome console - when i open the node - i see 404 errors from http://home:1880/{httpAdminRoot}/openhab2/items?name=oh2...

meanwhile, i can see what it wants manually: http://home:1880/ admin/ openhab2/items?... but i couldn't figure out what to change in 77-openhab2.js

@skurzynski
Copy link

Hi,

I was facing the same after changing httpAdminRoot. To make it work with openhab node you need to change in 77-openhab.js:
line 277: RED.httpNode.get("/openhab2/items", function (req, res, next) {
to
RED.httpNode.get("/{httpAdminRoot}/openhab2/items", function (req, res, next) {

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