Updated #516
This commit is contained in:
parent
4f0fdaaf9b
commit
d900b31883
|
@ -60,16 +60,6 @@ sensor.carloxsmax_battery_state:
|
||||||
icon: mdi:power-plug-off
|
icon: mdi:power-plug-off
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
sensor.carlopihole:
|
|
||||||
friendly_name: 'Pi Hole Server'
|
|
||||||
|
|
||||||
hidden: False
|
|
||||||
homebridge_hidden: true
|
|
||||||
icon: mdi:filter-variant
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
sensor.chromecast_audio_1:
|
sensor.chromecast_audio_1:
|
||||||
friendly_name: 'Chromecast Audio 1'
|
friendly_name: 'Chromecast Audio 1'
|
||||||
|
|
||||||
|
@ -436,40 +426,6 @@ sensor.nodemcu3:
|
||||||
icon: mdi:alarm-bell
|
icon: mdi:alarm-bell
|
||||||
|
|
||||||
|
|
||||||
sensor.pi_hole_ads_blocked_today:
|
|
||||||
friendly_name: 'Ads Blocked Today'
|
|
||||||
|
|
||||||
hidden: False
|
|
||||||
homebridge_hidden: true
|
|
||||||
icon: mdi:do-not-disturb
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
sensor.pi_hole_ads_percentage_blocked_today:
|
|
||||||
friendly_name: 'Pi-Hole Ads Percentage Blocked Today'
|
|
||||||
|
|
||||||
hidden: False
|
|
||||||
homebridge_hidden: True
|
|
||||||
icon: mdi:close-octagon-outline
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
sensor.pi_hole_dns_queries_today:
|
|
||||||
friendly_name: 'Dns Queries Today'
|
|
||||||
|
|
||||||
hidden: False
|
|
||||||
homebridge_hidden: true
|
|
||||||
icon: mdi:note-text
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
sensor.pi_hole_dns_unique_clients:
|
|
||||||
friendly_name: 'Pi-Hole Dns Unique Clients'
|
|
||||||
|
|
||||||
hidden: False
|
|
||||||
homebridge_hidden: True
|
|
||||||
icon: mdi:account-outline
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
sensor.printer:
|
sensor.printer:
|
||||||
|
|
|
@ -35,24 +35,17 @@ homeassistant:
|
||||||
sensor:
|
sensor:
|
||||||
- platform: pi_hole
|
- platform: pi_hole
|
||||||
host: 192.168.10.11
|
host: 192.168.10.11
|
||||||
|
location: admin
|
||||||
|
verify_ssl: false
|
||||||
monitored_conditions:
|
monitored_conditions:
|
||||||
- dns_queries_today
|
|
||||||
- ads_blocked_today
|
- ads_blocked_today
|
||||||
- ads_percentage_today
|
- ads_percentage_today
|
||||||
|
- dns_queries_today
|
||||||
|
- domains_being_blocked
|
||||||
|
- queries_cached
|
||||||
|
- queries_forwarded
|
||||||
- unique_clients
|
- unique_clients
|
||||||
|
- unique_domains
|
||||||
######Custom Version sensor
|
|
||||||
# - platform: command_line
|
|
||||||
# command: "pihole -v -p -c"
|
|
||||||
# name: 'pihole_version_current'
|
|
||||||
# value_template: '{{ value[28:] }}'
|
|
||||||
# scan_interval: 86400
|
|
||||||
#
|
|
||||||
# - platform: command_line
|
|
||||||
# command: "pihole -v -p -l"
|
|
||||||
# name: 'pihole_version_latest'
|
|
||||||
# value_template: '{{ value[27:] }}'
|
|
||||||
# scan_interval: 86400
|
|
||||||
|
|
||||||
- platform: template
|
- platform: template
|
||||||
sensors:
|
sensors:
|
||||||
|
@ -60,15 +53,6 @@ sensor:
|
||||||
friendly_name: 'Carlo-PiHole'
|
friendly_name: 'Carlo-PiHole'
|
||||||
value_template: "{{ 'Online' if is_state('device_tracker.carlopihole', 'home') else 'Offline' }}"
|
value_template: "{{ 'Online' if is_state('device_tracker.carlopihole', 'home') else 'Offline' }}"
|
||||||
|
|
||||||
# pi_hole_version:
|
|
||||||
# value_template: "{%- if states.sensor.pi_hole_version_current.state == states.sensor.pi_hole_version_latest.state -%}{{states.sensor.pi_hole_version_current.state}} {% else %}{{states.sensor.pi_hole_version_latest.state}} Available{% endif%}"
|
|
||||||
# icon_template: >-
|
|
||||||
# {% if states.sensor.pi_hole_version_current.state == states.sensor.pi_hole_version_latest.state %}
|
|
||||||
# mdi:checkbox-marked
|
|
||||||
# {% else %}
|
|
||||||
# mdi:checkbox-blank-outline
|
|
||||||
# {% endif %}
|
|
||||||
|
|
||||||
# Pi-Hole switch
|
# Pi-Hole switch
|
||||||
switch:
|
switch:
|
||||||
- platform: command_line
|
- platform: command_line
|
||||||
|
@ -93,7 +77,6 @@ group:
|
||||||
- switch.pihole_temp_disable
|
- switch.pihole_temp_disable
|
||||||
#-------------------------------------------
|
#-------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
automation:
|
automation:
|
||||||
- alias: PiHole Daily stats Tweet!
|
- alias: PiHole Daily stats Tweet!
|
||||||
trigger:
|
trigger:
|
||||||
|
|
Loading…
Reference in New Issue