Skip to content

Sometimes Renault-API returns battery percentage 'none' #1

@TheRealOne78

Description

@TheRealOne78

Logs:

[2024-03-26 08:49:16] [D] renault_api.kamereon: Received Kamereon response 200 on GET to https://REDACTED: {"data":{"type":"Car","id":"REDACTED","attributes":{"timestamp":"2024-03-26T05:20:32Z","batteryTemperature":20,"batteryCapacity":0,"batteryAvailableEnergy":25,"plugStatus":1,"chargingStatus":0.0,"chargingRemainingTime":5}}}
[2024-03-26 08:49:16] [D] root: [REDACTED] New car loop check:
battery_percentage - None%
battery_plugged - 1
battery_temperature - 20
battery_not_charging - True

[2024-03-26 08:49:16] [E] root: [SERVER SHUTDOWN] An unexpected error occurred: '<=' not supported between instances of 'NoneType' and 'int'
[2024-03-26 08:49:17] [D] root: [NTFY] NTFY notification sent successfully

Note: At that time, the car was not actually plugged

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions