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

Entity node in sub-flow create new entity each time main flow is changed #130

Closed snp88 closed 2 years ago

snp88 commented 2 years ago

Version of the custom_component

v.1.0.7

Configuration


Add your logs here.

Describe the bug

If we add entity node to sub-flow each change in main flow will couse creation of the new sensor entity

Steps to reproduce: 1 create sub-flow 2 create entity via entity node in sub flow 3 add sub-flow to main flow image 4 deploy flows - this will create entity in HA entity name for example sensor.exapleentityfromnodered 5 change and deploy main flow for example - this will create second entity in ha with the name _sensor.exapleentityfromnodered1 image

Debug log


Add your logs here.
zachowj commented 2 years ago

It's a limitation of the entity node.

https://zachowj.github.io/node-red-contrib-home-assistant-websocket/node/entity.html#configuration

snp88 commented 2 years ago

thx for clarification :)