Skip to content

Instantly share code, notes, and snippets.

@DJTerentjev
Forked from AlexxIT/zigbee_table.yaml
Last active April 18, 2024 22:04
Show Gist options
  • Save DJTerentjev/c8733478c616524a8db539565c2d669e to your computer and use it in GitHub Desktop.
Save DJTerentjev/c8733478c616524a8db539565c2d669e to your computer and use it in GitHub Desktop.
type: 'custom:flex-table-card'
clickable: true
sort_by: state-
columns:
- data: friendly_name
name: Friendly Name
modify: x.replace(/ Zigbee$/,"")
- data: device
name: IEEE
modify: x.extra.ieee+''
- data: device
name: NWK
modify: x.extra.nwk+''
- data: msg_received
name: Recv
modify: if(x.length == 0){"-"}else{x+''}
- data: msg_missed
name: Miss
modify: if(x.length == 0){"-"}else{x+''}
- data: unresponsive
name: Unresp
modify: if(x.length == 0){"-"}else{x+''}
- data: device
name: LQI
modify: (x.extra.lqi+'').replace("undefined","-")
- data: device
name: RSSI
modify: (x.extra.rssi+'').replace("undefined","-")
- data: device
name: Type
modify: (x.extra.type+'').replace("undefined","-")
- data: device
name: Parent
modify: (x.extra.nwk_parent+'').replace("undefined","-")
- data: device
name: Last Msg
modify: (x.last_report_ts+'').replace("undefined","-")
- data: state
name: Last seen
modify: 'x.replace("unavailable","")'
entities:
include: sensor.*_zigbee
css:
table+: 'padding-top: 15px;'
'tbody tr:nth-child(even)': 'background-color: #a2542f6;'
td.left: 'padding: 10px 10px 10px 10px'
th.left: 'padding: 0px 0px 10px 3px'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment