@fribse wrote:
I’ve made an automation to close the blind in the bedroom, but only if the window is closed.
To supplement that, I made this small automation to close the blind if the window is closed, and if I add the sunset / sunrise conditions, nothing happens.- id: '1570991270753' alias: Blind - close if window is closed, and the sun is already down description: '' trigger: - entity_id: binary_sensor.vindue_sovevaerelse for: 0:00:15 from: 'on' platform: state to: 'off' condition: - after: sunset before: sunrise condition: sun action: - data: entity_id: cover.rullegardin_i_sovevaerelse service: cover.close_cover
If I change the condition to check for below_horizon then it works, but then I can’t make use the offset.
- id: '1570991270753' alias: Blind - close if window is closed, and the sun is already down description: '' trigger: - entity_id: binary_sensor.vindue_sovevaerelse for: 0:00:15 from: 'on' platform: state to: 'off' condition: - condition: state entity_id: sun.sun state: below_horizon action: - data: entity_id: cover.rullegardin_i_sovevaerelse service: cover.close_cover
Shouldn’t I be able to use the sunset / sunrise as conditions this way?
Posts: 3
Participants: 2