This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type: 'custom:flex-table-card' | |
clickable: true | |
sort_by: state- | |
columns: | |
- data: friendly_name | |
name: Friendly Name | |
modify: x.replace(/ Zigbee$/,"") | |
- data: device.extra.ieee | |
name: IEEE | |
modify: (x+'').toLowerCase() | |
- data: device.extra.nwk | |
name: NWK | |
modify: (x+'').toLowerCase() | |
- 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: device.extra.lqi | |
name: LQI | |
modify: if(x.length == 0){"-"}else{x+''} | |
- data: device.extra.rssi | |
name: RSSI | |
modify: (x+'').replace("undefined","-") | |
- data: device.extra.type | |
name: Type | |
modify: (x+'').replace("undefined","-") | |
- data: device.extra.nwk_parent | |
name: Parent | |
modify: (x+'').replace("0x0000","-") | |
- data: device.last_report_ts | |
name: Last report | |
modify: (x+'').replace("undefined","-") | |
- data: state | |
name: Last seen | |
modify: > | |
var dt = new Date(0,0,0,0,0,0,(Date.now()-Date.parse(x))); | |
isFinite(dt) ? dt.toTimeString().split(" ")[0] : "" | |
- data: device.available | |
name: Available | |
modify: 'x === true ? "✓" : "✗"' | |
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