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

Add entities to device via NodeRed #139

Closed peteh closed 1 year ago

peteh commented 1 year ago

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

When adding new entities to Homeassistant using NodeRed nodes, it would be cool to add them to a specific devices. E.g. I added a bunch of switches for each room and depending if the switch is on or off, the cleaning robot will clean this particular room when doing the next cleaning run.

Each of the switches exists as a separate entity and when assigning them to a specific area, they all have to be manually set to said area. If they would be assigned to a specific device, only the device would need to be added to the area. Also there would be a more logical view of which entities belong to a certain function/device.

Describe the solution you'd like A clear and concise description of what you want to happen.

Like entities it should be possible to add devices. Then within the entity node the assigned device could be selected.

In HA all these assigned entities would show up on the device page of this particular device.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered. There is no particular alternative I think. I need to assign the area to each entity separately and they show up as single items.

Additional context Add any other context or screenshots about the feature request here.

PS: thanks for providing this integration. I'm automating a lot of my functionalities using NodeRed and this integration.

nunomcruz commented 1 year ago

I would also love to see this!

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

peteh commented 1 year ago

I'm still interested in this feature

zachowj commented 1 year ago

https://github.com/zachowj/node-red-contrib-home-assistant-websocket/commit/6c6421298acd176a9632d01ec34356417e163fda

peteh commented 1 year ago

So cool, thank you so much! I'll try it as soon as it's available in a release.