Christian-Me / node-red-contrib-homie-convention

Node-RED node for MQTT communication according the Homie Convention
Apache License 2.0
13 stars 2 forks source link

node id not shown in node dropdown #2

Closed wurststulle closed 4 years ago

wurststulle commented 4 years ago

hey, i am trying this module with config based on the example from homieiot.github.io. it seems, as the node is not parsed correctly, or i am using it wrong. maybe someone can give some advice whats wrong here. `mosquitto_pub -h 192.168.x.x -t "homie/switch-controller/$homie" -m "4.0" mosquitto_pub -h 192.168.x.x -t "homie/switch-controller/$name" -m "SwitchController" mosquitto_pub -h 192.168.x.x -t "homie/switch-controller/$nodes" -m "switch-sensor" mosquitto_pub -h 192.168.x.x -t "homie/switch-controller/$state" -m "ready"

mosquitto_pub -h 192.168.x.x -t "homie/switch-controller/switch-sensor/$name" -m "SwitchSensor1" mosquitto_pub -h 192.168.x.x -t "homie/switch-controller/switch-sensor/$properties" -m "sw0"

mosquitto_pub -h 192.168.x.x -t "homie/switch-controller/switch-sensor/sw0" -m "off" mosquitto_pub -h 192.168.x.x -t "homie/switch-controller/switch-sensor/sw0/$name" -m "state" mosquitto_pub -h 192.168.x.x -t "homie/switch-controller/switch-sensor/sw0/$datatype" -m "enum" mosquitto_pub -h 192.168.x.x -t "homie/switch-controller/switch-sensor/sw0/$format" -m "on,off"`

the node switch-sensor is not shown in node dropdown.

Christian-Me commented 4 years ago

Hi, I see (only one )problem.

image

wurststulle commented 4 years ago

works as expected, thanks for the clarification.

Christian-Me commented 4 years ago

Good to hear that it’s working. Have to write a clarification on this topic as it is a fundamental mechanism for homie to work. One of the big strength of homie is using mqtt retained messages as build in persistence ability - but not clearly explained, especially the implementation in mqtt in relation to qos and limitations of some libraries for microcontrollers.