room-card: Wrong Icons shown for Motion devices in Info Entities

Which version of Room Card?

1.08.03 Describe the bug A clear and concise description of what the bug is. Since upgrading all my Motion Sensors on the room card in the Info area are showing with a default icon not the motion one. They do appear correctly on a home assistant standard entity card.

To Reproduce Steps to reproduce the behavior:

  1. Go to ‘…’
  2. Click on ‘…’
  3. Scroll down to ‘…’
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem. image

Desktop (please complete the following information):

  • OS: [e.g. iOS] iOS Macbook Pro and others
  • Browser [e.g. chrome, safari] Arc

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6] Android Phone and Tablet
  • Browser [e.g. stock browser, safari] Chrome and Android Home Assistant App

Additional context Add any other context about the problem here.

I suspect this is related to the new logic for Icons introduced in 2024.2, all my motion devices are either ZHA connected or ESPHome

YAML ` type: custom:room-card title: Kitchen icon: mdi:chef-hat show_icon: true entity: binary_sensor.kitchen_occupied tap_action: action: navigate navigation_path: /lovelace-yaml-rooms/kitchen state_color: true entities:

  • entity: light.kitchen_lights name: Main tap_action: action: toggle

  • entity: light.utility_light name: Utility tap_action: action: toggle

  • media_player.kitchen

  • entity: climate.zone_4_kitchen tap_action: action: more-info state_color: true name: Heating info_entities:

  • entity: binary_sensor.kitchen_ep1_occupancy show_icon: true state_color: true

  • entity: sensor.no_4_temp tap_action: action: more-info entity: climate.zone_4_kitchen

  • entity: sensor.no_4_target tap_action: action: more-info `

About this issue

  • Original URL
  • State: closed
  • Created 5 months ago
  • Comments: 23 (10 by maintainers)

Most upvoted comments

Yes, no problem

Ok. I have fixed my install so I thought I would post it here for anyone else with the same problem. HACS showed I had 1.08.03, but looking at the js in the www folder it did not have the new hass value. I removed room-card and reinstalled it and that corrected the problem.