juanhaywood / nodered-pylontech-console-reader

Node-RED flow and configuration to read details from Pylontech batteries via the console port
15 stars 4 forks source link

Node Red to HA Sensors #1

Open viking2010 opened 1 year ago

viking2010 commented 1 year ago

Hi, do you know if there's a way of publishing the data from the pylontech's to a sensor instead of sending the data to MQTT?

Cheers

juanhaywood commented 1 year ago

Can you clarify what you mean by "sensor"? MQTT is the communication layer, that you will use to publish the values to wherever you want them to go.

viking2010 commented 1 year ago

Sure, so in Node-Red, you can assign HA sensor entities, for example, here's another Node Red flow I have for another integration (I will add that this wasn't done by me!):

image

Each of the sensors in the above image in blue, create an HA sensor, there is an all data sensor and this looks like this: image

The Range sensor node looks like this: image

What I was wondering, and I'm not sure myself how it's done, was if the data from the batteries could be put in to individual node-red sensors rather than in to MQTT, using the Node-Red HA sensor entity:

image

Hope that helps to clarify things!