Skip to content

Alignment of Battery Sensor attributes | Enhanced logging in re-auth cycle

Choose a tag to compare

@marq24 marq24 released this 08 Jan 23:36

BREAKING CHANGE! Alignment of Battery Sensor attributes

I have been made aware in #173 that the attributes of the 12V battery sensor is some sort of different, compared to all other sensors. With this release this behaviour will be corrected, even if this implies, that when you have currently defined own template sensors in order to access the batteryVoltage, you must adjust these templates after you have updating to the new version.

When your template looks currently like this:

{% set battery_data = state_attr('sensor.fordpass_YOURVIN_battery', 'batteryVoltage') %}
{% if battery_data and battery_data.value %}
{{ battery_data.value | float }}
{% else %}
unknown
{% endif %}

It should be adjusted to:

{{ state_attr('sensor.fordpass_YOURVIN_battery', 'batteryVoltage') | float }}

Enhanced logging in re-auth cycle

It has been reported #176, #152 , that the re-auth process is causing issues. I have to admit, that I am totally clueless what could go wrong (into the wrong direction) when the integration requesting to re-auth (restart with the token process). In order to support the debugging if this process fail for somebody again, this new release will include additional information in the debug log output, that hopefully will help me (when provided in an new issue) to find the root cause of this issue.

Please consider supporting me

Thanks to those who have already supported me in the past weeks or month that is highly appreciated! To the other users: I am putting quite an amount of energy and passion into this integration. Perhaps you could give yourself a little push (if you can afford it) and become a sponsor.

GithubSponsor Revolut Wero PayPal BuyMeCoffee Github Stars
If you haven't starred this integration in Github yet - please do so - TIA