-
-
Save DJTerentjev/c8733478c616524a8db539565c2d669e to your computer and use it in GitHub Desktop.
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 | |
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