wernerhp / ha.integration.load_shedding

A Home Assistant integration to track your load schedding schedule.
MIT License
113 stars 21 forks source link

Schedule funnies #78

Closed rengro46 closed 1 year ago

rengro46 commented 1 year ago

Hi Werner,

Awesome integration, thanks again! Interesting one, looking at my ESP app on my phone it shows my next slot to be at 10pm tonight, looking at the integration schedule i get these weird 30min slots after level changes at 4pm, why would that be?

See screenshot for 30min slot at 4pm today, tomorrow and Thursday.

image

Mmm, looking at ESP API Area information query with Postman, I can see it would have had a slot form 2:00pm - 4:30pm if stage 4 had been in effect at 2:00pm, yet it was not, so this 30 min slot should be stripped out, since Eskom does not apply it that way?

image

wernerhp commented 1 year ago

Same as https://github.com/wernerhp/ha.integration.load_shedding/issues/74

Stage 4 only starts at 16:00, so your 14:00-16:30 slot is only really from 16:00-16:30. You will generally not have load shedding then.

Change to 31m and it should hide slots that shorter than 31m. image

jpmeijers commented 1 year ago

Not really the same issue. In the case of #74 there was load shedding schedule before and after the stage change, so this plugin incorrectly hid the 14h-16h part.

wernerhp commented 1 year ago

Not really the same issue. In the case of #74 there was load shedding schedule before and after the stage change, so this plugin incorrectly hid the 14h-16h part.

Works as intended. https://github.com/wernerhp/ha.integration.load_shedding/issues/74#issuecomment-1697645475