diff --git a/README.md b/README.md index 629e7e3d..49a4db70 100755 --- a/README.md +++ b/README.md @@ -42,6 +42,8 @@ SSL via [SSLS](https://SSLS.com) - 5 Bucks A Year! - Keeps me safe! * [Aeon Labs AEDSB09104ZWUS Aeotec Z-Wave Smart Energy Monitor Meter](http://amzn.to/2l5wEDo) to measure energy usage in the home. * [SleepNumber Bed i8](http://amzn.to/2kxdXXI) - Has SleepIQ to track occupancy and sleep habits. Tied into HA. * [MX8 Zodiac Pool Robot](http://amzn.to/2nAGvPf) - Not YET hooked up HA, but working on it. +* [Pi Zero](http://amzn.to/2ougZQ3) with [Wireless Nub](http://amzn.to/2q38rg4) running Pi-Hole and smacking down internet ads left and right! +* [NodeMCU Development Boards](http://amzn.to/2ou0NON) hooked into the alarm system wires for DIY alarm system. Lots of my gear comes from [BetaBound](https://goo.gl/0vxT8A) for Beta Testing and reviews. diff --git a/packages/pihole.yaml b/packages/pihole.yaml index f1975454..ff7c5f0a 100755 --- a/packages/pihole.yaml +++ b/packages/pihole.yaml @@ -1,6 +1,25 @@ #------------------------------------------- # PiHole ad Blocking Related Packages #------------------------------------------- +homeassistant: + customize: + + sensor.pihole_ads_percentage_today: + friendly_name: Percentage of Ad Traffic Blocked + unit_of_measurement: '%' + icon: mdi:ticket-percent + + sensor.pihole_domains_being_blocked: + friendly_name: Total Domains Blocking + icon: mdi:do-not-disturb + + sensor.pihole_ads_blocked_today: + friendly_name: Ads Blocked Today + icon: mdi:do-not-disturb + + sensor.pihole_dns_queries_today: + friendly_name: DNS Queries Today + icon: mdi:note-text #------------------------------------------- sensor: @@ -19,9 +38,11 @@ sensor: #------------------------------------------- group: - Pi-Hole: + pihole: entities: - sensor.carlopihole - - sensor.dns_queries_today - - sensor.ads_blocked_today - - sensor.ads_percentage_today + - sensor.pihole_dns_queries_today + - sensor.pihole_ads_blocked_today + - sensor.pihole_ads_percentage_today + +#------------------------------------------- diff --git a/script/voice_notify.yaml b/script/voice_notify.yaml index c1c33e28..8a76f34a 100755 --- a/script/voice_notify.yaml +++ b/script/voice_notify.yaml @@ -140,6 +140,14 @@ voice_notify: {% endif -%} {%- endmacro -%} + {% macro pihole() %} + {% if states.sensor.pihole_ads_blocked_today.state|int > 200 -%} + Our internet blocking system has blocked {{states.sensor.pihole_ads_blocked_today.state}} ads today! + happy Internet surfing! + {% endif -%} + + {%- endmacro -%} + {{ personarriving }} {{ NestStatus}} @@ -168,6 +176,7 @@ voice_notify: {{ value1 }} {{iss()}} + {{pihole()}} cache: true