Home Assistant Node-RED nodes cannot connect between them

I am using Call Service node for calling input_boolean.toggle in home assistant but it does not no connect to home assistant. they are in same RPi.

I can see in debug from Node-RED that it cannot login in home assistant
Node-Red%20Home%20assistant%20error

also I can see in Home assistant the attempts for login:

Home Assistant 0.76.2
Login attempt or request with invalid authentication from 192.168.0.100
10:33 PM components/http/ban.py (WARNING)
Login attempt or request with invalid authentication from 192.168.0.100
10:32 PM components/http/ban.py (WARNING)
Login attempt or request with invalid authentication from 192.168.0.100
10:32 PM components/http/ban.py (WARNING)
Login attempt or request with invalid authentication from 192.168.0.100
10:32 PM components/http/ban.py (WARNING)
Login attempt or request with invalid authentication from 192.168.0.100
10:32 PM components/http/ban.py (WARNING)
Login attempt or request with invalid authentication from 192.168.0.100
10:32 PM components/http/ban.py (WARNING)
Login attempt or request with invalid authentication from 192.168.0.100
10:32 PM components/http/ban.py (WARNING)
Login attempt or request with invalid authentication from 192.168.0.100
10:32 PM components/http/ban.py (WARNING)

What I guess is I have to add my the IP in ban.py but I dont find the file and/or path for it.
would you guys help me indicates if my guessing is correct, I am using “Configurator” for finding it.
If my guessing is not OK how can I interconnect home assistant and Node-RED.

thank in advance

DH

You don’t need to modify ban.py. I would double check the ip address and password you entered into node red. Are any of your other HA nodes working correctly?

Hi William,

there is one which is working properly, it is Events: All Node which is connected.

Best Regards

can you post the code for the flow that isn’t working?

Do you have DuckDNS or any SSL installed ? … in this case you have to update the configuration tab for homeassistant

Hi William,

there is code for both flows,

[{"id":"b5ed2be5.4aed78","type":"light-scheduler","z":"e162b617.55e1d8","settings":"40783b21.58e614","events":"[]","topic":"","name":"Node Red Checkin","onPayload":"OK","onPayloadType":"str","offPayload":"OK","offPayloadType":"str","onlyWhenDark":false,"sunElevationThreshold":6,"sunShowElevationInStatus":false,"outputfreq":"output.minutely","x":130,"y":221,"wires":[["c294f938.7d49e8"]]},{"id":"41b6d165.3d15b","type":"debug","z":"e162b617.55e1d8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":650,"y":221,"wires":[]},{"id":"c294f938.7d49e8","type":"api-call-service","z":"e162b617.55e1d8","name":"Toggle Watchdog","server":"a3e2774.9e0d288","service_domain":"input_boolean","service":"toggle","data":"{\"entity_id\" : \"input_boolean.node_red\"}","mergecontext":"","x":410,"y":221,"wires":[["41b6d165.3d15b"]]},{"id":"40783b21.58e614","type":"light-scheduler-settings","z":"","name":"my settings","latitude":"14.628434","longitude":"-90.522713"},{"id":"a3e2774.9e0d288","type":"server","z":"","name":"Home Assistant","url":"http://192.168.0.100:8123","pass":"dannisis"}]

[{"id":"4bff06b.ab9cbf8","type":"change","z":"e162b617.55e1d8","name":"OK","rules":[{"t":"set","p":"payload","pt":"msg","to":"OK","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":330,"y":301,"wires":[["5d14572a.e70fd8"]]},{"id":"5d14572a.e70fd8","type":"mqtt out","z":"e162b617.55e1d8","name":"Checkin MQTT","topic":"checkin/nodeRED","qos":"0","retain":"false","broker":"bb2796c4.110898","x":520,"y":301,"wires":[]},{"id":"510428b8.7b7c48","type":"server-state-changed","z":"e162b617.55e1d8","name":"Watchdog chekin","server":"a3e2774.9e0d288","entityidfilter":"input_boolean.node_red","entityidfiltertype":"exact","haltifstate":"","x":120,"y":301,"wires":[["4bff06b.ab9cbf8"]]},{"id":"bb2796c4.110898","type":"mqtt-broker","z":"","name":"","broker":"192.168.0.100","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"a3e2774.9e0d288","type":"server","z":"","name":"Home Assistant","url":"http://192.168.0.100:8123","pass":"dannisis"}]

thanks in advance

Hi xx_Nexus_xx

My system is hass.io the last update.
I dont installed DuckDNS or SSL installed, only it has installed but not active.

Thanks for your help

what is the HA URL you are using to connect to the HA frontend ? you can have the following options in the node-red configuration panel:

Additionally you have to setup the HTTP API password (see here)… the same password has to be in your configuration tab in Node-Red

Sometimes it needs a full system restart for Node-Red to accept the config change.

I have not seen any “ban” message on my system … so it can be any other setting you have done on your system and is not related to node-red in particular.

dannisis - I didn’t find anything wrong with the nodes on my end, they connected to HA without a problem. Have you tried killing node-red and restarting it?

Hello dannisis,
did you get this working?
i tried all suggestions in here

Hi William,

I could not answer you before, it still continues without connection for service node though the IP error is not happening anymore.

thanks

hey mate,

thanks for your reply.

with a fresh install of node red, i added in my configuration.yaml:

#http

http:

*api_password: *******

trusted_networks:

- 192.168.0.45 <—hassio IP

then i rebooted

the error messages stopped, and it is working now.

cheers,

Dennis