-
Notifications
You must be signed in to change notification settings - Fork 5
Take into account httpRoot. #25
Comments
Thanks - following! |
What does the httpRoot function do? |
I don't think it's a function, it's a variable that gets stored in nodered's settings.js. The URLs would also need to be updated in the .html files. The httpRoot setting should be taken into account here. Example: Maybe the httpRoot setting needs to be concatenated to that? |
This may be a bug in AYapejian/node-home-assistant. |
Going off the .html stuff I mentioned in my previous comment, a good temporary workaround is to go through all of the .html files under each folder under the nodes directory and add your directory to the URL. So I basically just did a CTRL + F on "homeassistant" and concatenated my route to the URL it's trying to get. Restart nodered, then you'll see your entity IDs populating. Let me know if you'd like any help or a test environment. I could probably throw one up. |
Here's another workaround for those using an nginx reverse proxy like I am |
I think i understand it, I'll check if i can just add a variable to the beginning, I just need to figure out how to access it properly. |
AYapejian#76 (comment) |
@kevinduong is there a variable (I presume httproot) that could/should be aded to the beginning of the html strings? if so could you submit a PR with an example? |
I have a fix for this on my WebSocket fork feel free to cherry-pick it if you would like. These are the two commits: There is also fixes for #26, #34 and #36 but they're probably not as easily cherry-picked. |
Has this arrived in an actual release? I am currently postponing all my HA-nodered stuff until this is fixed. |
I think it's fixed in this fork
https://github.com/zachowj/node-red-contrib-home-assistant-websocket
…On Wed, Oct 17, 2018, 4:06 PM Simon Szustkowski ***@***.***> wrote:
Has this arrived in an actual release? I am currently postponing all my
HA-nodered stuff until this is fixed.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#25 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACqSwM-RqpuG1vP6NqlIUok2vIN_uNnvks5ul5vQgaJpZM4Vh53p>
.
|
I pushed the changes to NPM, so it should be fixed |
I'm sorry, but it doesn't work for me. Maybe i've configured it the wrong way? Here's what i did:
Result: Error "Cannot get /homeassistant/entities", however, when i deploy the flow, the node says "Connected". The element list stays empty. |
The NodeRed contrib plugin doesn't take into account httpRoot. This breaks routing if you're trying to view some of the endpoints.
Steps to reproduce the behavior:
Expected behavior
Shouldn't receive a 404.
Other (please complete the following information):
AYapejian#86
The text was updated successfully, but these errors were encountered: