flixlix / energy-period-selector-plus

An upgraded Energy Date Selection Card for Home Assistant, with added customizability, while maintaining the Energy Dashboard's original design.
62 stars 5 forks source link

[BUG] Energy Flow Card Plus Card - Solar value reverts to 0 when Energy Date Selection enabled? #40

Open AnthonyBe opened 4 months ago

AnthonyBe commented 4 months ago

Describe the bug I have the Power Flow Plus, Energy Flow Plus, and Energy Selection Period Plus cards on a dashboard. When I enable Energy Date Selection on the Energy Flow Plus card, the Solar value changes to zero irrespective of what dates I select.

Screenshots Energy Date Selection - disabled msedge_2024-04-22_12-07-17 Energy Date Selection - enabled msedge_2024-04-22_12-07-41

Desktop (please complete the following information):

Environment Info:

System Information

version core-2024.4.3
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.12.2
os_name Linux
os_version 6.6.25-haos
arch x86_64
timezone Australia/Sydney
config_dir /config
Home Assistant Community Store GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok GitHub API Calls Remaining | 4969 Installed Version | 1.34.0 Stage | running Available Repositories | 1408 Downloaded Repositories | 42
Home Assistant Cloud logged_in | false -- | -- can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | failed to load: timeout
Home Assistant Supervisor host_os | Home Assistant OS 12.2 -- | -- update_channel | stable supervisor_version | supervisor-2024.04.0 agent_version | 1.6.0 docker_version | 25.0.5 disk_total | 30.8 GB disk_used | 21.5 GB healthy | true supported | true board | ova supervisor_api | ok version_api | ok installed_addons | Studio Code Server (5.15.0), Samba share (12.3.1), Check Home Assistant configuration (3.11.0), Advanced SSH & Web Terminal (17.2.0), ESPHome (2024.4.0)
Dashboards dashboards | 16 -- | -- resources | 19 views | 14 mode | storage
Recorder oldest_recorder_run | 11 April 2024 at 19:03 -- | -- current_recorder_run | 22 April 2024 at 10:06 estimated_db_size | 1148.29 MiB database_engine | sqlite database_version | 3.44.2
letsstartbeinganon commented 2 weeks ago

I have a similar issue on my secondary information, which I've got set up to show my accumulative cost.

When the option is disabled, it correctly shows today's accumulated charges, and then doesn't change when I hit 'week', 'month', etc.

When enabled, it just shows 0 at all times, even on today's view (despite having previously shown the correct value).

The information is available in the entity's history.

On another note, I'm also unable to get the icons to display for secondary information, which is handy for prices as I've set the icon to GBP. This correctly works on the power flow card but not on the energy flow card.