Several updates...major - started migrating off smartthings to direct zwave.

This commit is contained in:
Jeffrey Stone 2019-03-08 21:52:37 -05:00
parent 4769a74a86
commit 9b47902ee4
24 changed files with 249 additions and 298 deletions

View File

@ -1,3 +1,65 @@
- id: washer_running
alias: Washer Running
trigger:
- platform: numeric_state
entity_id: sensor.aeotec_dsc06106_smart_energy_switch_power
above: 100
action:
- service: script.washer_running
- id: washer_complete
alias: Washer Complete
trigger:
- platform: numeric_state
entity_id: sensor.aeotec_dsc06106_smart_energy_switch_power
below: 5
condition:
- condition: state
entity_id: sensor.washer_status
state: 'running'
action:
- service: script.washer_complete
- id: washer_emptied
alias: Washer Emptied
trigger:
- platform: state
entity_id: binary_sensor.ecolink_door_window_sensor_sensor
from: 'off'
to: 'on'
action:
- service: script.washer_idle
# - id: washer_notification
# alias: Washer Notification
# trigger:
# - platform: state
# entity_id: sensor.washer_status
# from: "running"
# to: "idle"
# condition:
# - condition: state
# entity_id: sensor.family_status
# state: home
# - platform: state
# entity_id: input_boolean.washer_notification
# to: 'on'
# action:
# - service: homeassistant.turn_on
# entity_id: script.washer_finished_notification
- id: turn_of_disney
alias: Turn Off Disney
trigger:
- platform: state
entity_id: media_player.hass_speaker
from: 'playing'
to: idle
action:
- service: input_boolean.turn_off
entity_id: input_boolean.tiki_room_audio
- id: backup_hass - id: backup_hass
alias: Backup Hass alias: Backup Hass
trigger: trigger:
@ -49,14 +111,17 @@
- id: hvac_cool_on - id: hvac_cool_on
alias: hvac cool on alias: hvac cool on
trigger: trigger:
- above: 76 - above: 78
entity_id: climate.first_floor entity_id: climate.first_floor
platform: numeric_state platform: numeric_state
value_template: '{{ state.attributes.termperature }}' value_template: '{{ states.climate.first_floor.attributes.current_temperature }}'
condition: condition:
- above: 83 - above: 83
condition: numeric_state condition: numeric_state
entity_id: sensor.dark_sky_apparent_temperature entity_id: sensor.dark_sky_apparent_temperature
- condition: state
entity_id: input_boolean.vacation_mode
state: 'off'
action: action:
- service: script.climate_set_cool - service: script.climate_set_cool
- data: - data:
@ -76,6 +141,7 @@
below: '78' below: '78'
condition: numeric_state condition: numeric_state
entity_id: climate.first_floor entity_id: climate.first_floor
value_template: '{{ states.climate.first_floor.attributes.current_temperature }}'
action: action:
- service: script.climate_turn_off - service: script.climate_turn_off
- data: - data:
@ -86,14 +152,17 @@
- id: hvac_heat_on - id: hvac_heat_on
alias: hvac heat on alias: hvac heat on
trigger: trigger:
- below: 62 - below: 61
entity_id: climate.first_floor entity_id: climate.first_floor
platform: numeric_state platform: numeric_state
value_template: '{{ state.attributes.termperature }}' value_template: '{{ states.climate.first_floor.attributes.current_temperature }}'
condition: condition:
- below: 50 - below: 50
condition: numeric_state condition: numeric_state
entity_id: sensor.dark_sky_apparent_temperature entity_id: sensor.dark_sky_apparent_temperature
- state: 'off'
condition: state
entity_id: input_boolean.vacation_mode
action: action:
- service: script.climate_set_heat - service: script.climate_set_heat
- data: - data:
@ -155,6 +224,10 @@
trigger: trigger:
- platform: time - platform: time
at: '22:00:00' at: '22:00:00'
condition:
- condition: state
entity_id: light.jeff_light
state: 'on'
action: action:
- service: scene.turn_on - service: scene.turn_on
entity_id: scene.jeff_bedtime entity_id: scene.jeff_bedtime
@ -164,6 +237,10 @@
trigger: trigger:
- platform: time - platform: time
at: '22:30:00' at: '22:30:00'
condition:
- condition: state
entity_id: light.jeff_light
state: 'on'
action: action:
- service: scene.turn_on - service: scene.turn_on
entity_id: scene.jeff_night_light entity_id: scene.jeff_night_light
@ -229,7 +306,7 @@
action: action:
- service: switch.turn_on - service: switch.turn_on
data: data:
entity_id: switch.front_porch entity_id: switch.leviton_dz15s_1bz_decora_smart_switch_switch
- service: script.sunset_garage_open - service: script.sunset_garage_open
- service: script.twitter_notify - service: script.twitter_notify
data: data:
@ -244,7 +321,7 @@
action: action:
- service: switch.turn_off - service: switch.turn_off
data: data:
entity_id: switch.front_porch entity_id: switch.leviton_dz15s_1bz_decora_smart_switch_switch
- service: script.twitter_notify - service: script.twitter_notify
data: data:
message: "The sun is up at Anchorage House, so Im turning off the outside message: "The sun is up at Anchorage House, so Im turning off the outside
@ -276,35 +353,35 @@
- id: door_chime - id: door_chime
alias: Door Chine alias: Door Chine
trigger: trigger:
- entity_id: binary_sensor.laundry_room_door - entity_id: binary_sensor.ecolink_door_window_sensor_sensor_3
from: 'off' from: 'off'
platform: state platform: state
to: 'on' to: 'on'
- entity_id: binary_sensor.laundry_room_door - entity_id: binary_sensor.ecolink_door_window_sensor_sensor_3
from: 'on' from: 'on'
platform: state platform: state
to: 'off' to: 'off'
- entity_id: binary_sensor.front_door - entity_id: binary_sensor.ecolink_door_window_sensor_sensor_2
from: 'off' from: 'off'
platform: state platform: state
to: 'on' to: 'on'
- entity_id: binary_sensor.front_door - entity_id: binary_sensor.ecolink_door_window_sensor_sensor_2
from: 'on' from: 'on'
platform: state platform: state
to: 'off' to: 'off'
- entity_id: binary_sensor.back_door - entity_id: binary_sensor.ecolink_door_window_sensor_sensor_4
from: 'off' from: 'off'
platform: state platform: state
to: 'on' to: 'on'
- entity_id: binary_sensor.back_door - entity_id: binary_sensor.ecolink_door_window_sensor_sensor_4
from: 'on' from: 'on'
platform: state platform: state
to: 'off' to: 'off'
- entity_id: binary_sensor.attic_door - entity_id: binary_sensor.dome_door_window_sensor_sensor_2
from: 'off' from: 'off'
platform: state platform: state
to: 'on' to: 'on'
- entity_id: binary_sensor.attic_door - entity_id: binary_sensor.dome_door_window_sensor_sensor_2
from: 'on' from: 'on'
platform: state platform: state
to: 'off' to: 'off'
@ -579,9 +656,11 @@
state: 'off' state: 'off'
action: action:
- service: script.appliances_off - service: script.appliances_off
- service: script.inside_all_off
- service: script.security_check_garage - service: script.security_check_garage
- service: script.security_check_zones - service: script.security_check_zones
- service: script.lockdown - service: script.lockdown
- service: script.lockdown_issue
- id: jeff_is_home - id: jeff_is_home
alias: Jeff is Home alias: Jeff is Home
trigger: trigger:

View File

@ -1,30 +0,0 @@
- platform: mqtt
name: "Back Door"
state_topic: "smartthings/Back Door/contact"
payload_on: "open"
payload_off: "closed"
device_class: door
- platform: mqtt
name: "Front Door"
state_topic: "smartthings/Front Door/contact"
payload_on: "open"
payload_off: "closed"
device_class: door
- platform: mqtt
name: "Laundry Room Door"
state_topic: "smartthings/Laundry Room Door/contact"
payload_on: "open"
payload_off: "closed"
device_class: door
- platform: mqtt
name: "Attic Door" # Dome Door Sensor
state_topic: "smartthings/Attic Door/contact"
payload_on: "open"
payload_off: "closed"
device_class: door
- platform: mqtt
name: "Side Door" # Dome Door Sensor
state_topic: "smartthings/Side Door/contact"
payload_on: "open"
payload_off: "closed"
device_class: door

View File

@ -1,6 +0,0 @@
- platform: mqtt
name: "Garage Dome Sensor" # Dome Motion Sensor
state_topic: "smartthings/Garage Motion/motion"
payload_on: "active"
payload_off: "inactive"
device_class: motion

View File

@ -79,7 +79,7 @@ cloud:
name: Garage Humidity name: Garage Humidity
description: Garage Humidity description: Garage Humidity
alexa: #alexa:
# homekit: # homekit:
# filter: # filter:
@ -113,6 +113,11 @@ device_tracker:
max_gps_accuracy: 200 max_gps_accuracy: 200
prefix: life360 prefix: life360
show_as_state: driving, moving, places show_as_state: driving, moving, places
#- platform: eero_tracker
# consider_home: 300
# interval_seconds: 60
# track_new_devices: yes
# only_macs: "50:dc:e7:5b:10:69, b0:ee:7b:94:31:21, e8:b2:ac:4c:8c:01, 7c:1c:4e:2e:62:30, 90:18:7c:84:46:ed, 48:ba:4e:65:d3:ff, d0:e7:82:ef:a6:1f, 28:18:78:74:79:10, e8:ab:fa:02:03:53, 48:d6:d5:42:e8:86, 60:f8:1d:be:20:46, 68:54:fd:d5:ae:3d, 00:d0:2d:2f:3b:ca, 6c:70:9f:00:ef:3f, 5c:cf:7f:af:04:50, 68:54:fd:29:20:87, 64:52:99:93:f1:b3, 7c:2e:bd:4f:3e:ff"
#calendar: #calendar:
# - platform: caldav # - platform: caldav
@ -141,6 +146,7 @@ sun:
#https://home-assistant.io/components/recorder/ #https://home-assistant.io/components/recorder/
recorder: recorder:
#db_url: sqlite:///data/home-assistant_v2.db
purge_keep_days: 2 purge_keep_days: 2
exclude: exclude:
domains: domains:
@ -155,36 +161,32 @@ recorder:
# purge_keep_days: 3 # purge_keep_days: 3
logbook: logbook:
exclude: include:
entities: domains:
- sensor.last_boot - sensor
- sensor.date - switch
- sensor.ha_log - media_player
- sensor.ha_uptime - light
- sensor.cpu - automation
- sensor.date_time - script
- sensor.ha_v2db - input_boolean
- sensor.internet_time
- sensor.last_boot_2
- sensor.load_15m
- sensor.memory_use_percent
- sensor.network_in_eth0
- sensor.network_out_eth0
- sensor.processor_use
- sensor.time
- sensor.time_date
- sensor.time_utc
#https://home-assistant.io/components/logger/ #https://home-assistant.io/components/logger/
logger: logger:
default: info default: warning
# logs:
# logs: homeassistant.components.sensor.alpha_vantage: debug
# homeassistant.components.sensor.template: critical # homeassistant.components.sensor.template: critical
# homeassistant.components.cover: critical # homeassistant.components.cover: critical
history: history:
include:
domains:
- sensor
- switch
- media_player
- light
cast: cast:
@ -210,9 +212,9 @@ ffmpeg:
ffmpeg_bin: /usr/bin/ffmpeg ffmpeg_bin: /usr/bin/ffmpeg
splunk: splunk:
host: 192.168.7.40 host: 192.168.7.40
token: !secret splunkit token: !secret splunkit
port: 8088 port: 8088
cloudflare: cloudflare:
email: !secret cloudflare_user email: !secret cloudflare_user
@ -248,10 +250,10 @@ python_script:
# Disabled due to bug that causes too many open files - Need to track it down # Disabled due to bug that causes too many open files - Need to track it down
# cover: # cover:
# - platform: myq # platform: myq
# username: !secret myq_user # username: !secret myq_user
# password: !secret myq_pass # password: !secret myq_pass
# type: chamberlain # type: chamberlain
climate: climate:
platform: honeywell platform: honeywell
@ -298,6 +300,6 @@ shell_command:
tiki_room_audio: mpg123 /media/audio/tiki_room_audio.mp3 tiki_room_audio: mpg123 /media/audio/tiki_room_audio.mp3
illuminations_audio: mpg123 /media/audio/illuminations.mp3 illuminations_audio: mpg123 /media/audio/illuminations.mp3
mk_audio: mpg123 /media/audio/magic_kingdom.mp3 mk_audio: mpg123 /media/audio/magic_kingdom.mp3
usps: python3 /home/homeassistant/bin/usps.py usps: python /home/homeassistant/bin/usps.py
backup: python /home/homeassistant/bin/dropbox.py backup: python /home/homeassistant/bin/dropbox.py

