Clean up!

This commit is contained in:
Mahasri Kalavala
2020-03-02 18:12:53 -05:00
parent af58f3eea3
commit 531fa23196
21 changed files with 151 additions and 639 deletions

View File

@@ -1,77 +1,77 @@
# # ###############################################################################
# # # @author : Mahasri Kalavala
# # # @date : 11/27/2017
# # # @package : APC UPS Backup
# # # @description : UPS Backup
# # ###############################################################################
# apcupsd:
# host: 127.0.0.1
# port: 3551
# sensor:
# - platform: apcupsd
# # name: Network Backup UPS
# resources:
# - bcharge
# - linev
# - loadpct
# - nominv
# - numxfers
# - status
# - timeleft
# - tonbatt
# ###############################################################################
# # @author : Mahasri Kalavala
# # @date : 11/27/2017
# # @package : APC UPS Backup
# # @description : UPS Backup
# # _ _ _
# # /\ | | | | (_)
# # / \ _ _| |_ ___ _ __ ___ __ _| |_ _ ___ _ __ ___
# # / /\ \| | | | __/ _ \| '_ ` _ \ / _` | __| |/ _ \| '_ \/ __|
# # / ____ \ |_| | || (_) | | | | | | (_| | |_| | (_) | | | \__ \
# # /_/ \_\__,_|\__\___/|_| |_| |_|\__,_|\__|_|\___/|_| |_|___/
# #
# ###############################################################################
apcupsd:
host: 127.0.0.1
port: 3551
sensor:
- platform: apcupsd
# name: Network Backup UPS
resources:
- bcharge
- linev
- loadpct
- nominv
- numxfers
- status
- timeleft
- tonbatt
# automation:
# - alias: UPS State Change
# initial_state: true
# trigger:
# - platform: state
# entity_id: sensor.ups_status
# action:
# - service: script.notify_me
# data_template:
# message: "UPS Status changed from {{ trigger.from_state.state }}
# to {{ trigger.to_state.state }}
# at {{ as_timestamp(now()) | timestamp_custom('%I:%M:%S %p, %B %d,%Y', true) }}."
###############################################################################
# _ _ _
# /\ | | | | (_)
# / \ _ _| |_ ___ _ __ ___ __ _| |_ _ ___ _ __ ___
# / /\ \| | | | __/ _ \| '_ ` _ \ / _` | __| |/ _ \| '_ \/ __|
# / ____ \ |_| | || (_) | | | | | | (_| | |_| | (_) | | | \__ \
# /_/ \_\__,_|\__\___/|_| |_| |_|\__,_|\__|_|\___/|_| |_|___/
#
###############################################################################
# # # Power Failure Notification
# # ###############################################################################
# - alias: Power Failure
# initial_state: true
# trigger:
# - platform: state
# entity_id: sensor.ups_status
# from: "ONLINE"
# to: "ONBATT"
# action:
# - service: script.notify_me
# data_template:
# message:
# Power failure at {{ as_timestamp(now()) | timestamp_custom('%I:%M:%S %p %B-%d,%Y', true) }}.
# Battery can last for {{ states('sensor.ups_time_left') }} minutes.
automation:
- alias: UPS State Change
initial_state: true
trigger:
- platform: state
entity_id: sensor.ups_status
action:
- service: script.notify_me
data_template:
message: "UPS Status changed from {{ trigger.from_state.state }}
to {{ trigger.to_state.state }}
at {{ as_timestamp(now()) | timestamp_custom('%I:%M:%S %p, %B %d,%Y', true) }}."
# # Power Failure Notification
# ###############################################################################
- alias: Power Failure
initial_state: true
trigger:
- platform: state
entity_id: sensor.ups_status
from: "ONLINE"
to: "ONBATT"
action:
- service: script.notify_me
data_template:
message:
Power failure at {{ as_timestamp(now()) | timestamp_custom('%I:%M:%S %p %B-%d,%Y', true) }}.
Battery can last for {{ states('sensor.ups_time_left') }} minutes.
# # Power Restored Notification
# ###############################################################################
- alias: Power Restored
initial_state: true
trigger:
- platform: state
entity_id: sensor.ups_status
from: "ONBATT"
to: "ONLINE"
action:
- service: script.notify_me
data_template:
message:
Power restored at {{ as_timestamp(now()) | timestamp_custom('%I:%M:%S %p %B-%d,%Y', true) }}.
Ran on battery for {{ "%0.2f" % (states('sensor.ups_time_on_battery') | int / 60 |float) }} minutes.
# # # Power Restored Notification
# # ###############################################################################
# - alias: Power Restored
# initial_state: true
# trigger:
# - platform: state
# entity_id: sensor.ups_status
# from: "ONBATT"
# to: "ONLINE"
# action:
# - service: script.notify_me
# data_template:
# message:
# Power restored at {{ as_timestamp(now()) | timestamp_custom('%I:%M:%S %p %B-%d,%Y', true) }}.
# Ran on battery for {{ "%0.2f" % (states('sensor.ups_time_on_battery') | int / 60 |float) }} minutes.

