home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
72.67k stars 30.43k forks source link

Riemann does not restore #98967

Closed Mariusthvdb closed 1 year ago

Mariusthvdb commented 1 year ago

The problem

even though https://github.com/home-assistant/core/pull/93674 we still see the Riemann entities start unavailable, and only after some time (measured 11 minutes here) get a value.

Encountered this via the custom Powercalc integration, where I filed the issue at first, but when create core helper entities for the same source entity, we can see that happen in core too.

note: when changing the state of the source sensor, the Riemann entity is immediately populated. So it seems to have to do with the longer period for accumulating a value change (low power users light zigbee lights in the off position)

not withstanding that, they are not restored which is a bug

What version of Home Assistant Core has the issue?

2023.8.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Riemann

Link to integration documentation on our website

https://www.home-assistant.io/integrations/integration/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

top and bottom entity:

startup

Scherm­afbeelding 2023-08-24 om 13 27 55

11minutes passed

Scherm­afbeelding 2023-08-24 om 13 37 39

related https://github.com/home-assistant/core/issues/92912 https://github.com/home-assistant/core/issues/94653

home-assistant[bot] commented 1 year ago

Hey there @dgomes, mind taking a look at this issue as it has been labeled with an integration (integration) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `integration` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign integration` Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


integration documentation integration source (message by IssueLinks)

dgomes commented 1 year ago

Could you please activate debug and provide logs ? (the PR I opened will not fix it, as pointed by Martin)

Mariusthvdb commented 1 year ago

sorry, missed your response. Have enabled that now; and see this upon start:

several sensors are restored, though many are not. finaly after some 10 minutes those get a value and are logged as such:

2023-08-28 13:16:49.543 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 377.36 and last_valid_state 377.3616194662222222769360553
2023-08-28 13:16:50.888 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 43.99 and last_valid_state 43.99399337703611110820626587
2023-08-28 13:17:00.786 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 1.31 and last_valid_state 1.310398436466000000001019822
2023-08-28 13:17:00.793 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 5.09 and last_valid_state 5.090398436786083333313553587
2023-08-28 13:17:00.800 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 5.09 and last_valid_state 5.090398437631416666669011602
2023-08-28 13:17:00.811 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 5.73 and last_valid_state 5.730664064398333333336295798
2023-08-28 13:17:00.817 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 8.15 and last_valid_state 8.150664064829305555540302682
2023-08-28 13:17:00.823 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 16.95 and last_valid_state 16.95146094426286111108036368
2023-08-28 13:17:00.830 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 16.49 and last_valid_state 16.49146094583188888885736144
2023-08-28 13:17:00.836 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 18.13 and last_valid_state 18.13146094944233333335365583
2023-08-28 13:17:00.842 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 7.06 and last_valid_state 7.060664068495416666664008274
2023-08-28 13:17:00.850 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 5.42 and last_valid_state 5.420664068957777777778314940
2023-08-28 13:17:00.856 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 7.84 and last_valid_state 7.840664069277083333319907271
2023-08-28 13:17:00.863 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 7.87 and last_valid_state 7.870398442287416666657569783
2023-08-28 13:17:00.870 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 4.72 and last_valid_state 4.720398442650416666677111919
2023-08-28 13:17:00.876 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 3.87 and last_valid_state 3.870398443608416666668503582
2023-08-28 13:17:00.882 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 7.81 and last_valid_state 7.810510287546666666663163091
2023-08-28 13:17:00.890 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 17.43 and last_valid_state 17.43146096193955555562070546
2023-08-28 13:17:00.897 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 6.07 and last_valid_state 6.070664075118888888862928651
2023-08-28 13:17:00.904 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 3.95 and last_valid_state 3.950398445274666666673516839
2023-08-28 13:17:00.911 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 14.12 and last_valid_state 14.12146096677161111110956584
2023-08-28 13:17:00.917 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 0.12 and last_valid_state 0.1206640777804166666808960429
2023-08-28 13:17:00.925 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 5.10 and last_valid_state 5.100398447090749999996280492
2023-08-28 13:17:00.931 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 8.05 and last_valid_state 8.050664078952916666656479549
2023-08-28 13:17:00.938 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 0.96 and last_valid_state 0.9607902971652777777680714482
2023-08-28 13:17:00.944 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 0.06 and last_valid_state 0.06106185469822222224441550982
2023-08-28 13:17:00.951 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 0.96 and last_valid_state 0.9606902063553666666608579462
2023-08-28 13:17:00.957 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 1.10 and last_valid_state 1.100690207160644444458183797
2023-08-28 13:17:00.965 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 0.99 and last_valid_state 0.9906902079685222222161024142
2023-08-28 13:17:00.972 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 0.95 and last_valid_state 0.9506902087930111110924574152
2023-08-28 13:17:00.978 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 1.14 and last_valid_state 1.140690209606955555567411567
2023-08-28 13:17:00.985 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 1.34 and last_valid_state 1.341061862630888888891907604
2023-08-28 13:17:01.017 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 0.01 and last_valid_state 0.01026561085827777777579328244
2023-08-28 13:17:01.785 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 1.06 and last_valid_state 1.060000000000000000000000000
2023-08-28 13:17:01.793 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 1.05 and last_valid_state 1.050000000000000000000000000
2023-08-28 13:17:01.800 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 1.05 and last_valid_state 1.050000000000000000000000000
2023-08-28 13:17:01.806 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 0.42 and last_valid_state 0.4200000000000000000000000000
2023-08-28 13:17:01.814 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 0.41 and last_valid_state 0.4100000000000000000000000000
2023-08-28 13:17:01.821 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 1.04 and last_valid_state 1.040000000000000000000000000
2023-08-28 13:17:01.832 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 0.01 and last_valid_state 0.01000000000000000000000000000
2023-08-28 13:17:01.838 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 0.002820049302758333313863777412 and last_valid_state 0.002820049302758333313863777412
2023-08-28 13:17:01.845 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 0.002833858721166666658519694978 and last_valid_state 0.002833858721166666658519694978
2023-08-28 13:17:01.851 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 0.002841355639949999980609085528 and last_valid_state 0.002841355639949999980609085528
2023-08-28 13:17:01.858 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 0.004092773051925000031084356848 and last_valid_state 0.004092773051925000031084356848
2023-08-28 13:17:01.866 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 0.004031094189674999986820684226 and last_valid_state 0.004031094189674999986820684226
2023-08-28 13:17:01.872 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 0.004067015323277777749202124371 and last_valid_state 0.004067015323277777749202124371
2023-08-28 13:17:01.877 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 0.003911397567938888828880558446 and last_valid_state 0.003911397567938888828880558446
2023-08-28 13:17:01.887 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 0.12 and last_valid_state 0.1200000000000000000000000000
2023-08-28 13:17:01.893 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 0.13 and last_valid_state 0.1300000000000000000000000000
2023-08-28 13:17:01.900 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 0.12 and last_valid_state 0.1200000000000000000000000000
2023-08-28 13:17:01.912 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 4.39 and last_valid_state 4.390354233159666666678175615
2023-08-28 13:17:01.919 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 9.43 and last_valid_state 9.430229641571199999998498243
2023-08-28 13:17:01.926 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 10.94 and last_valid_state 10.94000000000000000000000000
2023-08-28 13:17:01.934 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 16.86 and last_valid_state 16.86469491056924444427017483
2023-08-28 13:17:01.941 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 16.81 and last_valid_state 16.81469491416746666661765631
2023-08-28 13:17:01.950 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 7.81 and last_valid_state 7.810644798471388888884803235
2023-08-28 13:17:01.958 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 18.57 and last_valid_state 18.57051041139700000000642730
2023-08-28 13:17:01.964 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 6.54 and last_valid_state 6.540510410268999999996392741
2023-08-28 13:17:01.972 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 11.03 and last_valid_state 11.03084391247983611110912407
2023-08-28 13:17:01.978 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 11.11 and last_valid_state 11.11051042139088888889849234
2023-08-28 13:17:01.985 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 7.78 and last_valid_state 7.780510420637999999996736732
2023-08-28 13:17:01.993 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 8.80 and last_valid_state 8.800612502968000000009851648
2023-08-28 13:17:02.001 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 7.76 and last_valid_state 7.761072397040677777778997876
2023-08-28 13:17:02.007 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 8.07 and last_valid_state 8.070612504166533333322301283
2023-08-28 13:17:02.013 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 7.67 and last_valid_state 7.670612505082266666651473012
2023-08-28 13:17:02.020 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 7.56 and last_valid_state 7.560612505015333333312810282
2023-08-28 13:17:02.026 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 8.41 and last_valid_state 8.410510420323000000012017255
2023-08-28 13:17:02.034 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 8.56 and last_valid_state 8.560701829748430555545566121
2023-08-28 13:17:02.040 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 0.19 and last_valid_state 0.1903053556209222222154014363
2023-08-28 13:17:02.046 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 0.41 and last_valid_state 0.4103850136323499999965254876
2023-08-28 13:17:02.052 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 0.58 and last_valid_state 0.5804987100738249999916386363
2023-08-28 13:17:02.058 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 0.96 and last_valid_state 0.9604646744698749999981954614
2023-08-28 13:17:02.065 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 1.22 and last_valid_state 1.220000000000000000000000000
2023-08-28 13:17:02.073 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 0.90 and last_valid_state 0.9004646745088611111214049744
2023-08-28 13:17:02.079 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 1.06 and last_valid_state 1.060438122362791666661034166
2023-08-28 13:17:02.086 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 0.64 and last_valid_state 0.6405177809812500000001970572
2023-08-28 13:17:02.092 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 0.55 and last_valid_state 0.5504381223857083333219482787
2023-08-28 13:17:02.098 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 0.50 and last_valid_state 0.5004381228664083333275887829
2023-08-28 13:17:02.106 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 0.01 and last_valid_state 0.01000000000000000000000000000
2023-08-28 13:17:02.112 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 0.84 and last_valid_state 0.8405310580557777777812589192
2023-08-28 13:17:02.119 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 0.88 and last_valid_state 0.8806239932365583333288820237
2023-08-28 13:17:02.125 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 1.56 and last_valid_state 1.560623993258100000000531005
2023-08-28 13:17:02.132 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 0.87 and last_valid_state 0.8706239933770361111082062659
2023-08-28 13:17:02.138 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 0.93 and last_valid_state 0.9306239934022333333410238588
2023-08-28 13:17:02.146 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 1.28 and last_valid_state 1.280623994910019444459850195
2023-08-28 13:17:02.152 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 0.85 and last_valid_state 0.8506239949290805555525215217
2023-08-28 13:17:02.158 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 0.26 and last_valid_state 0.2600000000000000000000000000
2023-08-28 13:17:02.165 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 0.61 and last_valid_state 0.6105177830542083333341452089
2023-08-28 13:17:02.172 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 0.45 and last_valid_state 0.4504636576098916666593297010
2023-08-28 13:17:02.179 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 0.16 and last_valid_state 0.1604646776375694444362175597
2023-08-28 13:17:02.187 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 0.41 and last_valid_state 0.4102389770761499999991883670
2023-08-28 13:17:02.194 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 0.73 and last_valid_state 0.7300000000000000000000000000
2023-08-28 13:17:02.200 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 0.08 and last_valid_state 0.08106974046592222222415437182
2023-08-28 13:17:02.211 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 0.003245707963125000016735288708 and last_valid_state 0.003245707963125000016735288708
2023-08-28 13:17:02.218 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 0.003251550036652777787818082959 and last_valid_state 0.003251550036652777787818082959
2023-08-28 13:17:02.226 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 0.003254980250791666674986782575 and last_valid_state 0.003254980250791666674986782575
2023-08-28 13:17:02.232 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 0.003258941311694444434786542705 and last_valid_state 0.003258941311694444434786542705
2023-08-28 13:17:02.242 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 17.83 and last_valid_state 17.83045938776579999999967186
2023-08-28 13:17:02.248 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 0.62 and last_valid_state 0.6203545593046666666675233634
2023-08-28 13:17:02.254 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 1.15 and last_valid_state 1.150000000000000000000000000
2023-08-28 13:17:02.261 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 0.92 and last_valid_state 0.9205177889389833333420180376
2023-08-28 13:17:02.268 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 0.58 and last_valid_state 0.5803878259043749999997056459
2023-08-28 13:17:02.275 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 0.46 and last_valid_state 0.4603584702868749999936426321
2023-08-28 13:17:02.281 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 1.11 and last_valid_state 1.110517791119191666663823524
2023-08-28 13:17:02.288 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 0.99 and last_valid_state 0.9903983011468333333292927516
2023-08-28 13:17:02.294 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 0.54 and last_valid_state 0.5403978369768333333344282704
2023-08-28 13:17:06.010 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 78.53 and last_valid_state 78.52651535028841666653500989
2023-08-28 13:17:06.015 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 36.40 and last_valid_state 36.39545161946622222227693606
2023-08-28 13:17:06.023 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 18.54 and last_valid_state 18.54279230131775000009782446
2023-08-28 13:17:06.030 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 18.55 and last_valid_state 18.55279230233216666673945471
2023-08-28 13:17:06.036 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 18.54 and last_valid_state 18.54279230197108333333907057
2023-08-28 13:17:06.043 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 18.55 and last_valid_state 18.55279230486150000002298909
2023-08-28 13:17:06.049 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 21.35 and last_valid_state 21.35319120949066666668011057
2023-08-28 13:17:06.056 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 18.63 and last_valid_state 18.63305824664777777775310282
2023-08-28 13:17:06.063 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 3.83 and last_valid_state 3.832657374798333333324586016
2023-08-28 13:17:06.072 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 32.82 and last_valid_state 32.82285845751166666664238296
2023-08-28 13:17:06.079 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 5.56 and last_valid_state 5.563055989842416666675717351
2023-08-28 13:17:06.086 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 3.32 and last_valid_state 3.322192342223500000026585136
2023-08-28 13:17:06.092 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 4.14 and last_valid_state 4.140863652158416666665630145
2023-08-28 13:17:06.099 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 2.56 and last_valid_state 2.560638558628333333347073778
2023-08-28 13:17:06.105 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 3.88 and last_valid_state 3.881255830241005555535909683
2023-08-28 13:17:17.289 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.290 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.290 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.291 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.291 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.291 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.291 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.292 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.292 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.293 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.293 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.294 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.294 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.294 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.294 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.295 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.295 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.295 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.296 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.296 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.297 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.297 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.297 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.297 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.298 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.312 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.312 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.313 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.313 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.313 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.594 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.607 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.607 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.607 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.609 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.610 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.610 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.611 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.611 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.611 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.611 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.612 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.612 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.612 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.612 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.612 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.613 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.613 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.613 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.613 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.614 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.614 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.615 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.615 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.615 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.616 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.618 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.618 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.619 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.619 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.619 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.619 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.620 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.620 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.621 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.621 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.621 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.622 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.622 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.622 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.623 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.623 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.624 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.624 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.625 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.625 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.625 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.625 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.626 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.626 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.627 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method trapezoidal to unavailable -> unavailable
2023-08-28 13:17:17.627 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.628 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.628 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.628 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.629 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.629 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.629 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.629 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.630 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.630 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.630 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.631 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.631 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.631 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.631 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.632 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.632 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.633 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.633 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.633 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.633 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.634 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.635 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.635 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.681 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.681 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.682 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.682 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.682 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.683 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.683 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.684 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.685 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.685 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.685 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.685 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.686 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> unavailable
2023-08-28 13:17:17.878 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.30
2023-08-28 13:17:18.369 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.48
2023-08-28 13:17:18.551 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.50
2023-08-28 13:17:18.551 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.30
2023-08-28 13:17:18.552 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.50
2023-08-28 13:17:18.552 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.50
2023-08-28 13:17:18.552 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.50
2023-08-28 13:17:18.552 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.30
2023-08-28 13:17:18.552 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.30
2023-08-28 13:17:18.552 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 1.10
2023-08-28 13:17:18.552 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.30
2023-08-28 13:17:18.552 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.30
2023-08-28 13:17:18.553 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 1.10
2023-08-28 13:17:18.553 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.30
2023-08-28 13:17:18.553 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.50
2023-08-28 13:17:18.554 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.30
2023-08-28 13:17:18.554 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.50
2023-08-28 13:17:18.554 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 1.10
2023-08-28 13:17:18.554 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 1.10
2023-08-28 13:17:18.555 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.50
2023-08-28 13:17:18.555 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 1.10
2023-08-28 13:17:18.555 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.30
2023-08-28 13:17:18.555 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.50
2023-08-28 13:17:18.555 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.20
2023-08-28 13:17:25.967 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 1.513223099999999909925918473, integral = 4.203397499999999749794217981E-7 state = 1.31
2023-08-28 13:17:25.979 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 1.512909600000000054365045798, integral = 4.202526666666666817680682772E-7 state = 5.09
2023-08-28 13:17:25.980 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 1.513576199999999971623765305, integral = 4.204378333333333254510459181E-7 state = 5.09
2023-08-28 13:17:25.980 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 2.523603000000000040614622776, integral = 7.010008333333333446151729933E-7 state = 5.73
2023-08-28 13:17:25.981 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 2.521367000000000135884192787, integral = 7.003797222222222599678313297E-7 state = 8.15
2023-08-28 13:17:25.982 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 5.549870699999999956730789563, integral = 0.000001541630749999999987980774879 state = 16.95
2023-08-28 13:17:25.982 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 5.547220799999999840679265617, integral = 0.000001540894666666666622410907116 state = 16.49
2023-08-28 13:17:25.983 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 5.551142299999999885073975747, integral = 0.000001541983972222222190298326596 state = 18.13
2023-08-28 13:17:25.983 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 2.524370499999999850615495234, integral = 7.012140277777777362820820094E-7 state = 7.06
2023-08-28 13:17:25.989 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 2.522839999999999971436182022, integral = 7.007888888888888809544950061E-7 state = 5.42
2023-08-28 13:17:25.990 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 2.521593999999999891059587753, integral = 7.004427777777777475165521536E-7 state = 7.84
2023-08-28 13:17:25.991 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 1.514018099999999922289362075, integral = 4.205605833333333117470450208E-7 state = 7.87
2023-08-28 13:17:25.991 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 1.513147800000000042786041377, integral = 4.203188333333333452183448269E-7 state = 4.72
2023-08-28 13:17:25.992 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 1.514974500000000112720499601, integral = 4.208262500000000313112498892E-7 state = 3.87
2023-08-28 13:17:25.992 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.40
2023-08-28 13:17:25.993 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 5.549553899999999639902625859, integral = 0.000001541542749999999899972951628 state = 17.43
2023-08-28 13:17:25.993 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 2.524963500000000138356881507, integral = 7.013787500000000384324670853E-7 state = 6.07
2023-08-28 13:17:25.994 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 1.514567099999999921777771306, integral = 4.207130833333333116049364739E-7 state = 3.95
2023-08-28 13:17:25.994 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 5.550400899999999815292994754, integral = 0.000001541778027777777726470276321 state = 14.12
2023-08-28 13:17:25.995 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 2.525695999999999941110218060, integral = 7.015822222222222058639494611E-7 state = 0.12
2023-08-28 13:17:25.996 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 1.515032699999999987738874552, integral = 4.208424166666666632607984867E-7 state = 5.10
2023-08-28 13:17:25.996 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 2.523285500000000070031092037, integral = 7.009126388888889083419700103E-7 state = 8.05
2023-08-28 13:17:25.997 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.50
2023-08-28 13:17:25.997 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.80
2023-08-28 13:17:25.997 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.52
2023-08-28 13:17:25.997 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.52
2023-08-28 13:17:25.998 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.52
2023-08-28 13:17:25.998 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.52
2023-08-28 13:17:25.998 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.52
2023-08-28 13:17:25.998 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.80
2023-08-28 13:17:25.998 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 1.009343400000000023908341973, integral = 2.803731666666666733078727703E-7 state = 0.01
2023-08-28 13:17:25.999 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.00
2023-08-28 13:17:26.020 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.00
2023-08-28 13:17:26.021 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.00
2023-08-28 13:17:26.021 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.00
2023-08-28 13:17:26.021 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.00
2023-08-28 13:17:26.021 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.00
2023-08-28 13:17:26.021 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.00
2023-08-28 13:17:26.021 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.00
2023-08-28 13:17:26.021 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.00
2023-08-28 13:17:26.022 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.00
2023-08-28 13:17:26.022 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.00
2023-08-28 13:17:26.022 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.00
2023-08-28 13:17:26.022 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.00
2023-08-28 13:17:26.022 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.00
2023-08-28 13:17:26.022 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.00
2023-08-28 13:17:26.023 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.00
2023-08-28 13:17:26.023 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.00
2023-08-28 13:17:26.024 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.20
2023-08-28 13:17:26.024 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.18
2023-08-28 13:17:26.024 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.00
2023-08-28 13:17:26.024 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 3.68
2023-08-28 13:17:26.024 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 3.68
2023-08-28 13:17:26.024 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.44
2023-08-28 13:17:26.024 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.40
2023-08-28 13:17:26.025 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.40
2023-08-28 13:17:26.025 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.43
2023-08-28 13:17:26.025 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.40
2023-08-28 13:17:26.025 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.40
2023-08-28 13:17:26.025 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.48
2023-08-28 13:17:26.036 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 2.514629760000000118225216283, integral = 6.985082666666666995070045231E-7 state = 7.76
2023-08-28 13:17:26.037 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.48
2023-08-28 13:17:26.037 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.48
2023-08-28 13:17:26.037 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.48
2023-08-28 13:17:26.037 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.40
2023-08-28 13:17:26.038 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.55
2023-08-28 13:17:26.038 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.23
2023-08-28 13:17:26.038 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.29
2023-08-28 13:17:26.038 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.35
2023-08-28 13:17:26.038 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.35
2023-08-28 13:17:26.038 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.00
2023-08-28 13:17:26.038 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.35
2023-08-28 13:17:26.039 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.33
2023-08-28 13:17:26.039 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.39
2023-08-28 13:17:26.039 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.33
2023-08-28 13:17:26.039 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.33
2023-08-28 13:17:26.039 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.00
2023-08-28 13:17:26.039 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.40
2023-08-28 13:17:26.040 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.47
2023-08-28 13:17:26.040 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.47
2023-08-28 13:17:26.040 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method trapezoidal to unavailable -> 0.47
2023-08-28 13:17:26.040 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.47
2023-08-28 13:17:26.040 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.47
2023-08-28 13:17:26.040 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.47
2023-08-28 13:17:26.040 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.47
2023-08-28 13:17:26.041 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.00
2023-08-28 13:17:26.041 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.39
2023-08-28 13:17:26.041 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.33
2023-08-28 13:17:26.041 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.35
2023-08-28 13:17:26.057 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.18
2023-08-28 13:17:26.057 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.00
2023-08-28 13:17:26.057 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.47
2023-08-28 13:17:26.057 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.00
2023-08-28 13:17:26.057 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.00
2023-08-28 13:17:26.057 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.00
2023-08-28 13:17:26.058 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.00
2023-08-28 13:17:26.058 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.36
2023-08-28 13:17:26.058 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 1.711140599999999878377821005, integral = 4.753168333333332995493947236E-7 state = 0.62
2023-08-28 13:17:26.059 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.00
2023-08-28 13:17:26.059 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.39
2023-08-28 13:17:26.059 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.39
2023-08-28 13:17:26.059 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.27
2023-08-28 13:17:26.059 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.39
2023-08-28 13:17:26.059 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.30
2023-08-28 13:17:26.059 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.30
2023-08-28 13:17:26.060 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 4.90
2023-08-28 13:17:26.060 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 4.10
2023-08-28 13:17:26.061 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 4.10
2023-08-28 13:17:26.061 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 2.10
2023-08-28 13:17:26.061 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 2.10
2023-08-28 13:17:26.061 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 2.10
2023-08-28 13:17:26.078 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 2.10
2023-08-28 13:17:26.078 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 2.40
2023-08-28 13:17:26.078 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 2.30
2023-08-28 13:17:26.078 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 2.00
2023-08-28 13:17:26.078 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 2.00
2023-08-28 13:17:26.079 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 2.30
2023-08-28 13:17:26.079 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 1.65
2023-08-28 13:17:26.079 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.65
2023-08-28 13:17:26.079 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.50
2023-08-28 13:17:26.079 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 2.06
2023-08-28 13:17:32.543 DEBUG (MainThread) [homeassistant.components.integration.sensor] Restored state 76.44 and last_valid_state 76.43991873693895000001056194
2023-08-28 13:17:44.556 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 6.298786799999999885812940192, integral = 0.000001749662999999999968281372276 state = 0.6200004753168333333332995494
2023-08-28 13:17:44.565 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unknown -> 27.69
2023-08-28 13:18:20.539 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 17.09312939999999940710040391, integral = 0.000004748091499999999835305667753 state = 0.54
2023-08-28 13:18:20.550 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 996.4512323999999616574996253, integral = 0.0002767920089999999893493054515 state = 76.44
2023-08-28 13:18:46.541 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 32.36194922999999732837750344, integral = 0.000008989430341666665924549306511 state = 0.58
2023-08-28 13:18:46.557 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 712.2620498400000308336643684, integral = 0.000197850569400000008564906769 state = 76.44027679200899999998934931
2023-08-28 13:19:26.265 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 0E-48, integral = 0E-48 state = 0.6200022249798333333332678308
2023-08-28 13:19:26.272 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 1072.398015000000071950125857, integral = 0.0002978883375000000199861460714 state = 76.44047464257839999999791422
2023-08-28 13:20:00.684 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 314.1999599999999759347701911, integral = 0.00008727776666666665998188060864 state = 32.82
2023-08-28 13:20:17.669 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 57.45749195999999642481270712, integral = 0.00001596041443333333234022575198 state = 0.45
2023-08-28 13:20:17.677 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 1403.338454700000006170057532, integral = 0.0003898162374166666683805715367 state = 76.44077253091590000001790037
2023-08-28 13:20:39.468 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 0E-48, integral = 0E-48 state = 0.5800089894303416666659245493
2023-08-28 13:20:39.477 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 587.9433839100000128041756398, integral = 0.0001633176066416666702233821222 state = 76.44116234715331666668628094
2023-08-28 13:20:59.433 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 0E-47, integral = 0E-47 state = 0.5400047480914999999998353057
2023-08-28 13:20:59.442 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 546.2434123199999675080107409, integral = 0.0001517342811999999909744474280 state = 76.44132566475995833335650432
2023-08-28 13:21:24.312 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 0E-46, integral = 0E-46 state = 0.4500159604144333333323402258
2023-08-28 13:21:24.321 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 688.1658636000000466026449431, integral = 0.0001911571843333333462785124842 state = 76.44147739904115833334747877
2023-08-28 13:21:31.390 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 2.335684559999999967416783875, integral = 6.488012666666666576157732986E-7 state = 0.4500159604144333333323402258
2023-08-28 13:21:31.401 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 198.1432532700000047842792128, integral = 0.000055039792575000001328966448 state = 76.44166855622549166669375728
2023-08-28 13:23:42.188 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 71.26110576000000349949914380, integral = 0.0000197947516000000009720830955 state = 0.5800089894303416666659245493
2023-08-28 13:23:42.198 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 3617.835809220000375034942408, integral = 0.001004954391450000104176372891 state = 76.44172359601806666669508625
2023-08-28 13:23:51.498 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 79.57047240000000556392478757, integral = 0.00002210290900000000154553466321 state = 0.6200022249798333333332678308
2023-08-28 13:23:51.504 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 253.8011809800000082404380919, integral = 0.00007050032805000000228901058108 state = 76.44272855040951666679926262
2023-08-28 13:23:58.893 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 0E-47, integral = 0E-47 state = 0.4500166092156999999989978416
2023-08-28 13:23:58.897 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 199.4104084200000111515294066, integral = 0.00005539178011666666976431372406 state = 76.44279905073756666680155163
2023-08-28 13:24:18.700 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 59.77867529999999760548234917, integral = 0.00001660518758333333266818954144 state = 0.5400047480914999999998353057
2023-08-28 13:24:18.736 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 541.3243290000000051520601119, integral = 0.0001503678691666666680977944755 state = 76.44285444251768333347131594
2023-08-28 13:24:39.979 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 0E-48, integral = 0E-48 state = 0.6200243278888333333348133655
2023-08-28 13:24:39.989 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 574.0846109999999846706941753, integral = 0.0001594679474999999957418594931 state = 76.44300481038685000013941373
2023-08-28 13:25:00.669 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 599.9717879999999468054738827, integral = 0.0001666588299999999852237427452 state = 32.82008727776666666665998188
2023-08-28 13:25:22.079 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 0E-48, integral = 0E-48 state = 0.5400213532790833333325034952
2023-08-28 13:25:22.089 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 1149.314821199999953904580252, integral = 0.0003192541169999999871957167367 state = 76.44316427833435000013515559
2023-08-28 13:25:27.050 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 52.76262599999999736155587016, integral = 0.00001465628499999999926709885282 state = 32.82025393659666666664520562
2023-08-28 13:25:58.554 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 39.48801417000000213874955080, integral = 0.00001096889282500000059409709744 state = 0.4500166092156999999989978416
2023-08-28 13:25:58.557 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 1006.552873200000016140620573, integral = 0.0002795980203333333378168390481 state = 76.44348353245135000012235131
2023-08-28 13:26:40.806 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 0E-49, integral = 0E-49 state = 0.4500275781085249999995919387
2023-08-28 13:26:40.817 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 1152.391749299999948163986119, integral = 0.0003201088192499999856011072553 state = 76.44376313047168333346016815
2023-08-28 13:27:00.788 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 173.1749568000000067513610702, integral = 0.00004810415466666666854204474172 state = 1.310000420339749999999974979
2023-08-28 13:27:00.798 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 173.1778464000000099076714832, integral = 0.00004810495733333333608546430089 state = 5.090000420252666666666681768
2023-08-28 13:27:00.802 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 173.1789872999999943203874864, integral = 0.00004810527424999999842232985733 state = 5.090000420437833333333325451
2023-08-28 13:27:00.812 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 288.6366845000000012078089640, integral = 0.00008017685680555555589105804556 state = 5.730000701000833333333344615
2023-08-28 13:27:00.819 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 288.6398765000000139480107464, integral = 0.00008017774347222222609666965178 state = 8.150000700379722222222259968
2023-08-28 13:27:00.825 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 635.0144669000000249070581049, integral = 0.0001763929074722222291408494736 state = 16.95000154163074999999998798
2023-08-28 13:27:00.830 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 635.0201967999999396852217615, integral = 0.0001763944991111110943570060449 state = 16.49000154089466666666662241
2023-08-28 13:27:00.838 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 635.0274688999999625593773089, integral = 0.0001763965191388888784887159191 state = 18.13000154198397222222219030
2023-08-28 13:27:00.843 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 288.6516399999999862302502152, integral = 0.00008018101111111110728618061533 state = 7.060000701214027777777736282
2023-08-28 13:27:00.851 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 288.6556724999999801184458192, integral = 0.00008018213124999999447734606089 state = 5.420000700788888888888880954
2023-08-28 13:27:00.858 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 288.6588434999999890351318754, integral = 0.00008018301208333333028753663206 state = 7.840000700442777777777747517
2023-08-28 13:27:00.865 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 173.1975300000000061118043959, integral = 0.00004811042500000000169772344331 state = 7.870000420560583333333311747
2023-08-28 13:27:00.873 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 173.1994734000000107698724605, integral = 0.00004811096483333333632496457236 state = 4.720000420318833333333345218
2023-08-28 13:27:00.877 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 173.2009215000000040163286030, integral = 0.0000481113670833333344489801675 state = 3.870000420826250000000031311
2023-08-28 13:27:00.884 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 230.9374175999999806663254276, integral = 0.00006414928266666666129620150767 state = 7.81
2023-08-28 13:27:00.892 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 635.0867951999999945655872580, integral = 0.0001764129986666666651571075717 state = 17.43000154154274999999989997
2023-08-28 13:27:00.898 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 288.6785585000000082800397649, integral = 0.00008018848847222222452223326803 state = 6.070000701378750000000038432
2023-08-28 13:27:00.905 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 173.2090184999999905812728684, integral = 0.00004811361624999999738368690789 state = 3.950000420713083333333311605
2023-08-28 13:27:00.912 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 635.1078415000000063628249336, integral = 0.0001764188448611111128785624816 state = 14.12000154177802777777772647
2023-08-28 13:27:00.919 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 288.6884784999999737920006737, integral = 0.00008019124402777777049777796492 state = 0.1200007015822222222222058639
2023-08-28 13:27:00.925 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 173.2149681000000100539182313, integral = 0.00004811526891666666945942173092 state = 5.100000420842416666666663261
2023-08-28 13:27:00.933 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 288.6956314999999904102878645, integral = 0.00008019323097222221955841329569 state = 8.050000700912638888888908342
2023-08-28 13:27:00.939 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 288.6986160000000154468580149, integral = 0.00008019406000000000429079389303 state = 0.96
2023-08-28 13:27:00.946 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 461.9227783999999701336491853, integral = 0.0001283118828888888805926803292 state = 0.06
2023-08-28 13:27:00.952 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 300.2529951200000277822255157, integral = 0.00008340360975555556327284042103 state = 0.96
2023-08-28 13:27:00.958 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 300.2557245999999940977431834, integral = 0.00008340436794444444280492866206 state = 1.10
2023-08-28 13:27:00.966 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 300.2600484000000142259523273, integral = 0.00008340556900000000395165342425 state = 0.99
2023-08-28 13:27:00.974 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 300.2636832000000003972672857, integral = 0.00008340657866666666677701869047 state = 0.95
2023-08-28 13:27:00.979 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 300.2665286400000286448630504, integral = 0.00008340736906666667462357306956 state = 1.14
2023-08-28 13:27:00.987 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 461.9549672000000100524630398, integral = 0.0001283208242222222250145730666 state = 1.34
2023-08-28 13:27:01.017 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 115.4946507999999994353856891, integral = 0.00003208184744444444428760713586 state = 0.01000028037316666666667330787
2023-08-28 13:27:01.786 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 0E-45, integral = 0E-45 state = 1.06
2023-08-28 13:27:01.796 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 0E-45, integral = 0E-45 state = 1.05
2023-08-28 13:27:01.804 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 0E-45, integral = 0E-45 state = 1.05
2023-08-28 13:27:01.811 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 0E-45, integral = 0E-45 state = 0.42
2023-08-28 13:27:01.818 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 0E-45, integral = 0E-45 state = 0.41
2023-08-28 13:27:01.825 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 0E-45, integral = 0E-45 state = 1.04
2023-08-28 13:27:01.834 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 0E-42, integral = 0E-42 state = 0.01
2023-08-28 13:27:01.843 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 0E-45, integral = 0E-45 state = 0.002820049302758333313863777412
2023-08-28 13:27:01.853 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 0E-43, integral = 0E-43 state = 0.002833858721166666658519694978
2023-08-28 13:27:01.861 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 0E-43, integral = 0E-43 state = 0.002841355639949999980609085528
2023-08-28 13:27:01.870 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 0E-45, integral = 0E-45 state = 0.004092773051925000031084356848
2023-08-28 13:27:01.878 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 0E-43, integral = 0E-43 state = 0.004031094189674999986820684226
2023-08-28 13:27:01.887 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 0E-43, integral = 0E-43 state = 0.004067015323277777749202124371
2023-08-28 13:27:01.894 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 0E-41, integral = 0E-41 state = 0.003911397567938888828880558446
2023-08-28 13:27:01.902 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 0E-44, integral = 0E-44 state = 0.12
2023-08-28 13:27:01.909 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 0E-43, integral = 0E-43 state = 0.13
2023-08-28 13:27:01.914 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 0E-44, integral = 0E-44 state = 0.12
2023-08-28 13:27:01.921 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 115.6744020000000091386027634, integral = 0.00003213177833333333587183410094 state = 4.39
2023-08-28 13:27:01.927 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 104.1081701400000065405038185, integral = 0.00002891893615000000181680661625 state = 9.43
2023-08-28 13:27:01.932 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 0E-43, integral = 0E-43 state = 10.94
2023-08-28 13:27:01.937 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 2128.469731519999950251076370, integral = 0.0005912415920888888750697434361 state = 16.86
2023-08-28 13:27:01.943 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 2128.490096639999992476077750, integral = 0.0005912472490666666645766882639 state = 16.81
2023-08-28 13:27:01.951 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 254.4967075200000044787884690, integral = 0.00007069352986666666791077457472 state = 7.81
2023-08-28 13:27:01.959 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 231.3638432000000193511368707, integral = 0.00006426773422222222759753801964 state = 18.57
2023-08-28 13:27:01.964 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 231.3660327999999935855157673, integral = 0.00006426834244444444266264326869 state = 6.54
2023-08-28 13:27:01.973 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 248.7220899499999848103470867, integral = 0.00006908946943055555133620752408 state = 11.03
2023-08-28 13:27:01.979 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 231.3715999999999894498614594, integral = 0.00006426988888888888595829484983 state = 11.11
2023-08-28 13:27:01.987 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 231.3747812000000067200744525, integral = 0.00006427077255555555742224290347 state = 7.78
2023-08-28 13:27:01.994 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 277.6530254400000012537930161, integral = 0.00007712584040000000034827583781 state = 8.80
2023-08-28 13:27:02.001 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 277.6562735999999858904629946, integral = 0.00007712674266666666274735083183 state = 7.760000698508266666666699507
2023-08-28 13:27:02.008 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 277.6597785599999770056456327, integral = 0.00007712771626666666027934600908 state = 8.07
2023-08-28 13:27:02.016 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 277.6632115199999861943069845, integral = 0.00007712866986666666283175194014 state = 7.67
2023-08-28 13:27:02.021 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 277.6656912000000011175870895, integral = 0.00007712935866666666697710752486 state = 7.56
2023-08-28 13:27:02.026 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 231.3900979999999890424078330, integral = 0.00006427502722222221917844662028 state = 8.41
2023-08-28 13:27:02.035 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 318.1657627499999989595380612, integral = 0.00008837937854166666637764946144 state = 8.56
2023-08-28 13:27:02.041 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 133.0525553300000012768578017, integral = 0.00003695904314722222257690494492 state = 0.19
2023-08-28 13:27:02.047 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 167.7636894900000118013849715, integral = 0.00004660102485833333661149582542 state = 0.41
2023-08-28 13:27:02.053 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 202.4754669000000149026163854, integral = 0.00005624318525000000413961566261 state = 0.58
2023-08-28 13:27:02.060 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 202.4777576500000009218638297, integral = 0.00005624382156944444470051773047 state = 0.96
2023-08-28 13:27:02.066 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 0E-45, integral = 0E-45 state = 1.22
2023-08-28 13:27:02.075 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 202.4827930999999807681888342, integral = 0.00005624522030555555021338578728 state = 0.90
2023-08-28 13:27:02.080 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 190.9142393400000082692713477, integral = 0.00005303173315000000229701981881 state = 1.06
2023-08-28 13:27:02.087 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 225.6283009499999820945959073, integral = 0.00006267452804166666169294330758 state = 0.64
2023-08-28 13:27:02.092 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 190.9181092499999920164555078, integral = 0.00005303280812499999778234875217 state = 0.55
2023-08-28 13:27:02.100 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 190.9204307999999832645698916, integral = 0.00005303345299999999535126941433 state = 0.50
2023-08-28 13:27:02.106 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 0E-45, integral = 0E-45 state = 0.01
2023-08-28 13:27:02.113 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 231.4239223999999921943526715, integral = 0.00006428442288888888672065351986 state = 0.84
2023-08-28 13:27:02.121 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 271.9261713400000064666528488, integral = 0.00007553504759444444624073690244 state = 0.88
2023-08-28 13:27:02.126 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 271.9286515299999962280708132, integral = 0.00007553573653611111006335300367 state = 1.56
2023-08-28 13:27:02.133 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 271.9318169800000191571598407, integral = 0.07553661582777778309921106686 state = 43.99
2023-08-28 13:27:02.133 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 271.9318169800000191571598407, integral = 0.00007553661582777778309921106686 state = 0.87
2023-08-28 13:27:02.139 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 271.9345744700000034299591789, integral = 0.00007553738179722222317498866081 state = 0.93
2023-08-28 13:27:02.147 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 271.9382258999999748994014226, integral = 0.00007553839608333332636094483961 state = 1.28
2023-08-28 13:27:02.156 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 271.9425795099999902504350757, integral = 0.00007553960541944444173623196547 state = 0.85
2023-08-28 13:27:02.160 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 0E-43, integral = 0E-43 state = 0.26
2023-08-28 13:27:02.166 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 225.6582521700000029341026675, integral = 0.00006268284782500000081502851875 state = 0.61
2023-08-28 13:27:02.173 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 7.051410629999999812866917637, integral = 0.000001958725174999999948018588232 state = 0.4500275781085249999995919387
2023-08-28 13:27:02.183 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 202.5196785500000032698153518, integral = 0.00005625546626388888979717093106 state = 0.16
2023-08-28 13:27:02.187 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 104.1536123999999949774064589, integral = 0.00002893155899999999860483512747 state = 0.41
2023-08-28 13:27:02.196 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 0E-42, integral = 0E-42 state = 0.73
2023-08-28 13:27:02.202 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 271.9633224899999834178743185, integral = 0.00007554536735833332872718731069 state = 0.08
2023-08-28 13:27:02.212 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 0E-43, integral = 0E-43 state = 0.003245707963125000016735288708
2023-08-28 13:27:02.218 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 0E-45, integral = 0E-45 state = 0.003251550036652777787818082959
2023-08-28 13:27:02.226 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 0E-45, integral = 0E-45 state = 0.003254980250791666674986782575
2023-08-28 13:27:02.233 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 0E-44, integral = 0E-44 state = 0.003258941311694444434786542705
2023-08-28 13:27:02.243 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 208.3268210399999952642247081, integral = 0.00005786856139999999868450686336 state = 17.83
2023-08-28 13:27:02.249 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 42.68191799999999602732714266, integral = 0.00001185608833333333222981309518 state = 0.6200243278888333333348133655
2023-08-28 13:27:02.256 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 0E-44, integral = 0E-44 state = 1.15
2023-08-28 13:27:02.261 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 225.6943338000000198917405214, integral = 0.00006269287050000000552548347817 state = 0.92
2023-08-28 13:27:02.270 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 0E-47, integral = 0E-47 state = 0.5800287841819416666668966324
2023-08-28 13:27:02.277 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 156.2539771800000005441688700, integral = 0.00004340388255000000015115801944 state = 0.46
2023-08-28 13:27:02.282 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 225.7023108600000091428228188, integral = 0.00006269508635000000253967300522 state = 1.11
2023-08-28 13:27:02.289 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 173.6190206999999873005435802, integral = 0.00004822750574999999647237321672 state = 0.99
2023-08-28 13:27:02.294 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 30.06544920000000047366484068, integral = 0.000008351513666666666798240233522 state = 0.5400213532790833333325034952
2023-08-28 13:27:06.013 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 2854.019479499999874860804994, integral = 0.0007927831887499999652391124983 state = 78.53
2023-08-28 13:27:06.017 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 2387.985943600000132391869556, integral = 0.6633294287777778145532970989 state = 377.36
2023-08-28 13:27:06.018 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 2387.985943600000132391869556, integral = 0.0006633294287777778145532970989 state = 36.40
2023-08-28 13:27:06.024 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 1223.127933299999972405203152, integral = 0.0003397577592499999923347786533 state = 18.54
2023-08-28 13:27:06.032 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 1223.144065500000067459041020, integral = 0.0003397622404166666854052891722 state = 18.55
2023-08-28 13:27:06.038 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 1223.157110700000077940785559, integral = 0.0003397658640833333549835515442 state = 18.54
2023-08-28 13:27:06.044 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 1223.169332700000018121500034, integral = 0.0003397692590833333383670833428 state = 18.55
2023-08-28 13:27:06.050 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 1397.922424799999953393125907, integral = 0.0003883117846666666537203127519 state = 21.35
2023-08-28 13:27:06.058 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 1339.692023899999946934258332, integral = 0.0003721366733055555408150717589 state = 18.63
2023-08-28 13:27:06.064 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 1164.963079999999990832293406, integral = 0.0003236008555555555530089703906 state = 3.83
2023-08-28 13:27:06.072 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 198.0426139999999861629476072, integral = 0.00005501183722222221837859655756 state = 32.82026859288166666664447272
2023-08-28 13:27:06.080 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 1339.743060900000000401632860, integral = 0.0003721508502500000001115646833 state = 5.56
2023-08-28 13:27:06.087 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 961.1288445000000479012669530, integral = 0.0002669802345833333466392408203 state = 3.32
2023-08-28 13:27:06.094 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 378.6304073500000185958924703, integral = 0.0001051751131527777829433034640 state = 4.14
2023-08-28 13:27:06.099 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 291.2538729999999986830516718, integral = 0.00008090385361111111074529213106 state = 2.56
2023-08-28 13:27:06.107 DEBUG (MainThread) [homeassistant.components.integration.sensor] area = 1199.981060680000034608383430, integral = 0.0003333280724111111207245509528 state = 3.88
Mariusthvdb commented 1 year ago

could it be the entities created by CC Powercalc are not yet available at startup when Integration tries to restore? It's hard to see in the logs, as there are no entity_id's.

It's about the only logic from a user perspective I could think of, and which would also help explain why a state change has immediate effect and fixes the Integration entity.

dgomes commented 1 year ago

could it be the entities created by CC Powercalc are not yet available at startup when Integration tries to restore? It's hard to see in the logs, as there are no entity_id's.

It's about the only logic from a user perspective I could think of, and which would also help explain why a state change has immediate effect and fixes the Integration entity.

It makes sense to me, since this integration is event based. If there is no event nothing goes on (except for the restoration)

But I'm now curious about which entities did not get restored (your logs are very extensive and show many restorations!)

Could you apply the patch in https://github.com/home-assistant/core/pull/99007 ? Just to increase logging information

bramstroker commented 1 year ago

Just to chime in. I can tell the following about the power sensors created by Powercalc.

Virtual power sensors created with Powercalc will get their initial state set on HA startup. That's done here: https://github.com/bramstroker/homeassistant-powercalc/blob/master/custom_components/powercalc/sensors/power.py#L454.

Also after that every 10 minutes a state change is forced for the power sensor, to make sure the Riemann sensor does it's thing even if the power value stays static for hours. As it's indeed event based as @dgomes mentioned.

Also the power state is modified whenever a source entity (for example a light changes state) or any of the tracking entities changes state.

There could be a case when power sensor becomes unavailable after startup and that's when the source entity is also unavailable. That can be controlled by ignore_unavailable_state to force the power sensor to 0 in that scenario.

Not sure if this is of any help.

But it makes sense to first analyse the log output when you have the entity_id's added @Mariusthvdb. See which entities give the problem and what the state history is for both power and energy sensor. This information can be gathered from the states table if you have DB access marius.

Mariusthvdb commented 1 year ago

Ok thanks.

Will try the patch if I get a chance tonight.

Bram fyi, I already have the ignore set in the global config, so I guess that doesn't help ;-)

I'm not very savvy in DB manipulation, so first will try the patch and hope that will shed some light

Mariusthvdb commented 1 year ago

seems to not work... cant get the integration CC to be applied because of:

Logger: homeassistant.setup
Source: setup.py:379 
First occurred: 20:47:40 (5 occurrences) 
Last logged: 20:47:40

Unable to prepare setup for platform integration.sensor: Platform not found (cannot import name 'DeviceInfo' from 'homeassistant.helpers.device_registry' (/usr/src/homeassistant/homeassistant/helpers/device_registry.py)).

added the version line so not sure what to do next:

{
  "domain": "integration",
  "name": "Integration - Riemann sum integral",
  "codeowners": ["@dgomes"],
  "config_flow": true,
  "documentation": "https://www.home-assistant.io/integrations/integration",
  "integration_type": "helper",
  "iot_class": "local_push",
  "quality_scale": "internal",
  "version":"1.2.3"
}
Scherm­afbeelding 2023-08-28 om 20 52 14
dgomes commented 1 year ago

you need to wait for beta... or change the logging line in previous version code

Mariusthvdb commented 1 year ago

I'll await the beta ;-)

Mariusthvdb commented 1 year ago

I've just also noticed some entities without a unit, (I noticed because their more-info panel didnt show a graph). see an example:

the source sensor (created by Powercalc has a correct unit, and the _yearly inherits that correctly, the daily however is not set, even though the state_class seems ok?

Scherm­afbeelding 2023-08-29 om 11 02 17

an exact same config for the outside lights is correct:

Scherm­afbeelding 2023-08-29 om 11 07 01

not sure if this is the cause, but several individual _daily entities dont have a unit either.

and its yet unclear to me why. Its not the make of the device, because its spread over several core integrations (zwave/shelly) and inside the zwave, spread over several brands)

hopefully the beta will log more detail so we can pinpoint the original issue to these entities

dgomes commented 1 year ago

I've just also noticed some entities without a unit, (I noticed because their more-info panel didnt show a graph). see an example:

the source sensor (created by Powercalc has a correct unit, and the _yearly inherits that correctly, the daily however is not set, even though the state_class seems ok?

Don't think its related... please lets not pollute this issue which is about state restore

Mariusthvdb commented 1 year ago

dont want to pollute obviously.

should I open a new issue on the daily utility_meter entities not getting a correct unit/device_class?

Mariusthvdb commented 1 year ago

sorry for the issue above not being logged correctly, I accidentally clicked enter before the issue template was completely filled-out. Hope you can still see it

Mariusthvdb commented 1 year ago

Just so you know: I haven't followed up here with new logs because 2023.9 beta has breaking issue with zwave-ja and they are still not fixed.

Can't see the new options in logs for the settings we are looking for because of that.

rany2 commented 1 year ago

I also experience something similar to this issue, when the source sensor is 0 the integration considered it to be "unavailable." I'm on 20230802.1

rany2 commented 1 year ago

I think it's important for me to explain how I resolved my issue. Setting force_update to true in the integration's SensorEntity fixed it.

dgomes commented 1 year ago

Since Riemann is event driven, it can only work properly if state updates occur frequently, that's why force_update (in the source) fixed it.

Mariusthvdb commented 1 year ago

right, so my 2023.9 instance is up and running....

you only want me to set debug, or add some other settings as well?

because for now, nothing has changed in those logs:

2023-09-08 16:22:19.399 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.48
2023-09-08 16:22:19.399 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.40
2023-09-08 16:22:19.400 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.55
2023-09-08 16:22:19.400 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.23
2023-09-08 16:22:19.400 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.29

however, checking the states *device_energy (the Powercalc entities) on 'unavailable' seems to resolve nicely on restart now. Can see them disappear while startup completes.

so its definitely better than before, leaving the logs to be cryptic as before...

and there's also this:

Scherm­afbeelding 2023-09-08 om 16 35 13

an odd trapezoidal, so I searched the config_entries for that, and found 4 hits. 3 are of my currently unavailable heaters, and were made some moths ago, the other however:

        "options": {
          "name": "Dining corner device energy helper",
          "source": "sensor.dining_corner_device_power",
          "method": "trapezoidal",
          "round": 2.0,
          "unit_prefix": "none",
          "unit_time": "h"
        },
        "pref_disable_new_entities": false,
        "pref_disable_polling": false,
        "source": "user",
        "unique_id": null,
        "disabled_by": null
      },

how odd is that. could the method have anything to do with this issue?

anyways, changing it cant be done in the UI?

Scherm­afbeelding 2023-09-08 om 16 38 34

so I guess I need to delete it and maybe check again after recreation has been useful for this issue debugging or? I changed it manually I the config_entries and restarted, and yes, that made that single line go away.

dgomes commented 1 year ago

Trapezoid method is the most realistic method of doing a Riemann Sum integration (therefore the default method), having said that, it's also the most demanding since it requires 2 consecutive points. Left and Right method can work with a single point.

The point of my last request for logs was to check the claim that some Riemann integrations were not restoring... haven't seen that...

So considering the title of the issue, I think we can close ?

Mariusthvdb commented 1 year ago

the search for debugging this issue revealed severe logging in the startup,

2023-09-09 08:51:49.740 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.30
2023-09-09 08:51:49.740 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.30
2023-09-09 08:51:49.741 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.30
2023-09-09 08:51:49.741 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.50
2023-09-09 08:51:49.741 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 0.50
2023-09-09 08:51:49.741 DEBUG (MainThread) [homeassistant.components.integration.sensor] Could not apply method left to unavailable -> 1.10

which is still happening, even though the force_update does its job and restores most all entities.

isn't that something we need to target before closing? It still isnt clear what causes that, or which are the offending entities.As its directly related/caused in this issue, we shouldnt need a separate issue for it imho

dgomes commented 1 year ago

That is absolutely normal, and therefore only shows up in debug.

Sensors go from unavailable to the 1st state value as they are starting, it's normal.