Last active
April 5, 2022 21:50
-
-
Save dmamontov/95990dfd155c6ef92e0e7f46762bfcc2 to your computer and use it in GitHub Desktop.
hass-miwifi-performance-table-force-mode
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: vertical-stack | |
cards: | |
- type: 'custom:auto-entities' | |
filter: | |
include: | |
- attributes: | |
router_mac: <ROUTER MAC ADDRESS> | |
card: | |
type: 'custom:flex-table-card' | |
clickable: false | |
sort_by: mac+ | |
columns: | |
- data: icon | |
name: ' ' | |
# modify: '"<ha-icon id=\"icon\" icon=\"" + x + "\"></ha-icon>"' # Uncomment if it doesn't work without. | |
- data: friendly_name | |
name: Friendly Name | |
- data: mac | |
name: MAC | |
- data: signal | |
name: Signal | |
modify: 'x === 0 ? "" : x' | |
- data: state | |
name: State | |
modify: 'x === "home" ? "online" : "offline"' | |
- data: last_activity | |
name: Last activity | |
modify: 'x.replace(/T/i, " ")' | |
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 10px; width: 200px' | |
'th.left:nth-child(1)': 'width: 44px' | |
'th.left:nth-child(2)': 'width: 330px' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment