foxthefox / ioBroker.ecoflow-mqtt

EcoFlow, power stream, power station, delta, delta2, river, river2, wave2, glacier, delta pro ultra, generator, smart home panel, homeassistant gateway, powerkit, powerhub
MIT License
46 stars 3 forks source link

Smart Plug - Wh resetting at wrong time for UK #151

Open walderston opened 1 month ago

walderston commented 1 month ago

In HA, within the energy device tree of a smart plug, it resets to 0 at 01:00.

image

Assume its that time as the the EU is UTC+2 while currently the UK is UTC+1

Is it possible to have a configuration within the ioBroker settings to change this?

foxthefox commented 1 month ago

From my perspective the data should already be aligned to the timezone when the device sends it. I dont like the approach to interfere too much with the incomming data. The source of this is an array of 24 values, which I sum up for the daily (24hperiod) datapoint. In general it would be possible to store the necessary amount of hourly values and realize a shifting. But before I start such things, I would spend the rare time more on new devices or communication observance.

Even it would be nice the the 24h period matches the 0-24h of the timezone, the shift itself has no influence on the representation in the Energy chart of HA. The hourly values are correctly derived/calculated.