diff --git a/Misc Stuff.md b/Misc Stuff.md index ec376db7..126a3867 100755 --- a/Misc Stuff.md +++ b/Misc Stuff.md @@ -136,3 +136,37 @@ automation: brightness: 255 # script with a delay that'll reset light in 5 min - service: script.return_front_porch_delayed + + +Easy Garbage Automation + - alias: brown garbage + trigger: + platform: time + hours: 20 + minutes: 00 + seconds: 0 + condition: + condition: time +# At least one of the following is required. + weekday: + - mon + - thu + action: + service: notify.thorsten + data: + message: 'Put the brown garbage out!' + - alias: blue garbage + trigger: + platform: time + hours: 20 + minutes: 00 + seconds: 0 + condition: + condition: time +# At least one of the following is required. + weekday: + - tue + action: + service: notify.thorsten + data: + message: 'Put the blue garbage out!' \ No newline at end of file diff --git a/automation/switch_reliability.yaml b/automation/switch_reliability.yaml new file mode 100755 index 00000000..0bb4d185 --- /dev/null +++ b/automation/switch_reliability.yaml @@ -0,0 +1,63 @@ +############################################################################## +### Detect when things are on and forgotten about. +############################################################################## + +- alias: Automated Switch WatchDog! + trigger: + - platform: state + entity_id: switch.printer_outlet + state: 'on' + for: '00:35:00' + - platform: state + entity_id: switch.garage_outlet + state: 'on' + for: '03:00:00' + +#Turn it off twice for good measure! + action: + - service: switch.turn_off + data_template: + entity_id: "{{ trigger.entity_id }}" + - delay: 00:01:00 + - service: switch.turn_off + data_template: + entity_id: "{{ trigger.entity_id }}" + + ############################################################################## + +- alias: Automated Light WatchDog! + trigger: + - platform: state + entity_id: light.hallway + state: 'on' + for: '00:20:00' + +#Turn it off! + action: + - service: light.turn_off + data_template: + entity_id: "{{ trigger.entity_id }}" + +############################################################################## + +- alias: Is the Garage door Open at night - Checks every 60 minutes or 5 minutes after we drive away. + trigger: + - platform: time + minutes: '/60' + - platform: state + entity_id: group.family + state: not_home + for: 00:05:00 + + condition: + - condition: sun + after: 'sunset' + - condition: template + value_template: "{{ states('cover.garadget_large') == 'opened' }}" + - condition: template + value_template: "{{ states('cover.garadget_small') == 'opened' }}" + + action: + - service: ifttt.trigger + data: {"event":"ifttt_notify", "value1":"Check Garage Doors: ", "value2":"Small: {{ states('cover.garadget_small')}}", "value3":"Large: {{ states('cover.garadget_large')}} "} + diff --git a/automation/watchdog.yaml b/automation/watchdog.yaml index 37c09ed3..0bb4d185 100755 --- a/automation/watchdog.yaml +++ b/automation/watchdog.yaml @@ -40,13 +40,10 @@ ############################################################################## -- alias: 9pm - is the Garage door Open +- alias: Is the Garage door Open at night - Checks every 60 minutes or 5 minutes after we drive away. trigger: - platform: time - after: '21:00:00' - - platform: sun - event: sunset - offset: '+01:00:00' + minutes: '/60' - platform: state entity_id: group.family state: not_home @@ -56,9 +53,9 @@ - condition: sun after: 'sunset' - condition: template - value_template: "{{ states('cover.garadget_large') != 'closed' }}" + value_template: "{{ states('cover.garadget_large') == 'opened' }}" - condition: template - value_template: "{{ states('cover.garadget_small') != 'closed' }}" + value_template: "{{ states('cover.garadget_small') == 'opened' }}" action: - service: ifttt.trigger