Skip to content

Cost sensor not working with negative energy prices #87

@JohanEikelenboom

Description

@JohanEikelenboom

Version of the custom_component

Using version: V1.1.0

Describe the bug

As you can see in the attached screenshot, the energy price between was negative between 12:00 and 15:00.
ElectricityPrice

During this time, I charged my EV (see the screenshot with the daily energy import between 13:00 and 17:00).
GridImportDailykWh

To my surprise, the cost remained the same between 10:30 (as expected due to solar returning energy) and 15:00. I would expect the daily cost would decrease between 12:00 and 15:00 since I turned off the solar panels and started charging my EV at 13:00.
GridImportDailyCost

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions