UPDATE: This has been pushed out to full release.
Looking for some testers for new custom integration to be a companion to node-red-contrib-home-assistant-websocket. It will add two new nodes and enable each event node to be exposed to Home Assistant as switches.
Sensor Node:
It will create a sensor or binary sensor inside Home Assistant that can be updated directly from Node-RED.
Webhook Node:
Creates a webhook in Home Assistant that will be handled by Node-RED.
https://:/api/webhook/LvNwB2ckjGWyYGVvArJ0uCUbQFrqAWcg
Event Nodes (events: all, events: state, trigger: state, and poll state):
Will have the option to be exposed to Home Assistant, and when enabled, it will show up in Home Assistant as a switch. Turning on and off these switches will disable/enable the nodes in Node-RED. This should help people who find themselves having to make input_booleans in HA to enable/disable flows.
Installation
Installation of custom integration can be done using HACS as a custom repository, https://github.com/zachowj/hass-node-red, or manually, instruction can be found in the README.
To get the new nodes in NR youâll need to install a new branch of node-red-contrib-home-assistant-websocket.
Shell
$ npm install https://github.com/zachowj/node-red-contrib-home-assistant-websocket#integration
Hass.io Users need to add this to their config
"npm_packages": [
"git+https://github.com/zachowj/node-red-contrib-home-assistant-websocket#integration"
],
Tip:
Filling in the name field in the HA config of these new nodes before you first deploy will attempt to make it with that entity_id otherwise it will default to sensor.nodered_79fba2c4_04342c
. Where the random string is the node id in Node-RED. The entity ids change be changed in HA after creating them in NR.