View File

@@ -442,7 +442,6 @@ automation:
# - sensor.illumination_158d00016db6d2
# - sensor.illumination_158d0001a25041
# - sensor.illumination_158d0001a662fe
# - zwave.aeotec_water_sensor
# - zwave.audio_detector
# - zwave.back_door_sensor
# - zwave.basement_door_sensor

View File

@@ -1,8 +0,0 @@
homeassistant:
sensor:
- platform: mqtt
name: "Master Bed Sensor"
state_topic: "/master_bed/master_bed/WeightChanA"
value_template: "{{ value }}"
unit_of_measurement: load

View File

@@ -142,9 +142,9 @@ automation:
- binary_sensor.single_car_garage_door_tilt_sensor_sensor
condition:
- condition: template
value_template: "{% if trigger.from_state %} True {% else %} False {% endif %}"
value_template: "{{ trigger.from_state.state not in ['unavailable', 'unknown'] }}"
- condition: template
value_template: "{{ trigger.to_state.state != 'unknown' }}"
value_template: "{{ trigger.to_state.state not in ['unavailable', 'unknown'] }}"
- condition: template
value_template: "{{ states('input_boolean.garage_door_notifications') == 'on' }}"
action:
@@ -164,7 +164,7 @@ automation:
{% set doors = "" %}
{% if states('binary_sensor.two_car_garage_door_tilt_sensor_sensor') == "on" and
states('binary_sensor.single_car_garage_door_tilt_sensor_sensor') == "on" %}
{% set doors = "Atention! Both Garage Doors are OPEN" %}
{% set doors = "Attention! Both Garage Doors are OPEN" %}
{% elif states('binary_sensor.two_car_garage_door_tilt_sensor_sensor') == "off" and
states('binary_sensor.single_car_garage_door_tilt_sensor_sensor') == "off" %}
{% set doors = "Both Garage Doors are now CLOSED" %}

View File

@@ -66,28 +66,6 @@
# data_template:
# message: "Emergency mode is now deactivated!"
# # Water Leak detected - initiate the emergency process
# ###############################################################################
# - alias: Water Leak Detected
# initial_state: true
# trigger:
# - platform: state
# entity_id: sensor.aeotec_water_sensor_flood
# from: '0'
# to: '2'
# action:
# - service: input_boolean.turn_on
# entity_id: input_boolean.emergency_mode
# - service: script.emergency_all_lights_switches_on
# - service: script.notify_me
# data_template:
# message: "EMERGENCY! Water Leak Detected in the Basement!"
# - service: script.emergency_script
# data:
# volume_level: 25
# alarm_code: 2
# message: "ALERT! Water Leak Detected in the Basement!"
# # # Carbon Monoxide Detected in the house
# # ###############################################################################
# # - alias: CO Detected

View File

@@ -1,36 +0,0 @@
# # ##############################################################################
# # @author : Mahasri Kalavala
# # @date : 04/15/2017
# # @package : Random Chuck Norris Facts
# # @description : Daily dose of Chuck Norris.
# # It is intentionally set to query once a day.
# # Know your limits, too much of Chuck Norris is not good!
# #
# # These are facts, and not jokes. DO NOT JOKE ABOUT CHUCK NORRIS!
# # ##############################################################################
# homeassistant:
# customize:
# sensor.fact_of_the_day:
# hidden: true
# sensor:
# - platform: rest
# name: fact_of_the_day
# resource: http://api.icndb.com/jokes/random?firstName=Chuck&lastName=Norris&limitTo=[nerdy]
# value_template: '{{ value_json.value.joke }}'
# scan_interval: 86400
# automation:
# - alias: Chuck Norris Fact At Startup
# initial_state: true
# trigger:
# - platform: homeassistant
# event: start
# action:
# - delay:
# seconds: 15
# - service: persistent_notification.create
# data:
# title: 'Chuck Norris fact:'
# message: '{{ states('sensor.fact_of_the_day') }}'

View File

@@ -1,34 +0,0 @@
# sensor:
# - platform: gearbest
# currency: USD
# items:
# - url: https://www.gearbest.com/alarm-systems/pp_659226.html
# name: Xiaomi Aqara Human Body Sensor
# - url: https://www.gearbest.com/access-control/pp_626702.html
# name: Xiaomi Aqara Temperature Humidity Sensor
# - url: https://www.gearbest.com/living-appliances/pp_364494.html
# name: xiaomi cube
# automation:
# - alias: Alert Low Price of Cube
# initial_state: true
# trigger:
# - platform: template
# value_template: '{{ states.sensor.xiaomi_cube.state | int < 10 }}'
# - platform: template
# value_template: '{{ states.sensor.xiaomi_aqara_human_body_sensor.state | int < 10 }}'
# - platform: template
# value_template: '{{ states.sensor.xiaomi_aqara_temperature_humidity_sensor.state | int < 10 }}'
# action:
# - service: script.notify_me
# data_template:
# message: >
# {% if states.sensor.xiaomi_aqara_human_body_sensor.state | int < 10 %}
# Xiaomi Aqara Motion Sensor is on sale, it is less than $10.... care to buy?
# {% endif %}
# {% if states.sensor.xiaomi_cube.state | int < 11 %}
# Xiaomi Cube is on sale, it is less than $11... buy one?
# {% endif %}
# {% if states.sensor.xiaomi_aqara_temperature_humidity_sensor.state | int < 7 %}
# Xiaomi Temp & Humidity Sensor is on sale for less than $7. Time to buy!
# {% endif %}

View File

@@ -1,25 +0,0 @@
###############################################################################
# _ _ _
# /\ | | | | (_)
# / \ _ _| |_ ___ _ __ ___ __ _| |_ _ ___ _ __ ___
# / /\ \| | | | __/ _ \| '_ ` _ \ / _` | __| |/ _ \| '_ \/ __|
# / ____ \ |_| | || (_) | | | | | | (_| | |_| | (_) | | | \__ \
# /_/ \_\__,_|\__\___/|_| |_| |_|\__,_|\__|_|\___/|_| |_|___/
#
###############################################################################
# automation:
# - alias: 'Start HomeKit'
# trigger:
# - platform: event
# event_type: zwave.network_ready
# action:
# - service: homekit.start
# - alias: 'Start HomeKit on HA Restart'
# trigger:
# - platform: homeassistant
# event: start
# action:
# - delay: 00:05 # Waits 5 minutes
# - service: homekit.start

View File

@@ -1,56 +0,0 @@
# homeassistant:
# customize:
# group.family:
# order: 1
# group.ios:
# order: 98
# device_tracker.ipad:
# hidden: true
# device_tracker.suresh:
# hidden: true
# device_tracker.mallika:
# hidden: true
# device_tracker.srinika:
# hidden: true
# device_tracker.hasika:
# hidden: true
# # Battery Levels
# sensor.suresh_battery_level:
# friendly_name: Suresh's Battery Level
# hidden: true
# sensor.mallika_battery_level:
# friendly_name: Mallika's Battery Level
# hidden: true
# sensor.srinika_battery_level:
# friendly_name: Srinika's Battery Level
# hidden: true
# sensor.hasika_battery_level:
# friendly_name: Hasika's Battery Level
# hidden: true
# sensor.ipad_battery_level:
# friendly_name: iPad's Battery State
# hidden: true
# sensor.iphone__battery_level:
# friendly_name: iPhone
# hidden: true
# sensor.suresh_battery_state:
# friendly_name: Suresh's Battery State
# hidden: true
# sensor.mallika_battery_state:
# friendly_name: Mallika's Battery State
# hidden: true
# sensor.srinika_battery_state:
# friendly_name: Srinika's Battery State
# hidden: true
# sensor.hasika_battery_state:
# friendly_name: Hasika's Battery State
# hidden: true
# sensor.ipad_battery_state:
# friendly_name: iPad's Battery State
# hidden: true
# sensor.iphone__battery_state:
# friendly_name: iphone
# hidden: true

