Hi, I‘m trying to make an automation that closes the blinds when the brightness sensor is above 20000 lx for more than 3 minutes
The sensors name is sensor.helligkeit the name of the blind cover.sitzplatz
Any idea how to do this?
Many thanks, xirixs
Hi and welcome to the forum. The automation below will do what you want.
trigger:
- platform: numeric_state
entity_id: sensor.helligkeit
above: 20000
for:
minutes: 3
action:
- service: cover.close_cover
target:
entity_id: cover.sitzplatz
You should have a read about the types of triggers, conditions and services available.
Triggers: https://www.home-assistant.io/docs/automation/trigger/
Conditions: https://www.home-assistant.io/docs/scripts/conditions/
Cover Services: https://www.home-assistant.io/integrations/cover/#services
(each integration that offers services has a page like this).
Thank you so much for the script @tom_l . It works properly.
I’m aware of the documentations, but was not sure whether I should use the condition to set the delay.