Price is not reporting corectly
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 ?
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
Hello,
If I look into entities, I see a price for today and previous, but the price is wrong.
The real price is near 3/4€
I have to correct it
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
```
have you some news ?
@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.