lovelace-multiple-entity-row icon indicating copy to clipboard operation
lovelace-multiple-entity-row copied to clipboard

Support object in attributes

Open quammy opened this issue 5 years ago • 5 comments

Hi, First of all - great card! Just started to play with it... I have a question - how can I set an attribute that is a field in an attribute object? This is a sample of my object:

Time: '2020-09-15T19:26:03'
Epoch: 1600190763
Uptime: '15T04:00:18'
UptimeSec: 1310418
Heap: 27
SleepMode: Dynamic
Sleep: 50
LoadAvg: 19
POWER: 'OFF'
Wifi:
  AP: 1
  SSId: F1
  BSSId: 'B0:4E:26:BD:22:46'
  Channel: 5
  RSSI: 52
  LinkCount: 4
  Downtime: '0T00:01:51'
friendly_name: Switch - Irrigation porch
icon: 'mdi:water'

this is the card config:

  - entity: switch.sonoff_irrigation_porch
    type: 'custom:multiple-entity-row'
    icon: 'mdi:water'
    name: Irrigation porch
    secondary_info: last-changed
    toggle: true
    state_color: true
    entities:
      - attribute: Wifi.RSSI
        name: RSSI
        unit: dBm

and this is the result: image

Thanks!!

quammy avatar Sep 15 '20 17:09 quammy

Same problem to extract this value image

mycanaletto avatar Sep 24 '20 22:09 mycanaletto

Have the same problem. Trying to get an attribute form an Object

TheDave1022 avatar Oct 07 '20 13:10 TheDave1022

This is not currently supported, but it would be added with templating support (#35). Not sure when I will get around to implement that though...

benct avatar Oct 07 '20 15:10 benct

Any news on this old matter? Maybe it was solved in another way?

quammy avatar Sep 25 '23 11:09 quammy