Sync wit upstream

4f50cc60
parent 6af5432e
alias: Slack notification for office cabinet access
trigger:
- platform: state
entity_id: binary_sensor.office_cabinet
to: "off"
- platform: state
entity_id: binary_sensor.office_cabinet_door_motion
to: "on"
action:
service: notify.slack
data:
message: ':bellhop_bell: *Office cabinet accessed*'
target: '#home'
alias: Notify when APC not online
trigger:
platform: state
entity_id: sensor.ups_status
from: "ONLINE"
action:
- service: notify.jabber
data:
message: "Office APC has status \"{{ states( 'sensor.ups_status' ) }}\""
target: !secret jabber_recipient
- service: notify.slack
data:
message: ":exclamation: :battery: Office APC has status \"{{ states( 'sensor.ups_status' ) }}\""
target: '#home'
alias: Notify when APC online
trigger:
platform: state
entity_id: sensor.ups_status
to: "ONLINE"
action:
- service: notify.jabber
data:
message: 'Office APC is "ONLINE"'
target: !secret jabber_recipient
- service: notify.slack
data:
message: ':exclamation: :electric_plug: Office APC is "ONLINE"'
target: '#home'
alias: Turn kitchen nightlight on alias: Turn kitchen nightlight on AM
trigger: trigger:
- platform: state - platform: state
entity_id: switch.kitchen entity_id: switch.kitchen
...@@ -16,8 +16,6 @@ condition: ...@@ -16,8 +16,6 @@ condition:
- condition: state - condition: state
entity_id: sun.sun entity_id: sun.sun
state: 'below_horizon' state: 'below_horizon'
- condition: time
after: '00:15:00'
- condition: time - condition: time
before: '09:00:00' before: '09:00:00'
- condition: state - condition: state
......
alias: Turn kitchen nightlight on PM
trigger:
- platform: state
entity_id: switch.kitchen
- platform: state
entity_id: light.ceiling_fan_1
- platform: state
entity_id: light.ceiling_fan_2
- platform: state
entity_id: binary_sensor.kitchen
- platform: state
entity_id: binary_sensor.lr_motion_sensor_over_utility_closet
condition:
condition: and
conditions:
- condition: state
entity_id: sun.sun
state: 'below_horizon'
- condition: time
after: '21:30:00'
- condition: state
entity_id: light.ceiling_fan_1
state: 'off'
- condition: state
entity_id: light.ceiling_fan_2
state: 'off'
- condition: state
entity_id: switch.kitchen
state: 'off'
action:
service: switch.turn_on
entity_id: switch.kitchen_nightlight
...@@ -34,3 +34,11 @@ action: ...@@ -34,3 +34,11 @@ action:
- service: notify.jabber - service: notify.jabber
data: data:
message: 'MAYBE AN EARTHQUAKE?!? ALL ACCELEROMETERS ARE ACTIVE.' message: 'MAYBE AN EARTHQUAKE?!? ALL ACCELEROMETERS ARE ACTIVE.'
target: !secret jabber_recipient
- service: notify.slack
data:
message: 'MAYBE AN EARTHQUAKE?!? ALL ACCELEROMETERS ARE ACTIVE.'
target:
- '#alerts'
- '#general'
- '#home'
...@@ -3,6 +3,11 @@ trigger: ...@@ -3,6 +3,11 @@ trigger:
platform: state platform: state
entity_id: updater.updater entity_id: updater.updater
action: action:
service: notify.jabber - service: notify.jabber
data: data:
message: 'There is a new release of Home Assistant available.' message: 'There is a new release of Home Assistant available.'
target: !secret jabber_recipient
- service: notify.slack
data:
message: ':exclamation: There is a new release of Home Assistant available.'
target: '#home'
...@@ -16,7 +16,7 @@ homeassistant: ...@@ -16,7 +16,7 @@ homeassistant:
http: http:
api_password: !secret api_password api_password: !secret api_password
server_port: 8123 server_port: 8123
ssl_certificate: /home/pi/ssl/cert ssl_certificate: /home/pi/ssl/chain
ssl_key: /home/pi/ssl/key ssl_key: /home/pi/ssl/key
zone: zone:
...@@ -34,15 +34,31 @@ frontend: ...@@ -34,15 +34,31 @@ frontend:
# Set recorder options # Set recorder options
recorder: recorder:
# purge_days: 365 purge_days: 14
db_url: !secret mysql_recorder db_url: !secret mysql_recorder
# Also log states to InfluxDB
influxdb:
host: !secret influxdb_host
database: !secret influxdb_db
username: !secret influxdb_user
password: !secret influxdb_password
ssl: true
verify_ssl: true
# Enables support for tracking state changes over time. # Enables support for tracking state changes over time.
history: history:
# Discover some devices automatically # Discover some devices automatically
discovery: discovery:
# Logging settings
logger:
default: info # default logging level
logs:
homeassistant.components.device_tracker.asuswrt: error # suppress IPv6-related warnings; see https://github.com/home-assistant/home-assistant/issues/2814
homeassistant.components.sensor.rest: debug
# View all events in a logbook # View all events in a logbook
logbook: logbook:
...@@ -73,6 +89,12 @@ alarm_control_panel: !include alarm-control-panel.yaml ...@@ -73,6 +89,12 @@ alarm_control_panel: !include alarm-control-panel.yaml
wemo: !include wemo.yaml wemo: !include wemo.yaml
weblink: !include weblinks.yaml
panel_iframe: !include panels-iframe.yaml
apcupsd:
# Display # Display
group: !include groups.yaml group: !include groups.yaml
......
...@@ -131,3 +131,13 @@ sensor.pws_wind_kph: ...@@ -131,3 +131,13 @@ sensor.pws_wind_kph:
friendly_name: Wind Speed (kph) friendly_name: Wind Speed (kph)
sensor.pws_wind_mph: sensor.pws_wind_mph:
friendly_name: Wind Speed (mph) friendly_name: Wind Speed (mph)
sensor.time:
friendly_name: Time (PT)
sensor.pihole:
friendly_name: Ads Blocked
sensor.eth1_data_received_mean:
friendly_name: Received eth1
icon: mdi:server-network
sensor.eth1_data_sent_mean:
friendly_name: Sent eth1
icon: mdi:server-network
...@@ -27,15 +27,21 @@ sensor_view: ...@@ -27,15 +27,21 @@ sensor_view:
- sensor.speedtest_download - sensor.speedtest_download
- sensor.speedtest_upload - sensor.speedtest_upload
- sensor.fastcom_download - sensor.fastcom_download
- sensor.pihole_queries_today
- sun.sun - sun.sun
status_view: status_view:
name: Status name: Status
view: yes view: yes
icon: mdi:chip icon: mdi:chip
entities: entities:
- group.sensor_pi
- group.time_date - group.time_date
- group.sensor_pi
- group.sensor_apc
- group.sensor_battery_levels - group.sensor_battery_levels
- sensor.pihole
- sensor.pihole_percent_ads_today
- sensor.pihole_queries_today
- sensor.pihole_domains_blocked
weather_view: weather_view:
name: Weather name: Weather
view: yes view: yes
...@@ -156,40 +162,41 @@ presence: ...@@ -156,40 +162,41 @@ presence:
- device_tracker.cl_samsung_s5 - device_tracker.cl_samsung_s5
- device_tracker.cl_iphone_5 - device_tracker.cl_iphone_5
- device_tracker.green_keys - device_tracker.green_keys
time_date:
name: Time & Date
entities:
- sensor.date
- sensor.time
- sensor.time_utc
sensor_pi: sensor_pi:
name: Raspberry Pi name: Raspberry Pi
entities: entities:
- sensor.cpu
- sensor.cpu_use - sensor.cpu_use
- sensor.disk_use_ - sensor.disk_use_
- sensor.disk_use_varlog - sensor.disk_use_varlog
- sensor.ram_use - sensor.ram_use
- sensor.ram_free - sensor.ram_free
# - sensor.processor_use
- sensor.swap_use - sensor.swap_use
- sensor.swap_free
- sensor.last_boot - sensor.last_boot
- sensor.since_last_boot - sensor.since_last_boot
- sensor.received_eth0 - sensor.eth1_data_received_mean # Stats sensor to replace sensor.received_eth1
- sensor.sent_eth0 - sensor.eth1_data_sent_mean # Stats sensor to replace sensor.sent_eth1
# - sensor.packets_received_eth0 sensor_apc:
# - sensor.packets_sent_eth0 name: APC
- sensor.ipv4_address_eth0 entities:
- sensor.ipv6_address_eth0 - sensor.ups_status
- sensor.received_eth1 - sensor.ups_load
- sensor.sent_eth1 - sensor.ups_time_left
# - sensor.packets_received_eth1 - sensor.ups_time_on_battery
# - sensor.packets_sent_eth1 - sensor.ups_last_transfer
- sensor.ipv4_address_eth1 - sensor.ups_transfer_count
- sensor.ipv6_address_eth1 - sensor.ups_battery
time_date: - sensor.ups_battery_nominal_voltage
name: Time & Date - sensor.ups_input_voltage
entities: - sensor.ups_nominal_input_voltage
- sensor.time - sensor.ups_nominal_output_power
- sensor.date - sensor.ups_output_voltage
- sensor.date_time
- sensor.time_date
- sensor.time_utc
- sensor.beat
sensor_battery_levels: sensor_battery_levels:
name: Sensor Battery Levels name: Sensor Battery Levels
entities: entities:
...@@ -240,3 +247,4 @@ wunderground: ...@@ -240,3 +247,4 @@ wunderground:
- sensor.pws_visibility_mi - sensor.pws_visibility_mi
- sensor.pws_uv - sensor.pws_uv
- sensor.pws_solarradiation - sensor.pws_solarradiation
- weblink.forecast
brightness_da: brightness_da:
name: Brightness name: Brightness
initial: 0 initial: 1
min: 1 min: 1
max: 255 max: 255
step: 1 step: 1
brightness_lr: brightness_lr:
name: Brightness name: Brightness
initial: 0 initial: 1
min: 1 min: 1
max: 255 max: 255
step: 1 step: 1
brightness_master_bath: brightness_master_bath:
name: Brightness name: Brightness
initial: 0 initial: 1
min: 1 min: 1
max: 255 max: 255
step: 1 step: 1
...@@ -3,4 +3,8 @@ ...@@ -3,4 +3,8 @@
sender: !secret jabber_sender sender: !secret jabber_sender
password: !secret jabber_password password: !secret jabber_password
recipient: !secret jabber_recipient recipient: !secret jabber_recipient
tls: True tls: true
- name: slack
platform: slack
api_key: !secret slack_api_key
default_channel: '#home'
pihole:
title: 'Pi Hole'
icon: 'mdi:apple-safari'
url: !secret pi_hole_admin
monit:
title: 'Monit'
icon: 'mdi:autorenew'
url: !secret monit_admin
...@@ -8,3 +8,5 @@ entities: ...@@ -8,3 +8,5 @@ entities:
color_temp: 450 color_temp: 450
light.master_bath_3: light.master_bath_3:
state: off state: off
automation.brightness_master_bath_sync:
state: off
...@@ -11,6 +11,15 @@ gravatar_chris: ...@@ -11,6 +11,15 @@ gravatar_chris:
gravatar_chris_2: gravatar_chris_2:
wunderground_key: wunderground_key:
wunderground_pws_id: wunderground_pws_id:
wunderground_forecast_url:
logentries_token: logentries_token:
mysql_recorder: mysql_recorder:
wemo_ip: wemo_kitchen_ip:
slack_api_key:
influxdb_host:
influxdb_user:
influxdb_password:
influxdb_db:
pi_hole_host:
pi_hole_admin:
monit_admin:
platform: apcupsd
resources:
- bcharge
- linev
- loadpct
- nominv
- nombattv
- nompower
- numxfers
- status
- timeleft
- tonbatt
- lastxfer
platform: fastdotcom platform: fastdotcom
minute: minute:
- 0 - 4
- 15 - 19
- 30 - 34
- 45 - 49
platform: pi_hole
host: !secret pi_hole_host
ssl: true
verify: true
platform: speedtest platform: speedtest
minute: minute:
- 0 - 2
- 15 - 17
- 30 - 32
- 45 - 47
monitored_conditions: monitored_conditions:
- ping - ping
- download - download
......
platform: statistics
name: eth1 Data Received
entity_id: sensor.received_eth1
platform: statistics
name: eth1 Data Sent
entity_id: sensor.sent_eth1
...@@ -5,9 +5,12 @@ resources: ...@@ -5,9 +5,12 @@ resources:
- type: disk_use_percent - type: disk_use_percent
arg: /var/log arg: /var/log
- type: memory_use_percent - type: memory_use_percent
- type: memory_use
- type: memory_free - type: memory_free
- type: processor_use - type: processor_use
- type: swap_use_percent - type: swap_use_percent
- type: swap_use
- type: swap_free
- type: last_boot - type: last_boot
- type: since_last_boot - type: since_last_boot
- type: network_in - type: network_in
......
platform: template
sensors:
pihole_queries_today:
value_template: '{{ states.sensor.pihole.attributes.queries_today | round(0) }}'
friendly_name: DNS Queries Today
entity_id: sensor.pihole
pihole_domains_blocked:
value_template: '{{ states.sensor.pihole.attributes.domains_blocked | round(0) }}'
friendly_name: Domains Blocked
entity_id: sensor.pihole
pihole_percent_ads_today:
value_template: '{{ states.sensor.pihole.attributes.percentage_today | round(1) }}'
friendly_name: Percent Ads Today
unit_of_measurement: '%'
entity_id: sensor.pihole
entities:
- name: Forecast
url: !secret wunderground_forecast_url
icon: mdi:web
static: static:
- !secret wemo_ip - !secret wemo_kitchen_ip
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment