/node-red-contrib-home-assistant-ws

Node Red integration with Home Assistant through websockets

Primary LanguageJavaScriptApache License 2.0Apache-2.0

Node-RED - Home Assistant integration through WebSockets

This Node-RED plugin provides following nodes to communicate with an home assistant server through Home Assistant's WebSocket API.

Event node

Receives events from Home Assistant (Example: status changed, flic click)

Simple Event node

A simplified event node to receive state change events from Home Assistant.

State node

Gets the current state of an antity or multiple entities. (Example: Get status of light.kitchen, get statuses of switch.*)

Service node

Executes a Home Assistant service. (Examples: Turn on a switch, Set Nest thermostat temperature)

Installation

Assuming Node-RED is alrady up and running:

$ cd ~/.node-red
$ npm install node-red-contrib-home-assistant-ws
restart node-red