zachowj / hass-node-red

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

Cannot add integration from community store (HACS) #184

Closed Felix7747 closed 1 year ago

Felix7747 commented 1 year ago

Version of the custom_component

Home Assistant 2023.6.1 Supervisor 2023.06.1 Operating System 10.2 Frontend 20230608.0 - latest

Node-RED addon 14.2.2 Hello and thank you for your hard work on this project. Please let me know if you would like me to test/provide any other information. Thanks

Configuration

Default config. I have reproduced this bug on HAOS 9.5, 10.0 & 10.2 using Generic x86-64 install https://www.home-assistant.io/installation/generic-x86-64

# Loads default set of integrations. Do not remove.
default_config:

logger:
  default: info

# Load frontend themes from the themes folder
frontend:
  themes: !include_dir_merge_named themes

# Text-to-speech
tts:
  - platform: google_translate

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

Describe the bug

Node red does not show up in the integration list after installing the add on. Following the Install via HACS method, Step 5: Clicking on My: Add Integration produces the following error presented by the Home Assistant UI:

This integration does not support configuration via the UI. If you followed this link from the Home Assistant website, make sure you run the latest version of Home Assistant.

The issue is also experienced by other users: https://community.home-assistant.io/t/attention-this-node-requires-node-red-custom-integration-version-1-1-0-to-be-installed-in-home-assistant-for-it-to-function/503242/13

Manually adding the integration works fine.

Debug log


s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service base-addon-banner: starting
-----------------------------------------------------------
 Add-on: Node-RED
 Flow-based programming for the Internet of Things
-----------------------------------------------------------
 Add-on version: 14.2.2
 You are running the latest version of this add-on.
 System: Home Assistant OS 10.2  (amd64 / generic-x86-64)
 Home Assistant Core: 2023.6.1
 Home Assistant Supervisor: 2023.06.1
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
s6-rc: info: service base-addon-banner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service base-addon-log-level: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service base-addon-log-level successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service init-nginx: starting
s6-rc: info: service init-customizations: starting
s6-rc: info: service init-customizations successfully started
s6-rc: info: service init-nodered: starting
s6-rc: info: service init-nodered successfully started
s6-rc: info: service nodered: starting
s6-rc: info: service nodered successfully started
[13:46:02] INFO: Starting Node-RED...
s6-rc: info: service init-nginx successfully started
s6-rc: info: service nginx: starting
s6-rc: info: service nginx successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
> start
> node $NODE_OPTIONS node_modules/node-red/red.js --settings /etc/node-red/config.js
9 Jun 13:46:02 - [info] 
Welcome to Node-RED
===================
9 Jun 13:46:02 - [info] Node-RED version: v3.0.2
9 Jun 13:46:02 - [info] Node.js  version: v18.16.0
9 Jun 13:46:02 - [info] Linux 6.1.29 x64 LE
9 Jun 13:46:03 - [info] Loading palette nodes
9 Jun 13:46:04 - [info] Dashboard version 3.5.0 started at /endpoint/ui
9 Jun 13:46:04 - [info] Settings file  : /etc/node-red/config.js
9 Jun 13:46:04 - [info] Context store  : 'default' [module=memory]
9 Jun 13:46:04 - [info] User directory : /config/node-red/
9 Jun 13:46:04 - [warn] Projects disabled : editorTheme.projects.enabled=false
9 Jun 13:46:04 - [info] Flows file     : /config/node-red/flows.json
9 Jun 13:46:04 - [warn] Encrypted credentials not found
9 Jun 13:46:04 - [info] Server now running at http://127.0.0.1:46836/
9 Jun 13:46:04 - [info] Starting flows
9 Jun 13:46:04 - [info] Started flows
[13:46:04] INFO: Starting NGinx...
9 Jun 13:46:09 - [info] [server:Home Assistant] Connecting to http://supervisor/core
9 Jun 13:46:09 - [info] [server:Home Assistant] Connected to http://supervisor/core

home-assistant_2023-06-09T03-47-22.485Z.log

Felix7747 commented 1 year ago

So.... It turns out I was confusing Home Assistant Community Store Integrations (HACS) with Home Assistant Integrations + Home Assistant Community Add-ons.