Hi guys,
i want when its raining that the shutters automatically close to a specific position.
I want to get the raining information from the Dark Sky Api.
sensor:
- platform: darksky
api_key: !secret darksky_api
language: de
update_interval: '16:00:00'
forecast:
- 0
- 1
- 2
- 3
monitored_conditions:
- summary
- icon
- temperature
- sunrise_time
- sunset_time
- precip_intensity
- cloud_cover
- precip_probability
- precip_type
After that i think the best way is to check if the intensity is greater than 0.1
When yes → set the cover position to n %.
If below 0.1 open the shutters again.
- id: ‘x’
alias: TestRolladeintensity
trigger:
- above: ‘0.1’
entity_id: sensor.dark_sky_precip_intensity
platform: numeric_state
condition:- after: 07:00
before: ‘22:00’
condition: time
action:- data:
entity_id: cover.x
position: ‘50’
service: cover.set_cover_position
In this case it do not work fine.
Has anyone else another solution with raining and opening shutters?
- id: ‘xx’
alias: TestRolladeintensity
trigger:
- above: ‘0.1’
entity_id: sensor.dark_sky_precip_intensity
platform: numeric_state
condition:- after: 07:00
before: ‘22:00’
condition: time
action:- data:
entity_id: cover.jalousie_kueche
position: ‘50’
service: cover.set_cover_position