Hi guys,
I have recently started to play with Home assistant [installed HASSIO OS on a raspberry pi 4], so basically I am a newbie in all this. May I kindly ask for your help with an automation I built for Ikea Tradfri blinds [onlyone at this point, just to see how it works].
What I tried to achieve is/was:
to split the week days in working days and weekend
to have a specific time when the blinds go up / down
to have the least number of automations [ I end up with two ]
Note: I used - service: cover.set_cover_position
instead of cover.close/open_cover
because when it was opening, was opening full [regardless of the fact that I set the open value in the gateway]
Question 1 > is there any other way to define when the blind should close, instead of using the ‘delay’ or the ‘sun’?
Question 2 > is there any better way to to built it to end up with only one automation?
- id: '1594654875713'
alias: Blinds-Weekend
description: ''
trigger:
- at: 08:30
platform: time
condition:
- condition: state
entity_id: binary_sensor.workday_sensor
state: 'off'
action:
- service: cover.set_cover_position
data:
entity_id: cover.tradfri_blind
position: 80
- delay: '12:30:00'
- service: cover.set_cover_position
data:
entity_id: cover.tradfri_blind
position: 0
- id: '1594828467878'
alias: Blinds-Week
description: ''
trigger:
- at: 06:45
platform: time
condition:
- condition: state
entity_id: binary_sensor.workday_sensor
state: 'on'
action:
- data:
entity_id: cover.tradfri_blind
position: 80
entity_id: cover.tradfri_blind
service: cover.set_cover_position
- delay: '14:00:00'
- data:
entity_id: cover.tradfri_blind
position: 0
entity_id: cover.tradfri_blind
service: cover.set_cover_position
This text will be hidden
[I hope that I found the proper formatting for the config ]
Thank you
mema