JSON Payload converted for Home Assistant


I have JSON being output in NodeRED in the following format:

I am trying to pass that into Home Assistant using node-red-contrib-home-assistant-websocket as each different entity - i.e. “VoltageUpperLimit” being an entity for “emon/pylonH22D006C32241518”, with a separate entity for each attribute.

What is the easiest way to achieve this? I have tried all sorts but the only thing i can do so far is pass a single entity through into HA and the value of it changes to all of the values in the JSON output sequentially as they are read.

Thanks in advance


This is the form i am presented with:

For each payload item, you must create a totally different ha-entity-config sensor node with its own independent ha-entity-config (click pencil icon!), and then use state msg.payload.X where X is the entity data you want to expose (the payload item). So you’ll have over a dozen sensors. Which is fine. Would recommend associating them all with a single Node-RED device configuration.