Support this repo by using the amazon affiliate links please. Thanks.

This commit is contained in:
CCOSTAN 2017-01-16 17:14:29 +00:00
parent be4fa059b2
commit c25baddf4e
17 changed files with 319 additions and 290 deletions

View File

@ -11,7 +11,7 @@ Software on the Pi : [Home Assistant](https://home-assistant.io/) , [Dasher](htt
* [Nest Thermostats](http://amzn.to/2eAhB1k) * [Nest Thermostats](http://amzn.to/2eAhB1k)
* [Amazon Echo](http://amzn.to/2dSVbK4) and [DOT](http://amzn.to/2e3vHFQ) * [Amazon Echo](http://amzn.to/2dSVbK4) and [DOT](http://amzn.to/2e3vHFQ)
* [Amazon Dash Buttons](http://amzn.to/2dPKZhM) * [Amazon Dash Buttons](http://amzn.to/2dPKZhM)
* [ Amazon Fire TV](http://amzn.to/2iiuaNT) * [Amazon Fire TV](http://amzn.to/2iiuaNT)
* [Phillips Hue Hub Gen 2](http://amzn.to/2eoQTJy) * [Phillips Hue Hub Gen 2](http://amzn.to/2eoQTJy)
* [Circle by Disney](http://amzn.to/2eAgaA6) * [Circle by Disney](http://amzn.to/2eAgaA6)
* [Rachio Sprinkler system](http://amzn.to/2eoPKBW) * [Rachio Sprinkler system](http://amzn.to/2eoPKBW)
@ -21,7 +21,7 @@ Software on the Pi : [Home Assistant](https://home-assistant.io/) , [Dasher](htt
* ChromeCast Audios * ChromeCast Audios
* [Etekcity Outlets](http://amzn.to/2efNoBP) * [Etekcity Outlets](http://amzn.to/2efNoBP)
* [Door Sensors (AEON Labs)](http://amzn.to/2e3xDxY) * [Door Sensors (AEON Labs)](http://amzn.to/2e3xDxY)
* [Garadget](garadget.com) - Garage Door opener/sensor * [Garadget](http://amzn.to/2jQLpVQ) - Garage Door opener/sensor
* Nintendo Wii * Nintendo Wii
* Emulated Hue pushes all Switch, Group, input_boolean, script and scene information to Alexa for First Class Control! * Emulated Hue pushes all Switch, Group, input_boolean, script and scene information to Alexa for First Class Control!
* [iTeadStudio goodies](https://twitter.com/ccostan/status/793119824008384512) - SonOff and SonOn with a Slampher! * [iTeadStudio goodies](https://twitter.com/ccostan/status/793119824008384512) - SonOff and SonOn with a Slampher!

View File

@ -1,30 +1,30 @@
################################### ###################################
## Press a dash Button and then stuff happens. ## Press an [Amazon Dash Buttons](http://amzn.to/2dPKZhM) and then stuff happens.
################################### ###################################
- alias: 'Toggle Office Light on/off' - alias: 'Toggle Office Light on/off'
trigger: trigger:
- platform: event - platform: event
event_type: brooklyn_dash event_type: brooklyn_dash
- platform: event - platform: event
event_type: simplehuman_dash event_type: simplehuman_dash
action: action:
- service: light.toggle - service: light.toggle
entity_id: light.office_lamp entity_id: light.office_lamp
# - alias: 'Toggle Office Light off if on' # - alias: 'Toggle Office Light off if on'
# trigger: # trigger:
# - platform: event # - platform: event
# event_type: brooklyn_dash # event_type: brooklyn_dash
# condition: # condition:
# - condition: state # - condition: state
# entity_id: light.office_lamp # entity_id: light.office_lamp
# state: 'on' # state: 'on'
# action: # action:
# - service: light.turn_off # - service: light.turn_off
# entity_id: light.office_lamp # entity_id: light.office_lamp

View File

@ -1,5 +1,6 @@
################################### ###################################
## Garadget Stuff ## Garadget Stuff - [Garadget](http://amzn.to/2jQLpVQ) - Garage Door opener/sensor
##
################################### ###################################
- alias: Garadget Reflection Rates - alias: Garadget Reflection Rates

View File

@ -1,11 +1,12 @@
################################### ###################################
## ZWave Healing Section ## 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 - alias: Heal ZWave Nightly
trigger: hide_entity: True
platform: time trigger:
after: '2:31:00' platform: time
action: after: '2:31:00'
service: zwave.heal_network action:
service: zwave.heal_network

View File

@ -1,5 +1,7 @@
################################### ###################################
## Holiday Lights on/off with IFTTT/Alexa support ## Holiday Lights on/off with IFTTT/Alexa support
## [Etekcity Outlets](http://amzn.to/2efNoBP)
## [433Mhz Transmitter and receiver](http://amzn.to/2dceNY2)
################################### ###################################
- alias: 'Holiday Stuff on' - alias: 'Holiday Stuff on'

View File

@ -1,5 +1,5 @@
################################### ###################################
## LOG IFTTT Stuff - SkyBell ## LOG IFTTT Stuff - [SkyBell HD](http://amzn.to/2dcexIB)
################################### ###################################
- alias: 'Log SkyBell Pressed Activity' - alias: 'Log SkyBell Pressed Activity'

View File

@ -1,5 +1,8 @@
################################### ###################################
## Turn on/off Living Room AMPs via ALexa/IFTTT event. ## Turn on/off Living Room AMPs via ALexa/IFTTT event.
## Currently using this [AMP] (http://amzn.to/2joRrk1)
## [Etekcity Outlets](http://amzn.to/2efNoBP)
## [433Mhz Transmitter and receiver](http://amzn.to/2dceNY2)
################################### ###################################
- alias: 'IFTTT Turn AMP on' - alias: 'IFTTT Turn AMP on'

View File

@ -1,41 +1,43 @@
##################################################################################### #####################################################################################
### If the Kitchen Lights go on for more than 10 minutes, turn off the accent lights ### 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 - alias: Kitchen lights on - Accent lights off
entity_id: group.kitchen_lights trigger:
state: 'on' - platform: state
for: '00:05:00' entity_id: group.kitchen_lights
state: 'on'
condition: for: '00:05:00'
- condition: state
entity_id: switch.kitchen_accents condition:
state: 'on' - condition: state
entity_id: switch.kitchen_accents
action: state: 'on'
- service: switch.turn_off
entity_id: switch.kitchen_accents action:
- service: switch.turn_off
############################################################################## entity_id: switch.kitchen_accents
- alias: Kitchen lights off - turn on Accent lights ##############################################################################
trigger:
- platform: state - alias: Kitchen lights off - turn on Accent lights
entity_id: group.kitchen_lights trigger:
state: 'off' - platform: state
for: '00:05:00' entity_id: group.kitchen_lights
state: 'off'
condition: for: '00:05:00'
- condition: sun
after: 'sunset' condition:
- condition: time - condition: sun
before: '23:00:00' after: 'sunset'
- condition: state - condition: time
entity_id: group.interior_lights before: '23:00:00'
state: 'on' - condition: state
entity_id: group.interior_lights
action: state: 'on'
- service: switch.turn_on
entity_id: switch.kitchen_accents action:
- service: switch.turn_on
entity_id: switch.kitchen_accents

View File

@ -1,5 +1,5 @@
################################### ###################################
## LOG IFTTT Stuff - SkyBell ## LOG IFTTT Stuff - [SkyBell HD](http://amzn.to/2dcexIB)
################################### ###################################
- alias: 'Log SkyBell Pressed Activity' - alias: 'Log SkyBell Pressed Activity'

View File

@ -1,74 +1,79 @@
############################################################## ###################################
- alias: Hallway ZWave Enerwave Door Sensors Open ## ZWave Section -
hide_entity: True ## Home Assistant runs on my [Raspberry Pi 3](http://amzn.to/2e3DOBY) with [Aeon Labs Z Wave Stick (GEN 5)](http://amzn.to/2eAiAP0).
trigger: ###################################
- platform: event
event_type: zwave.node_event ##############################################################
event_data: - alias: Hallway ZWave Enerwave Door Sensors Open
object_id: enerwave_unknown_type0601_id0903_2 hide_entity: True
basic_level: 255 trigger:
- platform: state - platform: event
entity_id: binary_sensor.aeotec_dsb04100_doorwindow_sensor_sensor_4_0 event_type: zwave.node_event
state: 'on' event_data:
object_id: enerwave_unknown_type0601_id0903_2
condition: basic_level: 255
condition: or - platform: state
conditions: entity_id: binary_sensor.aeotec_dsb04100_doorwindow_sensor_sensor_4_0
- condition: sun state: 'on'
after: sunset
after_offset: '-03:00:00' condition:
- condition: numeric_state condition: or
entity_id: sensor.dark_sky_cloud_coverage conditions:
above: 50 - condition: sun
after: sunset
action: after_offset: '-03:00:00'
- service: light.turn_on - condition: numeric_state
entity_id: entity_id: sensor.dark_sky_cloud_coverage
- light.hallway above: 50
- light.k4
- delay: 00:20:00 action:
- service: light.turn_off - service: light.turn_on
entity_id: light.hallway entity_id:
- light.hallway
############################################################## - light.k4
- alias: ZWave Enerwave Door Sensors Closed - delay: 00:20:00
hide_entity: True - service: light.turn_off
trigger: entity_id: light.hallway
- platform: event
event_type: zwave.node_event ##############################################################
event_data: - alias: ZWave Enerwave Door Sensors Closed
object_id: enerwave_unknown_type0601_id0903_2 hide_entity: True
basic_level: 0 trigger:
- platform: state - platform: event
entity_id: binary_sensor.aeotec_dsb04100_doorwindow_sensor_sensor_4_0 event_type: zwave.node_event
state: 'off' event_data:
object_id: enerwave_unknown_type0601_id0903_2
action: basic_level: 0
service: light.turn_off - platform: state
entity_id: light.hallway entity_id: binary_sensor.aeotec_dsb04100_doorwindow_sensor_sensor_4_0
state: 'off'
##############################################################
- alias: Shutdown Helper light action:
hide_entity: True service: light.turn_off
trigger: entity_id: light.hallway
- platform: state
entity_id: light.k4 ##############################################################
state: 'on' - alias: Shutdown Helper light
for: '00:20:00' hide_entity: True
- platform: event trigger:
event_type: zwave.node_event - platform: state
event_data: entity_id: light.k4
object_id: enerwave_unknown_type0601_id0903_2 state: 'on'
basic_level: 0 for: '00:20:00'
- platform: state - platform: event
entity_id: binary_sensor.aeotec_dsb04100_doorwindow_sensor_sensor_4_0 event_type: zwave.node_event
state: 'off' event_data:
object_id: enerwave_unknown_type0601_id0903_2
condition: basic_level: 0
condition: state - platform: state
entity_id: light.k1 entity_id: binary_sensor.aeotec_dsb04100_doorwindow_sensor_sensor_4_0
state: 'off' state: 'off'
action: condition:
- service: light.turn_off condition: state
entity_id: light.k4 entity_id: light.k1
state: 'off'
action:
- service: light.turn_off
entity_id: light.k4

View File

@ -1,69 +1,71 @@
###################################################################################################### ######################################################################################################
###Script to run every 30 minutes to check if 433 RF Switches are in the state they should be. ###Script to run every 30 minutes to check if 433 RF Switches are in the state they should be.
### Sample Call ### connected to [Etekcity Outlets](http://amzn.to/2efNoBP)
# action: ## [433Mhz Transmitter and receiver](http://amzn.to/2dceNY2)
# - service: script.reliability ### Sample Call
###################################################################################################### # action:
# - service: script.reliability
# {% macro swTest(onoff) %} - service: switch.turn_{{ states(onoff) }} ######################################################################################################
# entity_id: {{ onoff }}{% endmacro %}
# {% macro swTest(onoff) %} - service: switch.turn_{{ states(onoff) }}
# switch_check: # entity_id: {{ onoff }}{% endmacro %}
# sequence:
# {{ swTest("switch.foyer_outlet") }} # switch_check:
# {{ swTest("switch.printer_outlet") }} # sequence:
# {{ swTest("switch.garage_outlet") }} # {{ swTest("switch.foyer_outlet") }}
# {{ swTest("switch.den_outlet") }} # {{ swTest("switch.printer_outlet") }}
# {{ swTest("switch.living_room_outlet") }} # {{ swTest("switch.garage_outlet") }}
# {{ swTest("switch.living_room_amp") }} # {{ swTest("switch.den_outlet") }}
# {{ swTest("switch.living_room_outlet") }}
switch_check: # {{ swTest("switch.living_room_amp") }}
sequence:
- service_template: > switch_check:
{% if states.switch.foyer_outlet == 'on' %} sequence:
switch.turn_on - service_template: >
{% else %} {% if states.switch.foyer_outlet == 'on' %}
switch.turn_off switch.turn_on
{% endif %} {% else %}
entity_id: switch.foyer_outlet switch.turn_off
- delay: '00:00:30' {% endif %}
- service_template: > entity_id: switch.foyer_outlet
{% if states.switch.printer_outlet == 'on' %} - delay: '00:00:30'
switch.turn_on - service_template: >
{% else %} {% if states.switch.printer_outlet == 'on' %}
switch.turn_off switch.turn_on
{% endif %} {% else %}
entity_id: switch.printer_outlet switch.turn_off
- delay: '00:00:30' {% endif %}
- service_template: > entity_id: switch.printer_outlet
{% if states.switch.garage_outlet == 'on' %} - delay: '00:00:30'
switch.turn_on - service_template: >
{% else %} {% if states.switch.garage_outlet == 'on' %}
switch.turn_off switch.turn_on
{% endif %} {% else %}
entity_id: switch.garage_outlet switch.turn_off
- delay: '00:00:30' {% endif %}
- service_template: > entity_id: switch.garage_outlet
{% if states.switch.den_outlet == 'on' %} - delay: '00:00:30'
switch.turn_on - service_template: >
{% else %} {% if states.switch.den_outlet == 'on' %}
switch.turn_off switch.turn_on
{% endif %} {% else %}
entity_id: switch.den_outlet switch.turn_off
- delay: '00:00:30' {% endif %}
- service_template: > entity_id: switch.den_outlet
{% if states.switch.kitchen_Accents == 'on' %} - delay: '00:00:30'
switch.turn_on - service_template: >
{% else %} {% if states.switch.kitchen_Accents == 'on' %}
switch.turn_off switch.turn_on
{% endif %} {% else %}
entity_id: switch.kitchen_Accents switch.turn_off
- delay: '00:00:30' {% endif %}
- service_template: > entity_id: switch.kitchen_Accents
{% if states.switch.living_room_amp == 'on' %} - delay: '00:00:30'
switch.turn_on - service_template: >
{% else %} {% if states.switch.living_room_amp == 'on' %}
switch.turn_off switch.turn_on
{% endif %} {% else %}
entity_id: switch.living_room_amp switch.turn_off
{% endif %}
entity_id: switch.living_room_amp

View File

@ -1,5 +1,5 @@
###################################################################################################### ######################################################################################################
###Script to turn on Front light FULL bright for 15m when motion is detected and then return to the normal colors. ###[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: # action:
# - service: script.front_house_motion # - service: script.front_house_motion
# #

View File

@ -1,5 +1,7 @@
###################################################################################################### ######################################################################################################
###Script to shut switches with a 30 second delay to not trample codes ###Script to shut switches with a 30 second delay to not trample codes
### connected to [Etekcity Outlets](http://amzn.to/2efNoBP)
## [433Mhz Transmitter and receiver](http://amzn.to/2dceNY2)
### Sample Call ### Sample Call
# action: # action:
# - service: script.holiday_switches_on # - service: script.holiday_switches_on

View File

@ -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. ###[SkyBell HD](http://amzn.to/2dcexIB)
# action: # Script to turn on Front light FULL bright for 15m when motion is detected and then return to the normal colors.
# - service: script.skybell_pressed # action:
# # - service: script.skybell_pressed
###################################################################################################### #
######################################################################################################
skybell_pressed:
sequence: skybell_pressed:
- service: logbook.log sequence:
data: - service: logbook.log
name: "SkyBell HD Doorbell:" data:
message: "Someone Pressed the Doorbell." name: "SkyBell HD Doorbell:"
message: "Someone Pressed the Doorbell."
- service: script.flash_notify
- service: script.flash_notify

View File

@ -1,32 +1,36 @@
- platform: template ###################################
sensors: ## Garadget Stuff - [Garadget](http://amzn.to/2jQLpVQ) - Garage Door opener/sensor
garadget_small_status: ###################################
friendly_name: 'State of the door'
value_template: '{{ states.cover.garadget_small.state }}' - platform: template
garadget_small_time_in_state: sensors:
friendly_name: 'Time Since Change' garadget_small_status:
value_template: '{{ states.cover.garadget_small.attributes["time in state"] }}' friendly_name: 'State of the door'
garadget_small_wifi_signal_strength: value_template: '{{ states.cover.garadget_small.state }}'
friendly_name: 'WiFi strength' garadget_small_time_in_state:
value_template: '{{ states.cover.garadget_small.attributes["wifi signal strength (dB)"] }}' friendly_name: 'Time Since Change'
unit_of_measurement: 'dB' value_template: '{{ states.cover.garadget_small.attributes["time in state"] }}'
garadget_small_reflection_rate: garadget_small_wifi_signal_strength:
friendly_name: 'Reflection Rate' friendly_name: 'WiFi strength'
value_template: '{{ states.cover.garadget_small.attributes["sensor reflection rate"] }}' value_template: '{{ states.cover.garadget_small.attributes["wifi signal strength (dB)"] }}'
unit_of_measurement: 'dB'
garadget_small_reflection_rate:
- platform: template friendly_name: 'Reflection Rate'
sensors: value_template: '{{ states.cover.garadget_small.attributes["sensor reflection rate"] }}'
garadget_large_status:
friendly_name: 'State of the door'
value_template: '{{ states.cover.garadget_large.state }}' - platform: template
garadget_large_time_in_state: sensors:
friendly_name: 'Time Since Change' garadget_large_status:
value_template: '{{ states.cover.garadget_large.attributes["time in state"] }}' friendly_name: 'State of the door'
garadget_large_wifi_signal_strength: value_template: '{{ states.cover.garadget_large.state }}'
friendly_name: 'WiFi strength' garadget_large_time_in_state:
value_template: '{{ states.cover.garadget_large.attributes["wifi signal strength (dB)"] }}' friendly_name: 'Time Since Change'
unit_of_measurement: 'dB' value_template: '{{ states.cover.garadget_large.attributes["time in state"] }}'
garadget_large_reflection_rate: garadget_large_wifi_signal_strength:
friendly_name: 'Reflection Rate' 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"] }}' value_template: '{{ states.cover.garadget_large.attributes["sensor reflection rate"] }}'

View File

@ -1,11 +1,15 @@
- platform: template ###################################################
sensors: ## * [Nest Thermostats](http://amzn.to/2eAhB1k)
upstairs_away_mode: ###################################################
entity_id: climate.upstairs
value_template: "{{ is_state_attr('climate.upstairs', 'away_mode', 'on') }}" - platform: template
sensors:
- platform: template upstairs_away_mode:
sensors: entity_id: climate.upstairs
downstairs_away_mode: value_template: "{{ is_state_attr('climate.upstairs', 'away_mode', 'on') }}"
entity_id: climate.downstairs
- platform: template
sensors:
downstairs_away_mode:
entity_id: climate.downstairs
value_template: "{{ is_state_attr('climate.downstairs', 'away_mode', 'on') }}" value_template: "{{ is_state_attr('climate.downstairs', 'away_mode', 'on') }}"

View File

@ -1,5 +1,7 @@
###################################################################### ######################################################################
## Awesome Elekcity Outlet control via RF ## Awesome [Etekcity Outlets](http://amzn.to/2efNoBP) control via RF
### connected to
## [433Mhz Transmitter and receiver](http://amzn.to/2dceNY2)
###################################################################### ######################################################################
- platform: rpi_rf - platform: rpi_rf