Hi,
i have 2 Power inputs from my roof, that I want to combine to 1 sensor in nodered.
Data are delivered via MQTT:
PV1 Power: evcc/site/pv/1/power
PV2 Power: evcc/site/pv/2/power
As you can see, the merged sensor only takes the values from PV2 Power.
What do I have to set so that the values from PV1 are also transferred to the “PV1+PV2 sensor”?
This is what I created now:
Cannot merge non-object types
I know, I am doing something wrong…
aceindy
(Aceindy)
4
Are you sure you get a msg.topic from mqtt?
You probably have to play a bit with the join settings:
I played around…this is the only setting, where I get no error…but still only the value of PV2
aceindy
(Aceindy)
6
Can you show the full message debug from PV1 and PV2 ?
(so msg.payload + msg.topic)
Mikefila
(Mike Fila)
7
Use an event state to do the addition of the 2 sensors.
In the output section for payload use.
$entities('sensor.PV1').state + $entities('sensor.PV2').state
1 Like