Community Node: Home Assistant

Hi

I have been using the Home Assistant Nodes that are part of the core n8n. unfortunately these are of very limited use, because of limitations in the Home Assistant REST API.

I ended up writing new nodes, leveraging the Websocket connection to Home Assistant:

These add lots of functionality, most notably a fast trigger node:

This example triggers when a button is pressed, retrieves all lights in an area and toggles them.

The fields are automatically populated from the Home Assistant instance, and easily accessed and searchable. It even retrieves the required and optional fields from the service actions, ready to be filled.

Give it a try if you want, i am looking for feedback.

6 Likes

Using this, how can I get all the entinty states of a specific device? Lets say I have a device that is named “Electric Water Heater” , how could I make a workflow that gets all the entities of this device?

There are a few options in the Additional Fields part, where you can filter entities by device id:

What do you need to add for fields to use the call service-hassio-addonstop capabilities? I am under what to put for the name and I assume the value would be the addon name a0d7b954-nodered

Any guidance is appreciated.