View File

@@ -105,24 +105,6 @@ homeassistant:
input_boolean.animate_upstairs_lights:
icon: mdi:flash-outline
friendly_name: Animate Master Bedroom Lights
# Set assumed_state to false to show up as switch instead of two lightning symbols
switch.rf_switch_one:
friendly_name: Basement Light
assumed_state: false
switch.rf_switch_two:
friendly_name: Switch Two
assumed_state: false
switch.rf_switch_three:
friendly_name: Switch Three
assumed_state: false
switch.rf_switch_four:
friendly_name: Front Room Light
assumed_state: false
switch.rf_switch_five:
friendly_name: TV Switch
assumed_state: false
hue:
bridges:
- host: !secret philips_hue_ipaddress
@@ -151,43 +133,6 @@ tplink:
- host: !secret tplink_kids_bed_accent_light
#name: Kids Bed Accent Light
switch:
# RF Switches
# - platform: mqtt
# name: RF Switch One
# command_topic: '/home/rfswitches/switch_one'
# payload_on: "on"
# payload_off: "off"
# retain: true
# - platform: mqtt
# name: RF Switch Two
# command_topic: '/home/rfswitches/switch_two'
# payload_on: "on"
# payload_off: "off"
# retain: true
# - platform: mqtt
# name: RF Switch Three
# command_topic: '/home/rfswitches/switch_three'
# payload_on: "on"
# payload_off: "off"
# retain: true
# - platform: mqtt
# name: RF Switch Four
# command_topic: '/home/rfswitches/switch_four'
# payload_on: "on"
# payload_off: "off"
# retain: true
# - platform: mqtt
# name: RF Switch Five
# command_topic: '/home/rfswitches/switch_five'
# payload_on: "on"
# payload_off: "off"
# retain: true
wemo:
discovery: false
static:
@@ -235,21 +180,6 @@ script:
brightness: 255
rgb_color: [0, 255, 0]
# start_colorloop:
# sequence:
# - service: light.lifx_effect_colorloop
# data:
# entity_id: light.dinette
# brightness: 255
# period: 2
# spread: 360
# change: 35
# stop_colorloop:
# sequence:
# - service: light.lifx_effect_stop
# data:
# entity_id: light.dinette
###############################################################################
# _ _ _
# /\ | | | | (_)

View File

@@ -97,6 +97,8 @@ automation:
value_template: "{{ states('sun.sun') == 'below_horizon' }}"
- service: homeassistant.turn_on
entity_id: switch.zwave_smart_switch_switch
- service: switch.turn_on
entity_id: switch.front_room
# Front Room:
# Timer Elapsed - Turn OFF lights
@@ -112,8 +114,11 @@ automation:
- condition: template
value_template: "{{ states('input_boolean.working_in_office_room') == 'off' }}"
action:
- service: switch.turn_off
entity_id: switch.front_room
- service: homeassistant.turn_off
entity_id: switch.rf_switch_four
entity_id: switch.zwave_smart_switch_switch
# Kitchen:
# Motion Detected - Turn ON the light and extend timer
###############################################################################

View File

@@ -137,12 +137,6 @@ script:
{% else %}
true
{% endif %}
# - service: sonos.snapshot
# data_template:
# entity_id: media_player.living_room, media_player.upstairs
# - service: sonos.unjoin
# data_template:
# entity_id: media_player.living_room, media_player.upstairs
- service: media_player.volume_set
entity_id: media_player.living_room, media_player.upstairs
data_template:
@@ -187,12 +181,6 @@ script:
{% set msg = msg + " " + getEndGreeting() %}
{% set msg = msg + " </speak>" %}
{{ msg }}
# - delay: "{{ delay|default('00:00:00') }}"
# - wait_template: "{{ is_state('media_player.living_room', 'playing') }}"
# timeout: "00:00:05"
# - service: sonos.restore
# data_template:
# entity_id: media_player.living_room, media_player.upstairs
###############################################################################
# Greeting

View File

