wernerhp / ha.integration.load_shedding

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

feature request: entity with same matching slots as calendar #51

Open tinuva opened 1 year ago

tinuva commented 1 year ago

Would it be possible to create an entity where the attributes contain the same list of slots as the calendar?

What I mean by that is, where the slots have been combined and the 30min slots removed, exactly as one have in the calendar entity. The problem is, the calendar entity only provide the "next" slot, but also at times it is outdated unlike the area entity. The area entity doesn't have the slots combined and less than 30min removed like the calendar.

Use case: To be able to use the same entries that are in the calendar in automations (to make life easier).

Calendar looks good: Screenshot 2023-01-16 at 07 38 04

Attributes though useless for automations: (HA limitation and looks like no plan to fix based on home-assistant/core/issues/84202 ). Eg. Look here. This screenshot was taken at 7:38am but it still shows a 5-6:30 slot in the attribute. Screenshot 2023-01-16 at 07 38 12

The area attributes seem to get update Screenshot 2023-01-16 at 07 39 37 d instantly, but is not combined when stage names change halfway through a slot etc: