mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 17:27:19 +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
|
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.
|
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:
|
trigger:
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: sensor.weather_precip
|
entity_id: sensor.precip_intensity
|
||||||
state: 'rain'
|
state: 'rain'
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: group.all_devices
|
entity_id: group.all_devices
|
||||||
@ -43,7 +43,7 @@ automation 2:
|
|||||||
alias: 'Rain is over'
|
alias: 'Rain is over'
|
||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: sensor.weather_precip
|
entity_id: sensor.precip_intensity
|
||||||
state: 'None'
|
state: 'None'
|
||||||
- platform: sun
|
- platform: sun
|
||||||
event: 'sunset'
|
event: 'sunset'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user