mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-02-21 00:25:12 +00:00
Split off the dark rainy day stuff..
This commit is contained in:
parent
d05c0078b3
commit
4789e31bad
45
automation/dark_rainy_day.yaml
Executable file
45
automation/dark_rainy_day.yaml
Executable file
@ -0,0 +1,45 @@
|
|||||||
|
######################################################################
|
||||||
|
## Dark House Little extra light - DARK and Cloudy or just rainy.
|
||||||
|
######################################################################
|
||||||
|
|
||||||
|
- alias: 'Dark House Little extra light'
|
||||||
|
trigger:
|
||||||
|
- platform: numeric_state
|
||||||
|
entity_id: sun.sun
|
||||||
|
value_template: '{{ state.attributes.elevation }}'
|
||||||
|
below: 20.0
|
||||||
|
- platform: numeric_state
|
||||||
|
entity_id: sensor.dark_sky_cloud_coverage
|
||||||
|
above: 90
|
||||||
|
- platform: numeric_state
|
||||||
|
entity_id: sensor.dark_sky_precip_intensity
|
||||||
|
above: 1
|
||||||
|
|
||||||
|
condition:
|
||||||
|
condition: or
|
||||||
|
conditions:
|
||||||
|
- condition: and
|
||||||
|
conditions:
|
||||||
|
- condition: numeric_state
|
||||||
|
entity_id: sun.sun
|
||||||
|
value_template: '{{ state.attributes.elevation }}'
|
||||||
|
below: 20.0
|
||||||
|
- condition: numeric_state
|
||||||
|
entity_id: sensor.dark_sky_cloud_coverage
|
||||||
|
above: 90
|
||||||
|
- condition: numeric_state
|
||||||
|
entity_id: sensor.dark_sky_precip_intensity
|
||||||
|
above: 1
|
||||||
|
|
||||||
|
action:
|
||||||
|
- service: light.turn_on
|
||||||
|
entity_id:
|
||||||
|
- light.tv_light
|
||||||
|
- light.tv_stand_light
|
||||||
|
data:
|
||||||
|
transition: 1200
|
||||||
|
- service: switch.turn_on
|
||||||
|
entity_id:
|
||||||
|
- switch.living_room_outlet
|
||||||
|
|
||||||
|
######################################################################
|
@ -1,48 +1,4 @@
|
|||||||
###################################
|
###################################
|
||||||
## Dark House Little extra light
|
|
||||||
###################################
|
|
||||||
|
|
||||||
- alias: 'Dark House Little extra light'
|
|
||||||
trigger:
|
|
||||||
- platform: numeric_state
|
|
||||||
entity_id: sun.sun
|
|
||||||
value_template: '{{ state.attributes.elevation }}'
|
|
||||||
below: 20.0
|
|
||||||
- platform: numeric_state
|
|
||||||
entity_id: sensor.dark_sky_cloud_coverage
|
|
||||||
above: 90
|
|
||||||
- platform: numeric_state
|
|
||||||
entity_id: sensor.dark_sky_precip_intensity
|
|
||||||
above: 1
|
|
||||||
|
|
||||||
condition:
|
|
||||||
condition: or
|
|
||||||
conditions:
|
|
||||||
- condition: and
|
|
||||||
conditions:
|
|
||||||
- condition: numeric_state
|
|
||||||
entity_id: sun.sun
|
|
||||||
value_template: '{{ state.attributes.elevation }}'
|
|
||||||
below: 20.0
|
|
||||||
- condition: numeric_state
|
|
||||||
entity_id: sensor.dark_sky_cloud_coverage
|
|
||||||
above: 90
|
|
||||||
- condition: numeric_state
|
|
||||||
entity_id: sensor.dark_sky_precip_intensity
|
|
||||||
above: 1
|
|
||||||
|
|
||||||
action:
|
|
||||||
- service: light.turn_on
|
|
||||||
entity_id:
|
|
||||||
- light.tv_light
|
|
||||||
- light.tv_stand_light
|
|
||||||
data:
|
|
||||||
transition: 1200
|
|
||||||
- service: switch.turn_on
|
|
||||||
entity_id:
|
|
||||||
- switch.living_room_outlet
|
|
||||||
|
|
||||||
###################################
|
|
||||||
## Sunrise and Sunset stuff
|
## Sunrise and Sunset stuff
|
||||||
###################################
|
###################################
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user