Ah ok, seems like there are some breaking changes with two of the nodes. The Poll State and Current State both have a little different formatted output. im working on it, thanks @frenck
So, I see in the notes that āthe add-on now authenticates against Home Assistantā. But what is my username? I have the api_password set, and thatās all Iāve ever used to login to home assistant. and now I canāt access node red at all, I tried blank user and āadminā, but I canāt even see in the docs where to configure a potential username for home assistant?
me2 too i have delete the folder .store, restart and set a new user. but node-red said āLogin failedā. After delet node-red incl. folder, the same. something Iām doing wrong
So, the answer for me was, upgrade to a newer home assistant, since apparently users are a thing now, but werenāt on the version I was using.
The new home assistant config was automatically added, but didnāt replace my existing one, so on every node I had 2 āHomeassistantā options to choose as the server. I just deleted the old one, and had to double-click then click done on every HA node to reset it to the new server config using the generated key, and now it appears to be working again.
I upgraded to the new Node-RED, reconfigured and made sure everything worked smoothly. Tonight I updated my Hassio to HassOS 1.12 then Hass to 81.2. After the system came back online I noticed in the Hass System Log a whole bunch of errors when Node-RED was trying to initialize the API.
18-10-31 00:12:47 INFO (MainThread) [hassio.api.proxy] Home Assistant WebSocket API request initialize
18-10-31 00:12:47 INFO (MainThread) [hassio.api.proxy] WebSocket access from a0d7b954_nodered
18-10-31 00:12:47 ERROR (MainThread) [hassio.api.proxy] Client error on WebSocket API Cannot connect to host 172.30.32.1:8123 ssl:False [Connection refused].
There wasnāt any errors anywhere else and my automations wouldnāt work until I restarted Node-RED. After restarting Node-RED everything was fine again.
Iāve tested this (again just right now to be sure), but the add-on handles casing of usernames correct on my end.
Iāve tested with the username Henk and password }_zmq4c.%CXbqh>/B9"2Dmq%,!Am)v"^+pJ~qEjLvā[gF$`. So both complex password an capitalized usernames, did work on my end?
Hi Frenckā¦
I solved the issue with only lower case lettersā¦
In Home Assistant the users is registered with a capital letter, but if I write the exact name as it is in HA, I get a login failedā¦ If I only use lower case letters, then all is fineā¦
All went well except that the new problem is that now HA does not connect to node-red there is no data in the API pass and Long-Lived Access Token. That there to point fingers? Before the update, the data were registered there.