#12 - Added some Voice notifcations for PiHole ; Added to README; added in sensors.

This commit is contained in:
CCOSTAN 2017-04-26 02:05:04 +00:00
parent 1aacdca4d5
commit 0df27000e0
3 changed files with 36 additions and 4 deletions

View File

@ -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. * [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. * [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. * [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. Lots of my gear comes from [BetaBound](https://goo.gl/0vxT8A) for Beta Testing and reviews.

View File

@ -1,6 +1,25 @@
#------------------------------------------- #-------------------------------------------
# PiHole ad Blocking Related Packages # 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: sensor:
@ -19,9 +38,11 @@ sensor:
#------------------------------------------- #-------------------------------------------
group: group:
Pi-Hole: pihole:
entities: entities:
- sensor.carlopihole - sensor.carlopihole
- sensor.dns_queries_today - sensor.pihole_dns_queries_today
- sensor.ads_blocked_today - sensor.pihole_ads_blocked_today
- sensor.ads_percentage_today - sensor.pihole_ads_percentage_today
#-------------------------------------------

View File

@ -140,6 +140,14 @@ voice_notify:
{% endif -%} {% endif -%}
{%- endmacro -%} {%- 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 }} {{ personarriving }}
{{ NestStatus}} {{ NestStatus}}
@ -168,6 +176,7 @@ voice_notify:
{{ value1 }} {{ value1 }}
{{iss()}} {{iss()}}
{{pihole()}}
</speak> </speak>
cache: true cache: true