@@ -13,19 +13,16 @@ input_boolean:
input_number:
tts_volume_level_morning:
name: Morning TTS Volume
# initial: 0.3
min: 0
max: 1
step: 0.1
tts_volume_level_afternoon:
name: Afternoon TTS Volume
# initial: 0.5
min: 0
max: 1
step: 0.1
tts_volume_level_evening:
name: Evening TTS Volume
# initial: 0.3
min: 0
max: 1
step: 0.1

View File

@@ -116,21 +116,6 @@ weather:
- platform: darksky
api_key: !secret darksky_api_key
# openuv:
# api_key: !secret openuv_apikey
# iqvia:
# zip_code: !secret zip_code
# monitored_conditions:
# - allergy_average_forecasted
# - allergy_index_today
# - allergy_index_tomorrow
# - asthma_average_forecasted
# - asthma_index_today
# - asthma_index_tomorrow
# - disease_average_forecasted
# - disease_index_today
sensor:
- platform: darksky
api_key: !secret darksky_api_key
@@ -344,12 +329,6 @@ automation:
{%- elif curState == "sleet" %}
input_boolean.sleet_alert
{%- endif %}
# - alias: Update OpenUV every hour (24 of 50 calls per day)
# trigger:
# platform: time_pattern
# minutes: "/60"
# action:
# service: openuv.update_data
# Weather sensors - TBD, too lazy to create them
#

View File

@@ -6,12 +6,11 @@
###############################################################################
input_label:
aeotec_water_sensor:
audio_detector:
back_door_sensor:
basement_door_sensor:
downstairs_multi_sensor:
front_door_sensor:
zwave_front_door_sensor:
front_room_multi_sensor:
garage_door_sensor:
guest_bedroom_multi_sensor:

View File

@@ -11,9 +11,6 @@
homeassistant:
customize:
# ZWave Binary Sensors
binary_sensor.aeotec_water_sensor_sensor:
friendly_name: Aeotec Water Sensor
## <<: *not_exposed
binary_sensor.audio_detector_sensor:
friendly_name: Audio Detector Sensor
## <<: *not_exposed
@@ -58,51 +55,6 @@ homeassistant:
## <<: *not_exposed
# ZWave Sensors
sensor.aeotec_water_sensor_alarm_level:
friendly_name: Aeotec Water Sensor Alarm Level
# <<: *not_exposed
sensor.aeotec_water_sensor_alarm_level_2:
friendly_name: Aeotec Water Sensor Alarm Level
# <<: *not_exposed
sensor.aeotec_water_sensor_alarm_level_3:
friendly_name: Aeotec Water Sensor Alarm Level
# <<: *not_exposed
sensor.aeotec_water_sensor_alarm_type:
friendly_name: Aeotec Water Sensor Alarm Type
# <<: *not_exposed
sensor.aeotec_water_sensor_alarm_type_2:
friendly_name: Aeotec Water Sensor Alarm Type
# <<: *not_exposed
sensor.aeotec_water_sensor_alarm_type_3:
friendly_name: Aeotec Water Sensor Alarm Type
# <<: *not_exposed
sensor.aeotec_water_sensor_burglar:
friendly_name: Aeotec Water Sensor Burglar
# <<: *not_exposed
sensor.aeotec_water_sensor_flood:
friendly_name: Aeotec Water Sensor Flood
# <<: *not_exposed
sensor.aeotec_water_sensor_flood_2:
friendly_name: Aeotec Water Sensor Flood
# <<: *not_exposed
sensor.aeotec_water_sensor_flood_3:
friendly_name: Aeotec Water Sensor Flood
# <<: *not_exposed
sensor.aeotec_water_sensor_heat:
friendly_name: Aeotec Water Sensor Heat
# <<: *not_exposed
sensor.aeotec_water_sensor_sourcenodeid:
friendly_name: Aeotec Water Sensor SourceNodeId
# <<: *not_exposed
sensor.aeotec_water_sensor_sourcenodeid_2:
friendly_name: Aeotec Water Sensor SourceNodeId
# <<: *not_exposed
sensor.aeotec_water_sensor_sourcenodeid_3:
friendly_name: Aeotec Water Sensor SourceNodeId
# <<: *not_exposed
sensor.aeotec_water_sensor_temperature:
friendly_name: Aeotec Water Sensor Temperature
# <<: *not_exposed
sensor.audio_detector_alarm_level:
friendly_name: Audio Detector Alarm Level
# <<: *not_exposed