twocolors / node-red-contrib-home-assistant-discovery

Nodes for controlling Home Assistant MQTT Discovery devices in Node-RED
3 stars 2 forks source link

Error what is the reason? #3

Closed alexsahka closed 1 year ago

alexsahka commented 1 year ago

image image image

I have this node-red-contrib-ha-mqtt installed https://flows.nodered.org/node/node-red-contrib-ha-mqtt

and I think this node is causing this error

Here is the Docker Nodered Log:

image

twocolors commented 1 year ago

try node-red-contrib-home-assistant-discovery@0.0.8

alexsahka commented 1 year ago

Could you update the https://flows.nodered.org/node/node-red-contrib-home-assistant-discovery

twocolors commented 1 year ago

@alexsahka update , wait ~ 15min

alexsahka commented 1 year ago

image Node red is deployed

alexsahka commented 1 year ago

Node red is deployed, but no devices. MQTT Explorer showing activity under the topic

alexsahka commented 1 year ago

Here is the Node red log

image

alexsahka commented 1 year ago

I'm using ha/# topic instead of homeassistant/#

twocolors commented 1 year ago

show screenshots from the settings (ha-discovery) and from mqtt client

alexsahka commented 1 year ago

image

image

twocolors commented 1 year ago

nodejs and node-red version ?

alexsahka commented 1 year ago

NodeRed in Docker image

twocolors commented 1 year ago

in docker log, like this

node-red     | 5 Oct 21:47:07 - [info] Node-RED version: v3.0.2
node-red     | 5 Oct 21:47:07 - [info] Node.js  version: v16.17.0
node-red     | 5 Oct 21:47:07 - [info] Linux 5.15.61-v8+ arm64 LE
node-red     | 5 Oct 21:47:08 - [info] Loading palette nodes
alexsahka commented 1 year ago

Node-RED version: v3.0.2 Node.js version: v16.16.0 Linux 4.19.0-14-amd64 x64 LE Loading palette nodes

twocolors commented 1 year ago

can you show me full patch some sensor (ha/sensor/...) and json this sensor and screen?

like

homeassistant/sensor/bathroom-fan/temperature/config

{"dev_cla":"temperature","unit_of_meas":"°C","stat_cla":"measurement","name":"Temperature","stat_t":"esphome/bathroom-fan/sensor/temperature/state","avty_t":"esphome/bathroom-fan/status","uniq_id":"ESPsensortemperature","dev":{"ids":"70039f0d06d3","name":"bathroom-fan","sw":"esphome v2022.9.2 Oct  6 2022, 00:31:33","mdl":"esp8285","mf":"espressif"}}
image

it's best to get your base completely mqtt

alexsahka commented 1 year ago

image There is no json for any of my sensors

twocolors commented 1 year ago

oh i thinks this is not HA (MQTT Discovery)

format topic (https://www.home-assistant.io/docs/mqtt/discovery/#discovery-topic)

<discovery_prefix>/<component>/[<node_id>/]<object_id>/config

and payload must be json more