parent
be4fa059b2
commit
c25baddf4e
@ -1,30 +1,30 @@
|
||||
###################################
|
||||
## Press a dash Button and then stuff happens.
|
||||
###################################
|
||||
|
||||
- alias: 'Toggle Office Light on/off'
|
||||
trigger:
|
||||
- platform: event
|
||||
event_type: brooklyn_dash
|
||||
- platform: event
|
||||
event_type: simplehuman_dash
|
||||
|
||||
action:
|
||||
- service: light.toggle
|
||||
entity_id: light.office_lamp
|
||||
|
||||
|
||||
# - alias: 'Toggle Office Light off if on'
|
||||
# trigger:
|
||||
# - platform: event
|
||||
# event_type: brooklyn_dash
|
||||
|
||||
# condition:
|
||||
# - condition: state
|
||||
# entity_id: light.office_lamp
|
||||
# state: 'on'
|
||||
|
||||
# action:
|
||||
# - service: light.turn_off
|
||||
# entity_id: light.office_lamp
|
||||
###################################
|
||||
## Press an [Amazon Dash Buttons](http://amzn.to/2dPKZhM) and then stuff happens.
|
||||
###################################
|
||||
|
||||
- alias: 'Toggle Office Light on/off'
|
||||
trigger:
|
||||
- platform: event
|
||||
event_type: brooklyn_dash
|
||||
- platform: event
|
||||
event_type: simplehuman_dash
|
||||
|
||||
action:
|
||||
- service: light.toggle
|
||||
entity_id: light.office_lamp
|
||||
|
||||
|
||||
# - alias: 'Toggle Office Light off if on'
|
||||
# trigger:
|
||||
# - platform: event
|
||||
# event_type: brooklyn_dash
|
||||
|
||||
# condition:
|
||||
# - condition: state
|
||||
# entity_id: light.office_lamp
|
||||
# state: 'on'
|
||||
|
||||
# action:
|
||||
# - service: light.turn_off
|
||||
# entity_id: light.office_lamp
|
||||
|
||||
@ -1,11 +1,12 @@
|
||||
###################################
|
||||
## ZWave Healing Section
|
||||
###################################
|
||||
|
||||
- alias: Heal ZWave Nightly
|
||||
hide_entity: True
|
||||
trigger:
|
||||
platform: time
|
||||
after: '2:31:00'
|
||||
action:
|
||||
service: zwave.heal_network
|
||||
###################################
|
||||
## ZWave Healing Section -
|
||||
## Home Assistant runs on my [Raspberry Pi 3](http://amzn.to/2e3DOBY) with [Aeon Labs Z Wave Stick (GEN 5)](http://amzn.to/2eAiAP0).
|
||||
###################################
|
||||
|
||||
- alias: Heal ZWave Nightly
|
||||
hide_entity: True
|
||||
trigger:
|
||||
platform: time
|
||||
after: '2:31:00'
|
||||
action:
|
||||
service: zwave.heal_network
|
||||
|
||||
@ -1,41 +1,43 @@
|
||||
#####################################################################################
|
||||
### If the Kitchen Lights go on for more than 10 minutes, turn off the accent lights
|
||||
#####################################################################################
|
||||
|
||||
- alias: Kitchen lights on - Accent lights off
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: group.kitchen_lights
|
||||
state: 'on'
|
||||
for: '00:05:00'
|
||||
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: switch.kitchen_accents
|
||||
state: 'on'
|
||||
|
||||
action:
|
||||
- service: switch.turn_off
|
||||
entity_id: switch.kitchen_accents
|
||||
|
||||
##############################################################################
|
||||
|
||||
- alias: Kitchen lights off - turn on Accent lights
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: group.kitchen_lights
|
||||
state: 'off'
|
||||
for: '00:05:00'
|
||||
|
||||
condition:
|
||||
- condition: sun
|
||||
after: 'sunset'
|
||||
- condition: time
|
||||
before: '23:00:00'
|
||||
- condition: state
|
||||
entity_id: group.interior_lights
|
||||
state: 'on'
|
||||
|
||||
action:
|
||||
- service: switch.turn_on
|
||||
entity_id: switch.kitchen_accents
|
||||
#####################################################################################
|
||||
### If the Kitchen Lights go on for more than 10 minutes, turn off the accent lights
|
||||
### connected to [Etekcity Outlets](http://amzn.to/2efNoBP)
|
||||
## [433Mhz Transmitter and receiver](http://amzn.to/2dceNY2)
|
||||
#####################################################################################
|
||||
|
||||
- alias: Kitchen lights on - Accent lights off
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: group.kitchen_lights
|
||||
state: 'on'
|
||||
for: '00:05:00'
|
||||
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: switch.kitchen_accents
|
||||
state: 'on'
|
||||
|
||||
action:
|
||||
- service: switch.turn_off
|
||||
entity_id: switch.kitchen_accents
|
||||
|
||||
##############################################################################
|
||||
|
||||
- alias: Kitchen lights off - turn on Accent lights
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: group.kitchen_lights
|
||||
state: 'off'
|
||||
for: '00:05:00'
|
||||
|
||||
condition:
|
||||
- condition: sun
|
||||
after: 'sunset'
|
||||
- condition: time
|
||||
before: '23:00:00'
|
||||
- condition: state
|
||||
entity_id: group.interior_lights
|
||||
state: 'on'
|
||||
|
||||
action:
|
||||
- service: switch.turn_on
|
||||
entity_id: switch.kitchen_accents
|
||||
|
||||
@ -1,74 +1,79 @@
|
||||
##############################################################
|
||||
- alias: Hallway ZWave Enerwave Door Sensors Open
|
||||
hide_entity: True
|
||||
trigger:
|
||||
- platform: event
|
||||
event_type: zwave.node_event
|
||||
event_data:
|
||||
object_id: enerwave_unknown_type0601_id0903_2
|
||||
basic_level: 255
|
||||
- platform: state
|
||||
entity_id: binary_sensor.aeotec_dsb04100_doorwindow_sensor_sensor_4_0
|
||||
state: 'on'
|
||||
|
||||
condition:
|
||||
condition: or
|
||||
conditions:
|
||||
- condition: sun
|
||||
after: sunset
|
||||
after_offset: '-03:00:00'
|
||||
- condition: numeric_state
|
||||
entity_id: sensor.dark_sky_cloud_coverage
|
||||
above: 50
|
||||
|
||||
action:
|
||||
- service: light.turn_on
|
||||
entity_id:
|
||||
- light.hallway
|
||||
- light.k4
|
||||
- delay: 00:20:00
|
||||
- service: light.turn_off
|
||||
entity_id: light.hallway
|
||||
|
||||
##############################################################
|
||||
- alias: ZWave Enerwave Door Sensors Closed
|
||||
hide_entity: True
|
||||
trigger:
|
||||
- platform: event
|
||||
event_type: zwave.node_event
|
||||
event_data:
|
||||
object_id: enerwave_unknown_type0601_id0903_2
|
||||
basic_level: 0
|
||||
- platform: state
|
||||
entity_id: binary_sensor.aeotec_dsb04100_doorwindow_sensor_sensor_4_0
|
||||
state: 'off'
|
||||
|
||||
action:
|
||||
service: light.turn_off
|
||||
entity_id: light.hallway
|
||||
|
||||
##############################################################
|
||||
- alias: Shutdown Helper light
|
||||
hide_entity: True
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: light.k4
|
||||
state: 'on'
|
||||
for: '00:20:00'
|
||||
- platform: event
|
||||
event_type: zwave.node_event
|
||||
event_data:
|
||||
object_id: enerwave_unknown_type0601_id0903_2
|
||||
basic_level: 0
|
||||
- platform: state
|
||||
entity_id: binary_sensor.aeotec_dsb04100_doorwindow_sensor_sensor_4_0
|
||||
state: 'off'
|
||||
|
||||
condition:
|
||||
condition: state
|
||||
entity_id: light.k1
|
||||
state: 'off'
|
||||
|
||||
action:
|
||||
- service: light.turn_off
|
||||
entity_id: light.k4
|
||||
###################################
|
||||
## ZWave Section -
|
||||
## Home Assistant runs on my [Raspberry Pi 3](http://amzn.to/2e3DOBY) with [Aeon Labs Z Wave Stick (GEN 5)](http://amzn.to/2eAiAP0).
|
||||
###################################
|
||||
|
||||
##############################################################
|
||||
- alias: Hallway ZWave Enerwave Door Sensors Open
|
||||
hide_entity: True
|
||||
trigger:
|
||||
- platform: event
|
||||
event_type: zwave.node_event
|
||||
event_data:
|
||||
object_id: enerwave_unknown_type0601_id0903_2
|
||||
basic_level: 255
|
||||
- platform: state
|
||||
entity_id: binary_sensor.aeotec_dsb04100_doorwindow_sensor_sensor_4_0
|
||||
state: 'on'
|
||||
|
||||
condition:
|
||||
condition: or
|
||||
conditions:
|
||||
- condition: sun
|
||||
after: sunset
|
||||
after_offset: '-03:00:00'
|
||||
- condition: numeric_state
|
||||
entity_id: sensor.dark_sky_cloud_coverage
|
||||
above: 50
|
||||
|
||||
action:
|
||||
- service: light.turn_on
|
||||
entity_id:
|
||||
- light.hallway
|
||||
- light.k4
|
||||
- delay: 00:20:00
|
||||
- service: light.turn_off
|
||||
entity_id: light.hallway
|
||||
|
||||
##############################################################
|
||||
- alias: ZWave Enerwave Door Sensors Closed
|
||||
hide_entity: True
|
||||
trigger:
|
||||
- platform: event
|
||||
event_type: zwave.node_event
|
||||
event_data:
|
||||
object_id: enerwave_unknown_type0601_id0903_2
|
||||
basic_level: 0
|
||||
- platform: state
|
||||
entity_id: binary_sensor.aeotec_dsb04100_doorwindow_sensor_sensor_4_0
|
||||
state: 'off'
|
||||
|
||||
action:
|
||||
service: light.turn_off
|
||||
entity_id: light.hallway
|
||||
|
||||
##############################################################
|
||||
- alias: Shutdown Helper light
|
||||
hide_entity: True
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: light.k4
|
||||
state: 'on'
|
||||
for: '00:20:00'
|
||||
- platform: event
|
||||
event_type: zwave.node_event
|
||||
event_data:
|
||||
object_id: enerwave_unknown_type0601_id0903_2
|
||||
basic_level: 0
|
||||
- platform: state
|
||||
entity_id: binary_sensor.aeotec_dsb04100_doorwindow_sensor_sensor_4_0
|
||||
state: 'off'
|
||||
|
||||
condition:
|
||||
condition: state
|
||||
entity_id: light.k1
|
||||
state: 'off'
|
||||
|
||||
action:
|
||||
- service: light.turn_off
|
||||
entity_id: light.k4
|
||||
|
||||
@ -1,69 +1,71 @@
|
||||
######################################################################################################
|
||||
###Script to run every 30 minutes to check if 433 RF Switches are in the state they should be.
|
||||
### Sample Call
|
||||
# action:
|
||||
# - service: script.reliability
|
||||
######################################################################################################
|
||||
|
||||
# {% macro swTest(onoff) %} - service: switch.turn_{{ states(onoff) }}
|
||||
# entity_id: {{ onoff }}{% endmacro %}
|
||||
|
||||
# switch_check:
|
||||
# sequence:
|
||||
# {{ swTest("switch.foyer_outlet") }}
|
||||
# {{ swTest("switch.printer_outlet") }}
|
||||
# {{ swTest("switch.garage_outlet") }}
|
||||
# {{ swTest("switch.den_outlet") }}
|
||||
# {{ swTest("switch.living_room_outlet") }}
|
||||
# {{ swTest("switch.living_room_amp") }}
|
||||
|
||||
switch_check:
|
||||
sequence:
|
||||
- service_template: >
|
||||
{% if states.switch.foyer_outlet == 'on' %}
|
||||
switch.turn_on
|
||||
{% else %}
|
||||
switch.turn_off
|
||||
{% endif %}
|
||||
entity_id: switch.foyer_outlet
|
||||
- delay: '00:00:30'
|
||||
- service_template: >
|
||||
{% if states.switch.printer_outlet == 'on' %}
|
||||
switch.turn_on
|
||||
{% else %}
|
||||
switch.turn_off
|
||||
{% endif %}
|
||||
entity_id: switch.printer_outlet
|
||||
- delay: '00:00:30'
|
||||
- service_template: >
|
||||
{% if states.switch.garage_outlet == 'on' %}
|
||||
switch.turn_on
|
||||
{% else %}
|
||||
switch.turn_off
|
||||
{% endif %}
|
||||
entity_id: switch.garage_outlet
|
||||
- delay: '00:00:30'
|
||||
- service_template: >
|
||||
{% if states.switch.den_outlet == 'on' %}
|
||||
switch.turn_on
|
||||
{% else %}
|
||||
switch.turn_off
|
||||
{% endif %}
|
||||
entity_id: switch.den_outlet
|
||||
- delay: '00:00:30'
|
||||
- service_template: >
|
||||
{% if states.switch.kitchen_Accents == 'on' %}
|
||||
switch.turn_on
|
||||
{% else %}
|
||||
switch.turn_off
|
||||
{% endif %}
|
||||
entity_id: switch.kitchen_Accents
|
||||
- delay: '00:00:30'
|
||||
- service_template: >
|
||||
{% if states.switch.living_room_amp == 'on' %}
|
||||
switch.turn_on
|
||||
{% else %}
|
||||
switch.turn_off
|
||||
{% endif %}
|
||||
entity_id: switch.living_room_amp
|
||||
|
||||
######################################################################################################
|
||||
###Script to run every 30 minutes to check if 433 RF Switches are in the state they should be.
|
||||
### connected to [Etekcity Outlets](http://amzn.to/2efNoBP)
|
||||
## [433Mhz Transmitter and receiver](http://amzn.to/2dceNY2)
|
||||
### Sample Call
|
||||
# action:
|
||||
# - service: script.reliability
|
||||
######################################################################################################
|
||||
|
||||
# {% macro swTest(onoff) %} - service: switch.turn_{{ states(onoff) }}
|
||||
# entity_id: {{ onoff }}{% endmacro %}
|
||||
|
||||
# switch_check:
|
||||
# sequence:
|
||||
# {{ swTest("switch.foyer_outlet") }}
|
||||
# {{ swTest("switch.printer_outlet") }}
|
||||
# {{ swTest("switch.garage_outlet") }}
|
||||
# {{ swTest("switch.den_outlet") }}
|
||||
# {{ swTest("switch.living_room_outlet") }}
|
||||
# {{ swTest("switch.living_room_amp") }}
|
||||
|
||||
switch_check:
|
||||
sequence:
|
||||
- service_template: >
|
||||
{% if states.switch.foyer_outlet == 'on' %}
|
||||
switch.turn_on
|
||||
{% else %}
|
||||
switch.turn_off
|
||||
{% endif %}
|
||||
entity_id: switch.foyer_outlet
|
||||
- delay: '00:00:30'
|
||||
- service_template: >
|
||||
{% if states.switch.printer_outlet == 'on' %}
|
||||
switch.turn_on
|
||||
{% else %}
|
||||
switch.turn_off
|
||||
{% endif %}
|
||||
entity_id: switch.printer_outlet
|
||||
- delay: '00:00:30'
|
||||
- service_template: >
|
||||
{% if states.switch.garage_outlet == 'on' %}
|
||||
switch.turn_on
|
||||
{% else %}
|
||||
switch.turn_off
|
||||
{% endif %}
|
||||
entity_id: switch.garage_outlet
|
||||
- delay: '00:00:30'
|
||||
- service_template: >
|
||||
{% if states.switch.den_outlet == 'on' %}
|
||||
switch.turn_on
|
||||
{% else %}
|
||||
switch.turn_off
|
||||
{% endif %}
|
||||
entity_id: switch.den_outlet
|
||||
- delay: '00:00:30'
|
||||
- service_template: >
|
||||
{% if states.switch.kitchen_Accents == 'on' %}
|
||||
switch.turn_on
|
||||
{% else %}
|
||||
switch.turn_off
|
||||
{% endif %}
|
||||
entity_id: switch.kitchen_Accents
|
||||
- delay: '00:00:30'
|
||||
- service_template: >
|
||||
{% if states.switch.living_room_amp == 'on' %}
|
||||
switch.turn_on
|
||||
{% else %}
|
||||
switch.turn_off
|
||||
{% endif %}
|
||||
entity_id: switch.living_room_amp
|
||||
|
||||
|
||||
@ -1,19 +1,20 @@
|
||||
######################################################################################################
|
||||
###Script to turn on Front light FULL bright for 15m when motion is detected and then return to the normal colors.
|
||||
# action:
|
||||
# - service: script.skybell_pressed
|
||||
#
|
||||
######################################################################################################
|
||||
|
||||
skybell_pressed:
|
||||
sequence:
|
||||
- service: logbook.log
|
||||
data:
|
||||
name: "SkyBell HD Doorbell:"
|
||||
message: "Someone Pressed the Doorbell."
|
||||
|
||||
- service: script.flash_notify
|
||||
|
||||
|
||||
|
||||
######################################################################################################
|
||||
###[SkyBell HD](http://amzn.to/2dcexIB)
|
||||
# Script to turn on Front light FULL bright for 15m when motion is detected and then return to the normal colors.
|
||||
# action:
|
||||
# - service: script.skybell_pressed
|
||||
#
|
||||
######################################################################################################
|
||||
|
||||
skybell_pressed:
|
||||
sequence:
|
||||
- service: logbook.log
|
||||
data:
|
||||
name: "SkyBell HD Doorbell:"
|
||||
message: "Someone Pressed the Doorbell."
|
||||
|
||||
- service: script.flash_notify
|
||||
|
||||
|
||||
|
||||
|
||||
@ -1,32 +1,36 @@
|
||||
- platform: template
|
||||
sensors:
|
||||
garadget_small_status:
|
||||
friendly_name: 'State of the door'
|
||||
value_template: '{{ states.cover.garadget_small.state }}'
|
||||
garadget_small_time_in_state:
|
||||
friendly_name: 'Time Since Change'
|
||||
value_template: '{{ states.cover.garadget_small.attributes["time in state"] }}'
|
||||
garadget_small_wifi_signal_strength:
|
||||
friendly_name: 'WiFi strength'
|
||||
value_template: '{{ states.cover.garadget_small.attributes["wifi signal strength (dB)"] }}'
|
||||
unit_of_measurement: 'dB'
|
||||
garadget_small_reflection_rate:
|
||||
friendly_name: 'Reflection Rate'
|
||||
value_template: '{{ states.cover.garadget_small.attributes["sensor reflection rate"] }}'
|
||||
|
||||
|
||||
- platform: template
|
||||
sensors:
|
||||
garadget_large_status:
|
||||
friendly_name: 'State of the door'
|
||||
value_template: '{{ states.cover.garadget_large.state }}'
|
||||
garadget_large_time_in_state:
|
||||
friendly_name: 'Time Since Change'
|
||||
value_template: '{{ states.cover.garadget_large.attributes["time in state"] }}'
|
||||
garadget_large_wifi_signal_strength:
|
||||
friendly_name: 'WiFi strength'
|
||||
value_template: '{{ states.cover.garadget_large.attributes["wifi signal strength (dB)"] }}'
|
||||
unit_of_measurement: 'dB'
|
||||
garadget_large_reflection_rate:
|
||||
friendly_name: 'Reflection Rate'
|
||||
###################################
|
||||
## Garadget Stuff - [Garadget](http://amzn.to/2jQLpVQ) - Garage Door opener/sensor
|
||||
###################################
|
||||
|
||||
- platform: template
|
||||
sensors:
|
||||
garadget_small_status:
|
||||
friendly_name: 'State of the door'
|
||||
value_template: '{{ states.cover.garadget_small.state }}'
|
||||
garadget_small_time_in_state:
|
||||
friendly_name: 'Time Since Change'
|
||||
value_template: '{{ states.cover.garadget_small.attributes["time in state"] }}'
|
||||
garadget_small_wifi_signal_strength:
|
||||
friendly_name: 'WiFi strength'
|
||||
value_template: '{{ states.cover.garadget_small.attributes["wifi signal strength (dB)"] }}'
|
||||
unit_of_measurement: 'dB'
|
||||
garadget_small_reflection_rate:
|
||||
friendly_name: 'Reflection Rate'
|
||||
value_template: '{{ states.cover.garadget_small.attributes["sensor reflection rate"] }}'
|
||||
|
||||
|
||||
- platform: template
|
||||
sensors:
|
||||
garadget_large_status:
|
||||
friendly_name: 'State of the door'
|
||||
value_template: '{{ states.cover.garadget_large.state }}'
|
||||
garadget_large_time_in_state:
|
||||
friendly_name: 'Time Since Change'
|
||||
value_template: '{{ states.cover.garadget_large.attributes["time in state"] }}'
|
||||
garadget_large_wifi_signal_strength:
|
||||
friendly_name: 'WiFi strength'
|
||||
value_template: '{{ states.cover.garadget_large.attributes["wifi signal strength (dB)"] }}'
|
||||
unit_of_measurement: 'dB'
|
||||
garadget_large_reflection_rate:
|
||||
friendly_name: 'Reflection Rate'
|
||||
value_template: '{{ states.cover.garadget_large.attributes["sensor reflection rate"] }}'
|
||||
@ -1,11 +1,15 @@
|
||||
- platform: template
|
||||
sensors:
|
||||
upstairs_away_mode:
|
||||
entity_id: climate.upstairs
|
||||
value_template: "{{ is_state_attr('climate.upstairs', 'away_mode', 'on') }}"
|
||||
|
||||
- platform: template
|
||||
sensors:
|
||||
downstairs_away_mode:
|
||||
entity_id: climate.downstairs
|
||||
###################################################
|
||||
## * [Nest Thermostats](http://amzn.to/2eAhB1k)
|
||||
###################################################
|
||||
|
||||
- platform: template
|
||||
sensors:
|
||||
upstairs_away_mode:
|
||||
entity_id: climate.upstairs
|
||||
value_template: "{{ is_state_attr('climate.upstairs', 'away_mode', 'on') }}"
|
||||
|
||||
- platform: template
|
||||
sensors:
|
||||
downstairs_away_mode:
|
||||
entity_id: climate.downstairs
|
||||
value_template: "{{ is_state_attr('climate.downstairs', 'away_mode', 'on') }}"
|
||||
Loading…
Reference in new issue