Dears, Im in trubble with a simple thing.. I need to extract one value from Shelly EM array. I get this values and I need only one for process into a Nodered and manage a PV inverter
the value I need is: payload.emeters[0].power
I need to substract with another value and give commands to the battery MPPT charger
Thank you in advance
luca
Hi Colin
Thank you for your reply! Yes is correct but i can’t take the single value to do a sum math. I would use the value for give commads to my mppt controller..
Thankyou and happy Easter to you and every one!!
luca
OK, your question was about how to extract the data from the array, but in fact it seems that it is about combining data from two separate messages coming from different sources. The first thing you need to do is to combine the two messages together so that you can access data from both of them. See this article in the cookbook for an example of how to join messages into one object.
Colin,
seems I found with this way. with join I get all data, not only the total load and total p.v. watts I start... what do you suggest to give a logic like read one calculated value and follow modbus commands for modify the outgoing load current?
thank's a lot!
regards
luca