psa_car_controller icon indicating copy to clipboard operation
psa_car_controller copied to clipboard

consumption always None

Open Gabriele-tomai00 opened this issue 6 months ago • 0 comments

  1. what command did you use: {{ state_attr('sensor.car_corsa', 'energy')[0]['consumption'] }}
  2. when the bug append ? ALWAYS
  3. Does it persist after restarting the program? YES
  4. Does it persist after recreate config by going to http://server_address:port/config? YES
  • OS: Home Assistant OS (virtual machine on Synology nas)
  • Brand and model of car: Opel Corsa-E
  • Application version: 3.5.1

Additional context Hi, I'm using PSA car controller as add-on in Home Assistant. I configured my Opel Corsa-E with success. I can analyze the json response during time and the parameter "consumption" is always "None". Is it normal? But in the dashboard of PSA_car_controleller I'm able to see the "Average consumption".

image

Of course if I try get the value in Home Assistant with the value_template: {{ state_attr('sensor.car_corsa', 'energy')[0]['consumption'] }} I can see the history of the value and it's always None. image

Thank you

Gabriele-tomai00 avatar Aug 07 '24 09:08 Gabriele-tomai00