npm node-red-contrib-home-assistant-websocket 0.31.0
node-red-contrib-home-assistant-websocket v0.31.0

latest releases: 0.74.2, 0.74.1, 0.74.0...
3 years ago

New nodes

  • Tag (beta)
  • Time (move to beta from alpha)
  • Device (alpha) requires v0.5.2+ of the NR companion custom component
    • Create device based event triggers
    • Trigger device actions

Features

Queues for call-service node

There always seemed to be confusion over why the call-service node would report an error of no connection to server. This error is often thrown when using a starting node that fires directly after loading, i.e. Bigtimer, eztimer. The cause was that the node would trigger the flow before the HA config node had a chance to connect to Home Assistant hence 'no connection to server. This update adds a queue system to the call-service node. With the ability to save only the first/last message or all messages and then resend them after NR has successfully connected to HA.

Async done / complete

Home Assistant nonevent nodes will notify the Node-RED runtime when it has completed its action. Basically, the complete node will now function with HA nodes.
https://nodered.org/blog/2019/08/16/going-async
https://nodered.org/blog/2019/09/20/node-done

Helper functions added to JSONata Expressions

https://zachowj.github.io/node-red-contrib-home-assistant-websocket/guide/jsonata.html

  • $randomNumber
  • $sampleSize

Migrations

The node migration system has been reworked and allows for updating all HA nodes with a push of a single button. With this release, a lot of nodes have changed how certain data is saved. So it is highly recommended to make a backup of your flows before doing upgrades.

Custom Outputs

  • API
  • Current state
  • Device
  • Events: all
  • Events: state
  • Fire event
  • Poll state
  • Render Template
  • Tag
  • Time
  • Wait Until
  • Webhook
  • Zone

Features

  • Add $randomNumber and $sampleSize as JSONata helper functions (b5b65bf)
  • Add device node (b08fcbe)
  • api: Add custom outputs (da0187f)
  • call-service: Add message queue (58df3a0)
  • current-state: Add custom ouputs (f4ecbb8)
  • events-all: Add custom outputs (0a3fc23)
  • events-state: Add custom outputs (aa07fb4)
  • Make use of NR v1.0 async send and done (d5b69f4)
  • migrations: Add config nodes to mass update (5d23126)
  • tag: Add tag node (17585bb)
  • time: Move time node to beta release (27caacc)
  • webhook: Add custom outputs (5dff14b)

Bug Fixes

  • api: add try catch for setCustomOutputs (ee5189d)
  • Check for valid property for custom outputs (f971856)
  • Check for valid server before processing input (a86a9a6)
  • check for valid server config before using it (d7b322b)
  • ci: Don't lint included external libs (8cd6735)
  • destroy bonjour after finished using it (eb2208f)
  • entity-switch: Remove unused declaration (e6b15a0)
  • Fix Comms import (8c51877)
  • migration: Move event-state for properties to a newer version (de68154)
  • migrations: make sure schema version is a number (e1bc0f8)
  • migrations: swap conditional for default value (996b9ef)
  • only trim spaces of server url if it exists (f9ce69f)
  • poll-state: call correct error method (5f7b1a8)
  • poll-state: Use correct element id for entity_id input (0c2fe30)
  • request autocomplete results only if server actually changes (27dc32a)
  • routes: fix server id for getting integration version (fc6c808)
  • routes: flatten out properties array (45df3f1)
  • status: check for valid homeAssistant before adding listeners (c1d29ec)
  • time: Check jsonata length before attempting to find entity ids (e3de59e)
  • time: use correct i18n errror message (be3db24)
  • Use correct element id for update all button (6bcf9a8)
  • use the correct RED (03bb7a0)

Documentation

  • Add github discussions link to header (dfa74a7)
  • Add new nodes to index (7b305d0)
  • Add new nodes to TOC (9a73e86)
  • cookbook: Correct spelling (28928b4)
  • cookbook: Update starting flow after HA reboot (388b70a)
  • current-state: add information about custom outputs (e9fcb91)
  • events-state: Add custom output information (e2a11a9)

Don't miss a new node-red-contrib-home-assistant-websocket release

NewReleases is sending notifications on new releases.