brunob45 / mazda2mqtt

Mazda API to MQTT bridge
Apache License 2.0
5 stars 1 forks source link

missing battery % on EV #5

Open guba91 opened 1 week ago

guba91 commented 1 week ago

i get a lot of sensors, including fuelDistanceRemaining and fuelRemaining but fuelRemaining is at 0% and fuelDistanceRemaining at 99km so i think that there must be a batteryRemaining value in the api but i'm not sure how to get it.

also, how to setup how often to update everything?

Thanks :)

brunob45 commented 1 week ago

Thanks for taking the time to test this!

Could you send the log generated by docker? Everytime the info is updated, the data is printed in the log

I will add any missing fields :)

guba91 commented 1 week ago

can't see that value.. the requst on the API is reporting everything? {'lastUpdatedTimestamp': '20241008080738', 'latitude': 45, 'longitude': 12, 'positionTimestamp': '20241008080536', 'fuelRemainingPercent': 0.0, 'fuelDistanceRemainingKm': 81.0, 'odometerKm': 41326.2, 'doors': {'driverDoorOpen': False, 'passengerDoorOpen': False, 'rearLeftDoorOpen': False, 'rearRightDoorOpen': False, 'trunkOpen': False, 'hoodOpen': False, 'fuelLidOpen': False}, 'doorLocks': {'driverDoorUnlocked': False, 'passengerDoorUnlocked': False, 'rearLeftDoorUnlocked': False, 'rearRightDoorUnlocked': False}, 'windows': {'driverWindowOpen': False, 'passengerWindowOpen': False, 'rearLeftWindowOpen': False, 'rearRightWindowOpen': False}, 'hazardLightsOn': False, 'tirePressure': {'frontLeftTirePressurePsi': 33.0, 'frontRightTirePressurePsi': 36.0, 'rearLeftTirePressurePsi': 35.0, 'rearRightTirePressurePsi': 33.0}}

brunob45 commented 1 week ago

Thank you for this!

I looked into the official home assistant integration code, I will have to add the API call for the electric car. I assumed it would all be at the same place.