davidusb-geek / emhass-add-on

The Home Assistant Add-on for EMHASS: Energy Management Optimization for Home Assistant
MIT License
96 stars 29 forks source link

states of p_deferrables always half an hour to early #40

Closed prinzkafka closed 1 year ago

prinzkafka commented 1 year ago

Hi, I have a strange problem. As you can see in the following graphics, the states of my deferrables are set always half an hour too early to their value. Time Step is set to 60 min, it is published every 3 minutes.

Strangely enough the values in the EMHASS UI and also in the attributes of for example sensor.p_deferrable0 are correct:

Bildschirm­foto 2023-03-24 um 11 00 07

and still the deferrabeles always start exactly half an hour before the correct time

Bildschirm­foto 2023-03-24 um 11 01 08

`Deferrables schedule

the first entry in this list (11:00) changes the state of deferrable0 at 10:30 my automations only reacts to p_deferrables...

so either I have a complete knot in my head or something doesn't fit there

davidusb-geek commented 1 year ago

Change the method_ts_round to what it best fits your needs. The options are: "first", "last" and "nearest".

prinzkafka commented 1 year ago

all right, set it to "last" for now, seems to work reasonably so far - before that I had it set to "nearest" - thanks a lot for your outstanding work on this addon