Hypfer / lovelace-valetudo-map-card

Display the map from a valetudo-enabled robot in a home assistant dashboard card.
MIT License
243 stars 36 forks source link

Card does not display vacuum status #106

Closed trancefam closed 2 years ago

trancefam commented 2 years ago

Hello, thank you for the card. I am running into an issue where the vacuum status does not display. I am on the latest version and valetudo 2022.1.0. Here is my config and screenshot of what I see:

type: custom:valetudo-map-card
vacuum: valetudo_robot
rotate: 0
crop:
  top: 0
  bottom: 0
  left: 0
  right: 0
min_height: 0.625w
map_scale: 2
show_status: true
show_battery_level: true
show_start_button: true
custom_buttons:
  - text: LR
    service: script.vacuum_living_room
    icon: mdi:sofa
  - text: Kitchen
    service: script.vacuum_kitchen
    icon: mdi:silverware-fork-knife
  - text: BR
    service: script.vacuum_bedroom
    icon: mdi:bed-empty
  - text: Couch
    service: script.vacuum_couch_area
    icon: mdi:table-chair
  - text: Stove
    service: script.vacuum_stove_area
    icon: mdi:stove

image

I have been experimenting with another custom card called vacuum-card. Here is a screenshot of that. I was hoping to see the word Docked similar to below:

image

By debugging in chrome, I can see that the infoEntity object looks like: image

It seems we should be checking infoEntity.state now?

TheLastProject commented 2 years ago

Fixed in 1a61bd9be265ab40549ab0621bb75a090d6b1b60, thanks for the pointers :)