node-red-contrib-hass 0.0.1

Home-Assistant POST Node

npm install node-red-contrib-hass

Node-RED node to publish states directly to Home-Assistant (https://home-assistant.io)

##Usage Publishes msg.payload via POST to HomeAssistant using the RESTful API

The API method called is /api/states/<entity_id>

msg.payload must be a JSON object with at least a state attribute:

{
    "state": "custom_state",
    "attributes": {
        "attr1":"value1",
        "attr2":"value2"
    }
}

If needed, also a unit_of_measurement attribute can be set.

More info on the API here.

EntityId must be set in the node or in msg.entityid

Node Info

Version: 0.0.1
Updated 1 year, 3 months ago
License: Apache

Downloads

5 in the last day
14 in the last week
30 in the last month

Nodes

  • hass-config
  • hass-post

Keywords

  • node-red
  • hass
  • home-assistant

Maintainers

  • lpandolfini