Vehicle Status Custom Card

That’s great

:ok_hand:

@VietNgoc Is there a thread for the MB Vehicle Info Custom Card ? Coz i have some questions.
Thanx

Hi @HarryBoo, vehicle info doesn’t have its own thread, but it’s linked to the component thread. If you have any questions, you can send me a message, or feel free to create an issue on the repo :+1: :wink:

Hello,

I am having difficulties accommodating the entities that my BMW provides.

  1. It outputs the status of individual doors or locks as attributes of higher-level entities (entity: “binary_sensor.bmw530d_lids”, whose attributes: “leftFront: CLOSED”, “leftRear: CLOSED”, “rightFront: CLOSED” etc.), but I cannot output attributes in a group of indicators. Or have I overlooked something?
  2. The BMW offers button entities that trigger immediate actions (“button.bmw530d_activate_air_conditioning”). Here, too, I have not succeeded in assigning this to the buttons on the button cards of this card.
    Regards and thanks for this card,
    Eckart

Hi, because it’s a binary sensor, you have to go through the template. You can easily find out the state for each attribute via template editor, but I think you will have on/off … something like this…

{{ iif(is_state_attr('sensor.6z1_2359_lock','doorstatusrearright', true), 'Locked', 'Closed') }}

{{ states['sensor.6z1_2359_lock'].attributes.doorstatusrearright }} 


For the button, each integration has a different design. I don’t know if you are using the official bmw integration, but according to the documentation I have no idea what the button is supposed to do. Some require script/automation for trigger service. Try to set tap action as toggle.

I would like to use the minimap, but my car integrations doesn’t create a device_tracker, instead I created a sensor. Is there any chance to use a sensor for the minimap (I added the latitude and longitude attributes to the sensor)?

why not create a device tracker manually using lat and lon from the sensor?

device_tracker:
  - platform: template
    devices:
      my_custom_tracker:
        source_type: gps
        latitude: "{{ states('sensor.my_latitude_sensor') | float }}"
        longitude: "{{ states('sensor.my_longitude_sensor') | float }}"
        gps_accuracy: "{{ states('sensor.my_gps_accuracy_sensor') | int }}"
        battery_level: "{{ states('sensor.my_battery_sensor') | int }}"

gps_accuracy and battery_level are optional

1 Like

Because I was pretty sure, it’s not possible the create a device with a template.

Solved it, by creating an automation and using the device_tracker.see action

Thank you so much for this amazing work, I love it!

Now … hear me out :laughing:

I know you intended this as a vehicle status card… but it’s an amazing card for pets too :laughing:

This is my cat. Indicators are the daily stats, the buttons are actions to clean litter box / add food / open cat door …

I’m using Tractive tracker, petkit feeder and automatic litter box, pet libro water fountain

(Map display is much better I just zoomed in to hide my address )

3 Likes