benct / lovelace-multiple-entity-row

Show multiple entity states and attributes on entity rows in Home Assistant's Lovelace UI
MIT License
768 stars 55 forks source link

Problem showing sensor status #301

Closed simille83 closed 1 year ago

simille83 commented 1 year ago

'-type': entities entity: switch.porta_ingresso_bypassed type: custom:multiple-entity-row name: PORTA INGRESSO icon: mdi:door state: true toggle: true state_color: true entities:

Thank you.

ildar170975 commented 1 year ago
  1. Post a FORMATTED code always. Use triple "`".
  2. Does your sensor have this "status" attribute?
simille83 commented 1 year ago

in fact it does not have the state attribute. I just wish it would read the setting of device_class as set in the entity instead of on/off

ildar170975 commented 1 year ago

in fact it does not have the state attribute.

Then your code is wrong.

I just wish it would read the setting of device_class as set in the entity instead of on/off

Check for already present issues: https://github.com/benct/lovelace-multiple-entity-row/issues/292 and then close your issue as a duplicate.