View File

@ -29,3 +29,14 @@ House Conditions:
- sensor.accurite_back_porch_humidity - sensor.accurite_back_porch_humidity
- sensor.accurite_garage_temperature - sensor.accurite_garage_temperature
- sensor.accurite_garage_humidity - sensor.accurite_garage_humidity
External Doors:
- binary_sensor.dome_door_window_sensor_sensor
- binary_sensor.ecolink_door_window_sensor_sensor_2
- binary_sensor.ecolink_door_window_sensor_sensor_3
- binary_sensor.ecolink_door_window_sensor_sensor_4
- binary_sensor.ecolink_garage_door_tilt_sensor_sensor
Internal Doors:
- binary_sensor.dome_door_window_sensor_sensor_2

View File

@ -115,4 +115,6 @@ tweet_iss:
tweet_snark: tweet_snark:
name: Tweet Snark name: Tweet Snark
icon: mdi:twitter icon: mdi:twitter
washer_notification:
name: Washer Notification
icon: mdi:speaker-wireless

View File

@ -1,19 +0,0 @@
- platform: mqtt
name: "Kitchen Cabinets"
state_topic: "smartthings/Kitchen Cabinets/switch"
command_topic: "smartthings/Kitchen Cabinets/switch"
brightness_state_topic: "smartthings/Kitchen Cabinets/level"
brightness_command_topic: "smartthings/Kitchen Cabinets/level"
brightness_scale: 101
payload_on: "on"
payload_off: "off"
retain: true
- platform: mqtt
name: "Kitchen Light Strip"
state_topic: "smartthings/Kitchen Light Strip/switch"
command_topic: "smartthings/Kitchen Light Strip/switch"
brightness_state_topic: "smartthings/Kitchen Light Strip/level"
brightness_command_topic: "smartthings/Kitchen Light Strip/level"
payload_on: "on"
payload_off: "off"
retain: true

View File

@ -56,8 +56,8 @@ automation:
entity_id: input_boolean.tiki_room_audio entity_id: input_boolean.tiki_room_audio
to: 'off' to: 'off'
action: action:
- service: script.turn_off - service: media_player.media_stop
entity_id: script.tiki_room_audio entity_id: media_player.hass_speaker
- service: script.turn_on - service: script.turn_on
entity_id: script.kill_this_ride entity_id: script.kill_this_ride
- id: illuminations_on - id: illuminations_on
@ -335,6 +335,8 @@ script:
- service: shell_command.mk_audio - service: shell_command.mk_audio
kill_this_ride: kill_this_ride:
sequence: sequence:
- service: media_player.media_stop
entity_id: media_player.hass_speaker
- service: shell_command.alarm_off - service: shell_command.alarm_off
- service: script.turn_off - service: script.turn_off
data: data:
@ -492,7 +494,12 @@ script:
- condition: state - condition: state
entity_id: sensor.family_status entity_id: sensor.family_status
state: Home state: Home
- service: shell_command.tiki_room_audio #- service: shell_command.tiki_room_audio
- service: media_player.play_media
entity_id: media_player.hass_speaker
data:
media_content_id: /media/audio/tiki_room_audio.mp3
media_content_type: "music"
happy_ever_after: happy_ever_after:
sequence: sequence:
- condition: state - condition: state

View File

@ -118,6 +118,9 @@ script:
- condition: state - condition: state
entity_id: input_boolean.vacation_mode entity_id: input_boolean.vacation_mode
state: 'off' state: 'off'
- condition: state
entity_id: media_player.hass_speaker
state: 'idle'
- service: tts.google_say - service: tts.google_say
data_template: data_template:
entity_id: media_player.hass_speaker entity_id: media_player.hass_speaker

View File

