Node-RED integration with Home Assistant through websocket and REST API
Documentation can be found here.
Have Node-RED installed and working, if you need to install Node-RED see here.
Install via Node-RED Manage Palette
Install via npm
$ cd ~/.node-red $ npm install node-red-contrib-home-assistant-websocket # then restart node-red
For Home Assistant add-on users:
The Community add-on ships with this node right out of the box.
Under the server node config just check the checkbox for
I use the Home Assistant Add-on
The add-on can be found here: https://github.com/hassio-addons/addon-node-red#readme