mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-22 16:56:50 +00:00
Update automation_for_rainy_days.markdown (#1354)
This commit is contained in:
parent
49b3daf494
commit
cf573bb631
@ -10,7 +10,7 @@ footer: true
|
||||
ha_category: Automation Examples
|
||||
---
|
||||
|
||||
This requires a [forecast.io](/components/sensor.forecast/) sensor with the condition `weather_precip` that tells if it's raining or not.
|
||||
This requires a [Dark Sky](/components/sensor.darksky/) sensor with the condition `precip_intensity` that tells if it's raining or not. You could also experiment with other attributes such as `cloud_cover`.
|
||||
|
||||
Turn on a light in the living room when it starts raining, someone is home, and it's afternoon or later.
|
||||
|
||||
@ -20,7 +20,7 @@ automation:
|
||||
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: sensor.weather_precip
|
||||
entity_id: sensor.precip_intensity
|
||||
state: 'rain'
|
||||
- platform: state
|
||||
entity_id: group.all_devices
|
||||
@ -43,7 +43,7 @@ automation 2:
|
||||
alias: 'Rain is over'
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: sensor.weather_precip
|
||||
entity_id: sensor.precip_intensity
|
||||
state: 'None'
|
||||
- platform: sun
|
||||
event: 'sunset'
|
||||
|
Loading…
x
Reference in New Issue
Block a user