@ -86,7 +86,7 @@ automation:
- condition: template - condition: template
value_template: '{{ trigger.to_state.state|float > trigger.from_state.state|float }}' value_template: '{{ trigger.to_state.state|float > trigger.from_state.state|float }}'
action: action:
- service: notify.all_ios - service: notify.jeff_ios
data_template: data_template:
message: > message: >
{% if states.sensor.nws_alerts.attributes.title.split(' - ')[5] is defined %} {% if states.sensor.nws_alerts.attributes.title.split(' - ')[5] is defined %}
@ -116,7 +116,7 @@ automation:
- condition: template - condition: template
value_template: '{{ trigger.to_state.state|float > trigger.from_state.state|float }}' value_template: '{{ trigger.to_state.state|float > trigger.from_state.state|float }}'
- condition: template - condition: template
value_template: "{{ (('Severe' in states.sensor.nws_alerts.attributes.title) or ('Thunderstorm' in states.sensor.nws_alerts.attributes.title) or ('Flood' in states.sensor.nws_alerts.attributes.title)) and 'Warning' in states.sensor.nws_alerts.attributes.title }}" value_template: "{{ (('Severe' in states.sensor.nws_alerts.attributes.title) or ('Thunderstorm' in states.sensor.nws_alerts.attributes.title)) and 'Warning' in states.sensor.nws_alerts.attributes.title }}"
action: action:
- service: script.voice_notify - service: script.voice_notify
data_template: data_template:

View File

@ -1,12 +1,33 @@
- name : test
entities:
light.tower_lamp_2:
state: on
brightness: 250
color_name: "blue"
- name : test2
entities:
light.tower_lamp_2:
state: on
brightness: 250
color_name: "soft white"
- name : test3
entities:
light.tower_lamp_2:
state: on
brightness: 250
hs_color: "195,0"
- name: normal livingroom lighting - name: normal livingroom lighting
entities: entities:
light.tower_lamp_2: light.tower_lamp_2:
state: on state: on
brightness: 250 brightness: 250
light.front_lamp: light.front_lamp_2:
state: on state: on
brightness: 250 brightness: 250
light.table_lamp: light.table_lamp_2:
state: on state: on
brightness: 250 brightness: 250
@ -15,11 +36,11 @@
light.tower_lamp_2: light.tower_lamp_2:
state: on state: on
brightness: 40 brightness: 40
light.front_lamp: light.front_lamp_2:
state: off state: off
light.table_lamp: light.table_lamp_2:
state: off state: off
switch.fireplace_lights: switch.ge_12722_on_off_relay_switch_switch:
state: off state: off
- name: illuminations livingroom lighting two - name: illuminations livingroom lighting two
@ -27,12 +48,12 @@
light.tower_lamp_2: light.tower_lamp_2:
state: on state: on
brightness: 40 brightness: 40
light.front_lamp: light.front_lamp_2:
state: on state: on
brightness: 40 brightness: 40
light.table_lamp: light.table_lamp_2:
state: off state: off
switch.fireplace_lights: switch.ge_12722_on_off_relay_switch_switch:
state: off state: off
- name: illuminations livingroom lighting three - name: illuminations livingroom lighting three
@ -40,13 +61,13 @@
light.tower_lamp_2: light.tower_lamp_2:
state: on state: on
brightness: 40 brightness: 40
light.front_lamp: light.front_lamp_2:
state: on state: on
brightness: 40 brightness: 40
light.table_lamp: light.table_lamp_2:
state: on state: on
brightness: 40 brightness: 40
switch.fireplace_lights: switch.ge_12722_on_off_relay_switch_switch:
state: off state: off
- name: night time livingroom lighting - name: night time livingroom lighting
@ -54,36 +75,36 @@
light.tower_lamp_2: light.tower_lamp_2:
state: on state: on
brightness: 10 brightness: 10
light.front_lamp: light.front_lamp_2:
state: off state: off
light.table_lamp: light.table_lamp_2:
state: off state: off
switch.fireplace_lights: switch.ge_12722_on_off_relay_switch_switch:
state: off state: off
- name: diminished kitchen lighting - name: diminished kitchen lighting
entities: entities:
light.kitchen_cabinets: light.front_room_level:
state: on state: on
brightness: 10 brightness: 10
light.kitchen_light_strip: light.leviton_dzpd3_2bw_decora_300w_plug_in_smart_dimmer_level:
state: off state: off
- name: normal kitchen lighting - name: normal kitchen lighting
entities: entities:
light.kitchen_cabinets: light.front_room_level:
state: on state: on
brightness: 250 brightness: 250
light.kitchen_light_strip: light.leviton_dzpd3_2bw_decora_300w_plug_in_smart_dimmer_level:
state: on state: on
- name: haunted preshow - name: haunted preshow
entities: entities:
light.kitchen_cabinets: light.front_room_level:
state: off state: off
light.kitchen_light_strip: light.leviton_dzpd3_2bw_decora_300w_plug_in_smart_dimmer_level:
state: off state: off
switch.upstairs_light: switch.ge_14291_in_wall_smart_switch_switch_2:
state: off state: off
light.tower_lamp_2: light.tower_lamp_2:
state: on state: on
@ -94,16 +115,16 @@
light.table_lamp: light.table_lamp:
state: on state: on
brightness: 40 brightness: 40
switch.fireplace_lights: switch.ge_12722_on_off_relay_switch_switch:
state: off state: off
- name: haunted lights out - name: haunted lights out
entities: entities:
light.kitchen_cabinets: light.front_room_level:
state: off state: off
light.kitchen_light_strip: light.leviton_dzpd3_2bw_decora_300w_plug_in_smart_dimmer_level:
state: off state: off
switch.upstairs_light: switch.ge_14291_in_wall_smart_switch_switch_2:
state: off state: off
light.tower_lamp_2: light.tower_lamp_2:
state: off state: off
@ -111,7 +132,7 @@
state: off state: off
light.table_lamp: light.table_lamp:
state: off state: off
switch.fireplace_lights: switch.ge_12722_on_off_relay_switch_switch:
state: off state: off
- name: jeff light on - name: jeff light on

View File

@ -56,17 +56,4 @@
friendly_name: "Eero Loft" friendly_name: "Eero Loft"
value_template: "{{ 'Online' if is_state('device_tracker.eero_loft', 'home') else 'Offline' }}" value_template: "{{ 'Online' if is_state('device_tracker.eero_loft', 'home') else 'Offline' }}"
smoke_kitchen:
friendly_name: "Kitchen Smoke"
value_template: "{{ 'Smoke Detected!' if is_state('device_tracker.eero_loft', 'smoke') else 'All Clear' }}"
security_status:
friendly_name: 'Security System'
value_template: '{{ "Armed" if is_state("input_boolean.secure_mode", "on") else "Disarmed" }}'
icon_template: '{%- if is_state("input_boolean.secure_mode", "on") %}mdi:lock{% else %}mdi:lock-open{%- endif %}'
garage_motion:
friendly_name: "Garage Motion"
value_template: "{{ 'open' if is_state('sensor.garage_dome_sensor', 'motion') else 'clear' }}"

View File

@ -1,14 +1,28 @@
- platform: alpha_vantage - platform: alpha_vantage
api_key: !secret alpha_vantage api_key: !secret alpha_vantage
symbols: symbols:
- symbol: SIRI #- symbol: SIRI
name: Sirius # name: Sirius
- symbol: BAC #- symbol: BAC
name: BoA # name: BoA
- symbol: INTC #- symbol: INTC
name: Intel # name: Intel
- symbol: DIS - symbol: DIS
name: Disney name: Disney
- symbol: BKS #- symbol: BKS
name: Barnes & Noble # name: Barnes & Noble
- platform: mqtt
name: "Disney"
state_topic: "stock/DIS/price"
- platform: mqtt
name: "BoA"
state_topic: "stock/BAC/price"
- platform: mqtt
name: "Intel"
state_topic: "stock/INTC/price"
- platform: mqtt
name: "Sirius"
state_topic: "stock/SIRI/price"
- platform: mqtt
name: "Barnes and Nobel"
state_topic: "stock/BKS/price"

5
sensors/github.yaml Normal file
View File

@ -0,0 +1,5 @@
- platform: github
access_token: !secret github_token
repositories:
- path: 'thejeffreystone/home-assistant-configuration'

4
sensors/house.yaml Normal file
View File

@ -0,0 +1,4 @@
- platform: mqtt
name: "Washer Status"
state_topic: "house/washer/status"

View File

@ -1,6 +0,0 @@
- platform: mqtt
name: "Kitchen Smoke"
state_topic: "smartthings/Kitchen Smoke/smoke"
payload_available: "smoke"
payload_not_available: "clear"

View File

@ -33,7 +33,6 @@
minutes: 5 minutes: 5
seconds: 0 seconds: 0
milliseconds: 0 milliseconds: 0
- platform: moon
- platform: pollen - platform: pollen
zip_code: "30017" zip_code: "30017"
monitored_conditions: monitored_conditions:
@ -70,82 +69,6 @@
- platform: mqtt - platform: mqtt
name: "Accurite Garage lupdate" name: "Accurite Garage lupdate"
state_topic: "house/accurite-10968/lastupdate" state_topic: "house/accurite-10968/lastupdate"
- platform: nws_alerts
zone_id: 'GAZ034'
# - platform: rest
# resource: https://api.weather.gov/alerts/active/count
# name: NWS Alert Count Raw
# value_template: >
# {% if value_json is defined and value_json.zones.GAZ034 is defined %}
# {{ value_json.zones.GAZ034 }}
# {% else %}
# 0
# {% endif %}
# headers:
# User-Agent: Homeassistant
# Accept: application/ld+json
# scan_interval: 60
# - platform: template
# sensors:
# nws_alert_count_filtered:
# friendly_name: NWS Alert Count
# entity_id: sensor.nws_alert_count_raw
# value_template: >
# {% if is_state('sensor.nws_alert_count_raw', 'unavailable') or is_state('sensor.nws_alert_count_raw', 'unknown') %}
# {{ states.sensor.nws_alert_count_filtered.state }}
# {% else %}
# {{ states.sensor.nws_alert_count_raw.state }}
# {% endif %}
# - platform: rest
# resource: https://api.weather.gov/alerts/active?zone=GAZ034
# name: NWS Alert Event Raw
# value_template: >
# {% if value_json.features[0] is defined %}
# {{ value_json['features'][0]['properties'].event }}
# {% else %}
# None
# {% endif %}
# json_attributes:
# - features
# headers:
# User-Agent: Homeassistant
# Accept: application/geo+json
# scan_interval: 60
# - platform: template
# sensors:
# nws_alert_event_filtered:
# friendly_name: NWS Alert Event
# entity_id: sensor.nws_alert_event_raw
# value_template: >
# {% if is_state('sensor.nws_alert_event_raw', 'unavailable') or is_state('sensor.nws_alert_event_raw', 'unknown') %}
# {{ states.sensor.nws_alert_event_filtered.state }}
# {% else %}
# {{ states.sensor.nws_alert_event_raw.state }}
# {% endif %}
# - platform: template
# sensors:
# nws_alert_event_2:
# friendly_name: NWS Alert Event 2
# entity_id: sensor.nws_alert_event_raw
# value_template: >
# {% if state_attr('sensor.nws_alert_event_raw', 'features')[1] is defined %}
# {{ state_attr('sensor.nws_alert_event_raw', 'features')[1]['properties'].event }}
# {% else %}
# None
# {% endif %}
# nws_alert_event_3:
# friendly_name: NWS Alert Event 3
# entity_id: sensor.nws_alert_event_raw
# value_template: >
# {% if state_attr('sensor.nws_alert_event_raw', 'features')[2] is defined %}
# {{ state_attr('sensor.nws_alert_event_raw', 'features')[2]['properties'].event }}
# {% else %}
# None
# {% endif %}
- platform: template - platform: template
sensors: sensors:

View File

@ -1,7 +0,0 @@
# - platform: mqtt
# name: "Tornado Alarm"
# state_topic: "smartthings/Tornado Alarm/switch"
# command_topic: "smartthings/Tornado Alarm/switch"
# payload_on: "on"
# payload_off: "off"
# retain: true

View File

@ -1,10 +1,3 @@
- platform: mqtt
name: "Fireplace Lights"
state_topic: "smartthings/Fireplace Lights/switch"
command_topic: "smartthings/Fireplace Lights/switch"
payload_on: "on"
payload_off: "off"
retain: true
- platform: mqtt - platform: mqtt
name: "Incense" name: "Incense"
state_topic: "smartthings/Incense/switch" state_topic: "smartthings/Incense/switch"

View File

@ -1 +0,0 @@

View File

@ -1,21 +0,0 @@
- platform: mqtt
name: "Driveway Light"
state_topic: "smartthings/Driveway Light/switch"
command_topic: "smartthings/Driveway Light/switch"
payload_on: "on"
payload_off: "off"
retain: true
- platform: mqtt
name: "Side Door"
state_topic: "smartthings/Side Door Light/switch"
command_topic: "smartthings/Side Door Light/switch"
payload_on: "on"
payload_off: "off"
retain: true
- platform: mqtt
name: "Front Porch"
state_topic: "smartthings/Front Porch/switch"
command_topic: "smartthings/Front Porch/switch"
payload_on: "on"
payload_off: "off"
retain: true

View File

@ -1,14 +0,0 @@
- platform: mqtt
name: "Upstairs Light"
state_topic: "smartthings/Upstairs Light/switch"
command_topic: "smartthings/Upstairs Light/switch"
payload_on: "on"
payload_off: "off"
retain: true
- platform: mqtt
name: "Main Theater"
state_topic: "smartthings/Theater AV/switch"
command_topic: "smartthings/Teather AV/switch"
payload_on: "on"
payload_off: "off"
retain: true

View File

@ -8,24 +8,29 @@
{% endif %} {% endif %}
{% endmacro %} {% endmacro %}
{% macro getBirthdays() %} {% macro getBirthdays() %}
{% if states.sensor.birthday_skylar.state | int < 2 %} {% if states.sensor.birthday_skylar.state | int == 1 %}
Tomorrow is Skylar's Birthday. Tomorrow is Skylar's Birthday.
{% endif %} {% endif %}
{% if states.sensor.birthday_jeff.state | int < 2 %} {% if states.sensor.birthday_skylar.state | int > 1 %}
{% if states.sensor.birthday_skylar.state | int < 5 %}
Skylar's birthday is in {{states.sensor.birthday_skylar.state}} days!
{% endif %}
{% endif %}
{% if states.sensor.birthday_jeff.state | int == 1 %}
Tomorrow is Jeff's Birthday. Tomorrow is Jeff's Birthday.
{% endif %} {% endif %}
{% if states.sensor.birthday_kat.state | int < 2 %} {% if states.sensor.birthday_kat.state | int == 1 %}
Tomorrow is Katherine's Birthday. Tomorrow is Katherine's Birthday.
{% endif %} {% endif %}
{% if states.sensor.anniversary_our_wedding.state | int < 2 %} {% if states.sensor.anniversary_our_wedding.state | int == 1 %}
Tomorrow is Jeff and Katherine's Wedding Anniversary. Tomorrow is Jeff and Katherine's Wedding Anniversary.
{% endif %} {% endif %}
{% endmacro %} {% endmacro %}
{% macro getHolidays() %} {% macro getHolidays() %}
{% if states.sensor.holiday_halloween.state | int < 2 %} {% if states.sensor.holiday_halloween.state | int == 1 %}
Tomorrow is Halloween. Hope you have picked out a costume. Tomorrow is Halloween. Hope you have picked out a costume.
{% endif %} {% endif %}
{% if states.sensor.holiday_christmas.state | int < 2 %} {% if states.sensor.holiday_christmas.state | int == 1 %}
Tomorrow is Christmas. It's practically here! Tomorrow is Christmas. It's practically here!
{% endif %} {% endif %}
{% endmacro %} {% endmacro %}

View File

@ -7,11 +7,11 @@
] | random -}} ] | random -}}
{% endmacro %} {% endmacro %}
{% macro getVersion() %} {% macro getVersion() %}
@homeassistant version {{ states.sensor.current_ha_version.state }} is out. #homeassistant version {{ states.sensor.current_ha_version.state }} is out.
{% endmacro %} {% endmacro %}
{%- macro getRandomSnark() -%} {%- macro getRandomSnark() -%}
{{- [ {{- [
" Its like Patch Tuesday, but with less fail. #homeassistant", " Its like Patch Tuesday, but without the fail. #homeassistant",
" Get in my SD Card! #homeassistant", " Get in my SD Card! #homeassistant",
" Shut up and take my ones and zeros! #homeassistant", " Shut up and take my ones and zeros! #homeassistant",
" Seriously, you want some of this! #homeassistant", " Seriously, you want some of this! #homeassistant",
@ -27,7 +27,6 @@
{# a macro to call all macros :) #} {# a macro to call all macros :) #}
{%- macro mother_of_all_macros() -%} {%- macro mother_of_all_macros() -%}
It is {{ now().strftime("%I:%M %p") }}.
{{ getIntro() }} {{ getIntro() }}
{{ getVersion() }} {{ getVersion() }}
{{ getRandomSnark() }} {{ getRandomSnark() }}