zachowj / hass-node-red

Companion Component for node-red-contrib-home-assistant-websocket to help integrate Node-RED with Home Assistant Core
MIT License
446 stars 180 forks source link

No Nodered.trigger in HA #119

Closed nickwild-999 closed 2 years ago

nickwild-999 commented 2 years ago

Version of the custom_component

Node Red companion v1.06

Configuration

certfile: fullchain.pem
credential_secret: If1C7h!IL
http_node:
  password: ''
  username: ''
http_static:
  password: ''
  username: ''
init_commands: []
keyfile: privkey.pem
npm_packages: []
ssl: false
system_packages: []
theme: default
require_ssl: true

Logs

Welcome to Node-RED
===================
9 Feb 10:29:07 - [info] Node-RED version: v2.2.0
9 Feb 10:29:07 - [info] Node.js  version: v16.13.2
9 Feb 10:29:07 - [info] Linux 5.10.91 x64 LE
2022/02/09 10:29:08 [error] 561#561: *71 connect() failed (111: Connection refused) while connecting to upstream, client: 172.30.32.2, server: a0d7b954-nodered, request: "GET /comms HTTP/1.1", upstream: "http://127.0.0.1:46836/comms", host: "192.168.1.247:8123"
9 Feb 10:29:08 - [info] Loading palette nodes
2022/02/09 10:29:10 [error] 561#561: *71 connect() failed (111: Connection refused) while connecting to upstream, client: 172.30.32.2, server: a0d7b954-nodered, request: "GET /comms HTTP/1.1", upstream: "http://127.0.0.1:46836/comms", host: "192.168.1.247:8123"
2022/02/09 10:29:12 [error] 561#561: *71 connect() failed (111: Connection refused) while connecting to upstream, client: 172.30.32.2, server: a0d7b954-nodered, request: "GET /comms HTTP/1.1", upstream: "http://127.0.0.1:46836/comms", host: "192.168.1.247:8123"
9 Feb 10:29:13 - [info] Dashboard version 3.1.5 started at /endpoint/ui
BAIL ON node-red-node-pi-gpio/rpi-gpio
9 Feb 10:29:14 - [info] Settings file  : /etc/node-red/config.js
9 Feb 10:29:14 - [info] Context store  : 'default' [module=memory]
9 Feb 10:29:14 - [info] User directory : /config/node-red/
9 Feb 10:29:14 - [warn] Projects disabled : editorTheme.projects.enabled=false
9 Feb 10:29:14 - [info] Flows file     : /config/node-red/flows.json
9 Feb 10:29:14 - [info] Server now running at http://127.0.0.1:46836/
9 Feb 10:29:14 - [info] Starting flows
9 Feb 10:29:15 - [info] [mqtt-broker:b0272c16.53133] Connected to broker: mqtt://localhost:1883
9 Feb 10:29:19 - [info] [server:Home Assistant] Connecting to http://supervisor/core
9 Feb 10:29:19 - [info] [server:Home Assistant] Connected to http://supervisor/core

Describe the bug

I am not getting a nodered.trigger service. I have set up a switch in NR using HomeAssistant, but still no joy. any thoughts please?

Screenshot 2022-02-09 at 10 41 04
zachowj commented 2 years ago

Try restarting NR and see if it shows up then. There was an issue I fixed in the current release where NR only loads the services once and doesn't update them when new ones are registered in HA.

nickwild-999 commented 2 years ago

Thanks Jason. I had tried to restart already but still no joy.

zachowj commented 2 years ago

If you're still seeing the alert in the node editor you don't have the integration completely installed.

image

Did you complete step 2 https://github.com/zachowj/hass-node-red#installation

nickwild-999 commented 2 years ago

Thanks Jason. Yes it is still there. What should I do? FYI I am running on a virtual box on a macmini

ScottBevin commented 2 years ago

Have you definitely done this? Somehow I missed it while following the instructions and had the same issue.

"In the Home Assistant UI go to "Configuration" -> "Integrations" click "+" and search for "Node-RED""

nickwild-999 commented 2 years ago

@ScottBevin Thanks so much! That nailed it