From 450c54adf7ca0fe698f26c99719461ad060ce83b Mon Sep 17 00:00:00 2001 From: CCOSTAN Date: Wed, 21 Dec 2016 22:01:37 +0000 Subject: [PATCH] Let there be light... On rainy days. --- README.md | 1 + automation/dark_rainy_day.yaml | 23 ++++++++++++++++++++++- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6b43a8c7..de1d0252 100755 --- a/README.md +++ b/README.md @@ -41,6 +41,7 @@ Software on the Pi : [Home Assistant](https://home-assistant.io/) , [Dasher](htt * Turn on some lights abd switches when we get home * Turn on some outdoor Lights at Sunset or if it gets darkish in the house, Turn off 4 hours before sunrise. Turn off interior lights when we go to sleep. * Turn on lights during school days for a morning routine for the kids and wife. Has No School overide boolean in GUI. +* Rainy days trigger extra light inside the house. * Detects when lights are turned on and adjusts them to correct brightness based on time of day. * Leverage Alexa, IFTTT and Elekcity outlet to control Printer On/Off via Voice. Turns off automatically after 20 minutes. * (IFTTT) Blink ALL lights at 9:30 to remind me to take medicine. (also Alexa Alert) diff --git a/automation/dark_rainy_day.yaml b/automation/dark_rainy_day.yaml index 0b98d9ea..5c807952 100755 --- a/automation/dark_rainy_day.yaml +++ b/automation/dark_rainy_day.yaml @@ -42,4 +42,25 @@ entity_id: - switch.living_room_outlet -###################################################################### \ No newline at end of file +###################################################################### + +###################################################################### +## Dark House Little extra light - RAIN is over. +###################################################################### + +- alias: 'Rain is over' + trigger: + - platform: numeric_state + entity_id: sensor.dark_sky_precip_intensity + below: 1 + + action: + - service: light.turn_off + entity_id: + - light.tv_light + - light.tv_stand_light + data: + transition: 1200 + - service: switch.turn_off + entity_id: + - switch.living_room_outlet \ No newline at end of file