dotKrad / hass-fpl

FPL Component for Home Assistant
MIT License
40 stars 20 forks source link

Ability to have sensors to graph data #6

Closed dorgan closed 3 years ago

dorgan commented 3 years ago

Currently the way the daily usage attributes are setup there is no way to ingest/use this data in a graph within homeassistant

dotKrad commented 3 years ago

I just put it there cause a suggestion from another user, if you want I can change the way its stored

Lukejb14 commented 3 years ago

If the attributes were each an individual sensor, (like projected bill sensor, avg daily sensor etc.) a user can group them together manually if they wanted to have all attributes together.

dotKrad commented 3 years ago

I created 3 separated sensors, Projected bill, average daily and daily usage, with this one only showing the las usage day if you need anything else pls let me know, I made this integration to fit my own need but I'm happy others are using it so I'm willing to change it to fit our needs

dorgan commented 3 years ago

@dotKrad I just updated and the integration is now busted. HA versions 0.117.1.

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 197, in _async_setup_platform await asyncio.shield(task) File "/config/custom_components/fpl/sensor.py", line 41, in async_setup_entry for account in accounts: TypeError: 'NoneType' object is not iterable

dotKrad commented 3 years ago

Please try to remove and readd the integration, and let me know

dorgan commented 3 years ago

@dotKrad same error after a removal, restart, install, restart

dotKrad commented 3 years ago

I mean, did you removed the integration in the Integrations page ?