Navigation Menu

Skip to content

Commit

Permalink
Closes #850 - PiHole integration Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ccostan committed Aug 12, 2020
1 parent 91f5496 commit bd030c9
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 40 deletions.
2 changes: 1 addition & 1 deletion config/.HA_VERSION
@@ -1 +1 @@
0.113.3
0.114.0
2 changes: 1 addition & 1 deletion config/automation/Timed_Triggers/sunset_turn_on.yaml
Expand Up @@ -10,7 +10,7 @@
trigger:
- platform: sun
event: sunset
offset: "-00:20:00"
offset: "-00:15:00"

condition:
- condition: template
Expand Down
38 changes: 0 additions & 38 deletions config/packages/pihole.yaml
Expand Up @@ -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!
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit bd030c9

Please sign in to comment.