This commit is contained in:
ccostan 2019-03-14 13:19:33 -04:00
parent 4f0fdaaf9b
commit d900b31883
2 changed files with 7 additions and 68 deletions

View File

@ -60,16 +60,6 @@ sensor.carloxsmax_battery_state:
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:
friendly_name: 'Chromecast Audio 1'
@ -436,40 +426,6 @@ sensor.nodemcu3:
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:

View File

@ -35,24 +35,17 @@ homeassistant:
sensor:
- platform: pi_hole
host: 192.168.10.11
location: admin
verify_ssl: false
monitored_conditions:
- dns_queries_today
- ads_blocked_today
- ads_percentage_today
- dns_queries_today
- domains_being_blocked
- queries_cached
- queries_forwarded
- unique_clients
######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
- unique_domains
- platform: template
sensors:
@ -60,15 +53,6 @@ sensor:
friendly_name: 'Carlo-PiHole'
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
switch:
- platform: command_line
@ -93,7 +77,6 @@ group:
- switch.pihole_temp_disable
#-------------------------------------------
automation:
- alias: PiHole Daily stats Tweet!
trigger: