AdamWelchUK / NodeRedEPEverDashboard

A node red based dashboard for most EPEver/EPSolar solar charge controllers.
68 stars 25 forks source link

Non properly filled array for historical data #15

Closed kedar-1 closed 2 years ago

kedar-1 commented 2 years ago

Hello,

first of all, many thanks to AdamWelchUK for this great dashboard. This is my first Node RED project I've deployed so I'm learning a lot.

My setup: Raspi Buster, NodeRED 14.17.3, all palletes up to date.

I'm using Dashboard v0.5. For historical data I'm trying to modify flow to send data using MQTT to my Home Assistant instead to save to Influxdb.

There are non properly filled payload messages from Switch Node starting from topic MonthConsumed to TotalGenerated. Only topic TodayConsumed has array of two items. array[2] 0: 4 1: 0

Topic MonthConsumed payload array: array[4] 0: undefined 1: undefined 2: 283 3: 0

Topic Yearconsumed: array[6] 0: undefined 1: undefined 2: undefined 3: undefined 4: 283 5: 0

As you can see, the array has not only 2 items as the function "32 bit register conversion /100" expect so correct output is only for topic TodayConsumed.

Is there a fix for this behaviour?

Thanks

Radek

kedar-1 commented 2 years ago

Upgraded to the Node RED 2.2.2 from 1.3.5 using: sudo npm install -g --unsafe-perm node-red and the Switch Node works as expected.