Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Price is not reporting corectly #28

Open
jcastang opened this issue Jul 25, 2023 · 6 comments
Open

Price is not reporting corectly #28

jcastang opened this issue Jul 25, 2023 · 6 comments
Labels
bug Something isn't working

Comments

@jcastang
Copy link

Hello,

I have added current price in my energy dashboard using this attribute as increasing cost for energy consumption

  • name: sensor.atome_daily_cost
    state: "{{ state_attr('sensor.atome_daily', 'price') | float }}"
    unit_of_measurement: 'euro'

But each day it only reports 1.75€ instead of the real price.

As I login into my Total Énergie account I can see real price.

Maybe something I misconfigured or misunderstood ?

@jugla
Copy link
Owner

jugla commented Sep 2, 2023

Hello,
Sorry for the delay.
Please if you look directly in HA dashboard the sensor Atome Delay, what is displayed for price and previous price (attributes) ?
Thanks in advance
Philippe

@jcastang
Copy link
Author

jcastang commented Sep 4, 2023

Hello,
If I look into entities, I see a price for today and previous, but the price is wrong.
image

The real price is near 3/4€

@jugla jugla added the bug Something isn't working label Feb 26, 2024
@jugla
Copy link
Owner

jugla commented Feb 26, 2024

I have to correct it

@jugla
Copy link
Owner

jugla commented May 7, 2024

Hello,
Please can you check with this template in configuration.yaml :

-template:
  - sensor:
      - name: atome_daily_price
        state: >-
           {% if state_attr('sensor.atome_daily', 'price') == 'unknown' %}
              unknown
           {% else %}
              {{ state_attr('sensor.atome_daily', 'price') }}
           {% endif %}
        #unit_of_measurement: 'EUR'
        state_class: total_increasing
        #device_class: monetary
```

@jugla
Copy link
Owner

jugla commented Jul 12, 2024

have you some news ?

@dbdavid44
Copy link

@jugla as there was no reply I tried this myself and it doesn't work.

What works for me right now with my entire setup up to date is this:

  • sensor:
    • name: Atome Weekly Price
      unique_id: atome_weekly_price
      state: "{{ state_attr('sensor.atome_weekly', 'price') | float }}"
      unit_of_measurement: "EUR"
      state_class: total_increasing
      device_class: monetary

However I regularly get log errors for another issue related to the state class so I'll report a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants