mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-08-17 19:06:53 +00:00
Support this repo by using the amazon affiliate links please. Thanks.
This commit is contained in:
@@ -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,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:
|
||||
# - service: script.front_house_motion
|
||||
#
|
||||
|
@@ -1,5 +1,7 @@
|
||||
######################################################################################################
|
||||
###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
|
||||
# action:
|
||||
# - service: script.holiday_switches_on
|
||||
|
@@ -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
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user