Ecco una card per visualizzare i dati dell'addon ADblock:
- type: entities
style: |
.card-content { padding: 0;}
.card-content > div { margin: 0 !important;}
entities:
- type: custom:hui-markdown-card
style: |
ha-card {
border-radius: var(--ha-card-border-radius) var(--ha-card-border-radius) 0px 0px;
#background: var(--primary-color);
#background: content-box radial-gradient(var(--paper-item-icon-active-color), var(--primary-color));
#background: content-box radial-gradient(var(--light-primary-color), var(--primary-color));
background: darkcyan;
box-shadow: none;
}
content: >-
<font size=5><center> 🚳 AD Guard</font>
# - type: horizontal-stack
# cards:
- type: custom:hui-glance-card
style: |
ha-card {
overflow: hidden; box-shadow: none; background: none; border-radius: 0px; font-size: 0.9em;
}
columns: 5
show_icon: true
show_state: false
entities:
- entity: switch.adguard_filtering
name: Filter
icon: mdi:filter
tap_action:
action: toggle
- entity: switch.adguard_protection
name: Protection
tap_action:
action: toggle
- entity: switch.adguard_parental_control
name: Parental Control
icon: mdi:account-multiple
tap_action:
action: toggle
- entity: switch.adguard_safe_browsing
name: Safe Browsing
icon: mdi:google-chrome
tap_action:
action: toggle
- entity: switch.adguard_safe_search
name: Safe Search
icon: mdi:search-web
tap_action:
action: toggle
- type: divider
style:
background-color: var(--primary-color)
height: 1px
- type: custom:hui-glance-card
style: |
ha-card {
overflow: hidden; box-shadow: none; background: none; border-radius: 0px; font-size: 0.9em;
}
columns: 3
show_icon: true
entities:
- entity: sensor.adguard_average_processing_speed
name: Average Speed
- entity: sensor.adguard_dns_queries
name: DNS Queries
- entity: sensor.adguard_dns_queries_blocked_ratio
name: DNS Blocked
- entity: sensor.adguard_parental_control_blocked
name: Parental Control
- entity: sensor.adguard_safe_browsing_blocked
name: Safe Browsing
- entity: sensor.adguard_safe_searches_enforced
name: Safe Search