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

Does not take into account any changes to httpRoot in node-red config to serve up list of entities pulled from Home Assist #86

Open
schford opened this issue Jun 25, 2018 · 0 comments

Comments

@schford
Copy link

schford commented Jun 25, 2018

IF you make a change to the httpRoot setting in settings.js for node red then when the system tries to serve up the list of discovered entities it tries to pull it from the wrong URL

For my install it is trying to pull from

http://192.168.0.19:1880/homeassistant/entities

rather than

http://192.168.0.19:1880/node-red/homeassistant/entities

as I made this change in settings.js

// The following property can be used in place of 'httpAdminRoot' and 'httpNodeRoot',
// to apply the same root to both parts.
httpRoot: '/node-red',

On line 47 of server-events-state-changed.html - we can see the url it fetches to show entities, as it does not take into account httpRoot variable I have done a quick and dirty hard code - I am sure there must be a better way of fixing this but I am not a coder :-( as you can see below all I have done is manually put in the additional info for my installation.

            $.get('/node-red/homeassistant/entities').done((entities) => {
@schford schford changed the title Does not take into account any changes to httpRoot in node-red config to serve up list of entities pulled form Home Assist Does not take into account any changes to httpRoot in node-red config to serve up list of entities pulled from Home Assist Jun 25, 2018
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

1 participant