MattDahEpic / ha-midas

Home Assistant integration to get energy prices from California's MIDAS energy price API
MIT License
6 stars 0 forks source link

Expose rate name as an entity instead of an attribute on an entity. #7

Closed Particpant closed 2 months ago

Particpant commented 2 months ago

Checklist

Is your feature request related to a problem? Please describe.

I'd like to expose the current rate name in my HA UI. That's not always easy to do for attributes of an entity. I'd also like to drive automation based on the current rate name.

Describe the solution you'd like

I'd like to see the rate names (previous, current, and next) as entities.

Describe alternatives you've considered

Template helpers, maybe? Entities for just current/next? HA's recorder/history should have all the look back someone might need, I think. I think the current "standard" in HA is to have fewer attributes per entity, unless I've misunderstood.

Additional context

N/A

Particpant commented 2 months ago

I appreciate your work to build this out as it currently exists!

MattDahEpic commented 2 months ago

Just confirming here, you're looking for tariff name not the rate name? Given your use cases it sounds like the tariff is the right one image

Particpant commented 2 months ago

Yes, sorry for the mistaken terminology, I'd be looking for the Tariff Name.

MattDahEpic commented 2 months ago

This will be added in the next version as a disabled-by-default entity so as to not clutter people's databases image

Particpant commented 2 months ago

Thank you!