Closes #850 - PiHole integration Updates

This commit is contained in:
ccostan 2020-08-12 13:02:52 -04:00
parent 91f549657e
commit bd030c937f
5 changed files with 2 additions and 40 deletions

View File

@ -1 +1 @@
0.113.3
0.114.0

View File

@ -10,7 +10,7 @@
trigger:
- platform: sun
event: sunset
offset: "-00:20:00"
offset: "-00:15:00"
condition:
- condition: template

View File

@ -5,44 +5,6 @@
# https://www.vcloudinfo.com/2019/03/revisiting-the-pi-on-pi-day-with-home-assistant.html
# YouTube Video - https://youtu.be/woA88DFlH5c
#-------------------------------------------
pi_hole:
host: 192.168.10.11:80
location: admin
ssl: false
verify_ssl: false
sensor:
# - platform: pi_hole
# host: 192.168.10.11:80
# location: admin
# ssl: false
# verify_ssl: false
# monitored_conditions:
# - ads_blocked_today
# - ads_percentage_today
# - dns_queries_today
# - domains_being_blocked
# - queries_cached
# - queries_forwarded
# - unique_clients
# - unique_domains
- platform: template
sensors:
carlopihole:
friendly_name: 'Carlo-PiHole'
entity_id: []
value_template: "{{ 'Online' if is_state('device_tracker.carlopihole', 'home') else 'Offline' }}"
# Pi-Hole switch
switch:
- platform: command_line
switches:
pihole_temp_disable:
command_on: "curl -X GET 'http://192.168.10.11/admin/api.php?enable&auth='"
command_off: "curl -X GET 'http://192.168.10.11/admin/api.php?disable=3600&auth='"
# command_state: "curl -X GET 'http://192.168.10.11/admin/api.php?status'| grep enabled"
# value_template: "{{ value_json.status == 'enabled' }}
automation:
- alias: PiHole Daily stats Tweet!

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 188 KiB

After

Width:  |  Height:  |  Size: 199 KiB