-
Notifications
You must be signed in to change notification settings - Fork 2
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
unable to use danalock.cfg in hassio #5
Comments
Any other tips? |
I'v modified the init flow: |
there is also a nicer way use error handling with catch: |
@BrianMay-pt looking at your screenshots I believe you managed to retrieve your lock. Check the "payload" property. Can you provide a screenshot of the error message you get? Thanks for the suggestion @zu3st-de! You keep introducing new features in Node-red to me, big thanks! I´ll look into the catch node. BTW, in my local development version, I´m currently playing around with improving the logging. It´s not ready for prime quite yet. |
error message when I try to actuate the lock: yaml code for the lock: lock:
|
If you are using hassos you have to modify the url to http://IP:1880/endpoint/danalock/... |
now I don't get the error message, but nothing happens. |
Try the url directly in a browser http://ip:1880/endpoint/danalock/bridge/main_door/execute/status. |
Nope, "Cannot GET /endpoint/danalock/bridge/main_door/execute/status" I get the same kind of error without endpoint |
can it have anything to do with nodered/lock/danabridge version? I'm running the latest version on all of them |
Try this operation: GET http://ip:1880/endpoint/danalock/main_door/get-state Just open the URL in a browser and see what happens. |
Nothing happened...a long waiting game and "ERR_ADDRESS_UNREACHABLE" |
Tried again after a network restart, same thing |
Any other tips/tricks? |
Can you please post the exact URL to the Node-RED web interface? |
From the side menu? |
From the Node-RED ha plugin guide: "Note: In order to use the http_node you will need to expose Node-RED using a network port in addition to ingress. The HTTP nodes will also be presented under /endpoint/ as shown in the UI. If using the node-red-dashboard module this will also be hosted under this path and will use any credentials set here." https://github.com/hassio-addons/addon-node-red/blob/main/node-red/DOCS.md More excerpts from the docs that may be relevant: " If you cannot access HTTP nodes or Node-RED Dashboard, please check if you have enabled direct access mode by setting a port number in "Network" configuration section of the add-on." " If you cannot access HTTP nodes or Node-RED Dashboard, please check if you URL starts with /endpoint/, or else Home Assistant authentication will kick in." Did you enable “direct access mode“? |
So...I went directly to the add-on page and selected "open web interface" http://192.168.1.69:8123/hassio/ingress/a0d7b954_nodered If I try my ip with port 1880 I cannot connect with my credentials, changed the por to 1881, cannot connect either |
Did you specify a network port in the "Network" section of the add-on? |
Yes, I did. 1880, changed to 1881 afterwards Can it have anything to do with the fact I'm running homeassistant under a virtual machine in open media vault? |
Sorry @BrianMay-pt , I have no clue. While I haven´t tried Open Media Vault, I can recommend running Proxmox Virtual Environment, especially running your apps and services in Linux containers (LXC). You can run virtual machines in Proxmox as well but LXC is more lightweight. Proxmox also has good support for scheduled backups. BTW, released a new version of the Node-RED flow. Changes described in the changelog. |
tried it, same issue, "an error occurred while requesting the resource" however, at the debug window in node-red I no longer see any message, which may be good...maybe there's something wrong with the yaml code? |
I tried the Home Assistant Supervised once and I believe it uses its network configuration which may be different from the one set in your virtual machine. I had for example problems getting the REST sensor to work. If you are willing to give Home Assistant core a go, then I can provide you with step-by-step instructions for installing and handling upgrades. |
I actually installed homeassistant on a virtual machine because the container option was giving me update issues and there is no other reliable way of installing it on the same machine as open mediavault 🫤 |
Upgrading HA is easy using pip. It's a bit more tricky to upgrade the python runtime. Check this thread for steps https://community.home-assistant.io/t/upgrading-homeassistant-core-in-a-python-ve/420027/19 |
Is it possible to provide useredata in an other way, cause there is no possibility to provide danalock.cfg to nodered in hassio?
The text was updated successfully, but these errors were encountered: