Home Assistant coming for your car!

Unfortunately, particularly in Russia using Waze is not the best option - it seems to be not processing data about traffic jams properly, always gives 10-20 minutes less than Yandex maps. Also, Waze very often gives me a flatline…

Just looking through the logs and HA is unhappy with unknown:

2023-08-05 10:32:49.611 ERROR (MainThread) [homeassistant.components.sensor] Error adding entities for domain sensor with platform mobile_app

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 593, in state
numerical_value = float(value) # type:ignore[arg-type]

^^^^^^^^^^^^

ValueError: could not convert string to float: 'Open Home Assistant app to activate the sensor'
The above exception was the direct cause of the following exception:

Traceback (most recent call last):

File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 510, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 750, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1004, in add_to_platform_finish
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 746, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 808, in _async_write_ha_state
state = self._stringify_state(available)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 752, in _stringify_state
if (state := self.state) is None:

^^^^^^^^^^

File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 595, in state
raise ValueError(
ValueError: Sensor sensor.gavin_pixel_4a_car_battery has device class 'battery', state class 'None' unit '%' and suggested precision 'None' thus indicating it has a numeric value; however, it has the non-numeric value: 'Open Home Assistant app to activate the sensor' (<class 'str'>)

Please submit an issue on GitHub

1 Like

Love the fact the favourites view now loads by default, very cool and thank you!

4 Likes

One question… I have HA installed in AAOS on my Polestar. How can I get CarInfo sensors into HA ? Can’t find any other information than car position.

Otherwise, thanks for the port to AA as this is useful to control home things.

Thanks !

They are not available for automotive currently.

Any plans to have them available in the future ?

My car (european Hyundai i40 of 2015) only report model as sensor. No odometer or fuel tank :sob:.

But, the new UI es very useful. Now I can open my garage door with two clicks! :smiley:

1 Like

Yes there is an existing feature request.

Same here hopefully that changes but I kinda doubt it. I wonder which cars actually report data asides from car name. The name is only useful if you have multiple Android auto vehicles.

My Mazda has a retrofitted AA from Mazda. (At least Mazda recognised that people wants it and they added an option to be able to install to some older models with a screen.) Obviously it shares no information about the car, unlike it would be impossible for them, but they haven’t built the solution that way.

Many things can be accessed on the CAN-BUS, more than what you think… :wink:

Hi, how can I test the sensors in my car? I’ve connected my car to AA, started Home Assistant, but I don’t see any new sensors for the car. I have a Hyundai Ioniq Electric.

I guess you meant phone to the car and started AA. You need to enable the Android Auto sensors in the HA companion mobile app and then you will see them update if there is any information provided by the car.