benct / lovelace-multiple-entity-row

Show multiple entity states and attributes on entity rows in Home Assistant's Lovelace UI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problem showing sensor status

simille83 opened this issue · comments

  • When I insert a sensor, specifically a door sensor set as device class opening, in the list of entities it is indicated to me with the on/off status and if I insert the item ''attribute: status'' the status of the sensor switches to undefined. How can I do to show open/closed status instead of on/off?

'-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:

  • entity: binary_sensor.porta_ingresso
    name: false
    attribute: status

Thank you.

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

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

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: #292
and then close your issue as a duplicate.