twocolors / node-red-contrib-esphome

Node-RED nodes to ESPhome devices
MIT License
18 stars 5 forks source link

all sensor one message #40

Closed bluebier closed 5 months ago

bluebier commented 5 months ago

There is a 16-channel binary sensor device. I would need all the channels in one message at once. example: a1: true a2:false a3:false

twocolors commented 5 months ago

state from all relay read when connect to esp, when some relay change state, esphome send event only for this relay

if you want one json, i recommend use context in Node-RED (write all state to context, when change update json context for this element)

yep, you will have 16 node IN add all move to one function node

bluebier commented 5 months ago

where to activate this function because I can't find it

twocolors commented 5 months ago

you must write this function in node - function