Hi at all,
I am using MDT jalousieactors and try to get a automation running. I am using the covers until now only with open and close, not to set a position.
I created an automation, which opens the cover when it detects a motion and the lux is higher then 300 outside and shut off the light when its on. My automation is this:
alias: EG-BAD - Rolladen bei Helligkeit öffnen
description: ""
triggers:
- trigger: state
entity_id:
- binary_sensor.prasenz_hlk_pm_eg_bad_decke
to:
- "on"
from: null
conditions:
- condition: and
conditions:
- condition: time
after: "07:00:00"
before: "12:00:00"
weekday:
- mon
- tue
- wed
- thu
- fri
- sat
- sun
- condition: numeric_state
entity_id: sensor.dammerung_lux_ws_dg_aussen_jung_2225
above: 300
- condition: state
entity_id: cover.rolladen_eg_bad_fenster
state:
- closed
actions:
- if:
- condition: numeric_state
entity_id: sensor.temperatur_pt1000_eg_aussen_nordseite_erker
below: 2
then:
- parallel:
- action: cover.set_cover_position
metadata: {}
target:
entity_id: cover.rolladen_eg_bad_fenster
data:
position: 90
- if:
- condition: state
entity_id: light.stripe_dusche_nische_eg_bad
state:
- "on"
then:
- delay:
hours: 0
minutes: 0
seconds: 7
milliseconds: 0
- action: light.turn_off
metadata: {}
target:
entity_id: light.stripe_dusche_nische_eg_bad
data: {}
- if:
- condition: state
entity_id: light.stripes_klo_eg_bad
state:
- "on"
then:
- delay:
hours: 0
minutes: 0
seconds: 7
milliseconds: 0
- action: light.turn_off
metadata: {}
target:
entity_id: light.stripes_klo_eg_bad
data: {}
else:
- parallel:
- action: cover.open_cover
metadata: {}
target:
entity_id: cover.rolladen_eg_bad_fenster
data: {}
- if:
- condition: state
entity_id: light.stripe_dusche_nische_eg_bad
state:
- "on"
then:
- delay:
hours: 0
minutes: 0
seconds: 7
milliseconds: 0
- action: light.turn_off
metadata: {}
target:
entity_id: light.stripe_dusche_nische_eg_bad
data: {}
- if:
- condition: state
entity_id: light.stripes_klo_eg_bad
state:
- "on"
then:
- delay:
hours: 0
minutes: 0
seconds: 7
milliseconds: 0
- action: light.turn_off
metadata: {}
target:
entity_id: light.stripes_klo_eg_bad
data: {}
- action: automation.turn_off
metadata: {}
target:
entity_id: automation.eg_bad_rolladen_bei_helligkeit_offnen
data:
stop_actions: false
mode: single
My problem is now, when motion is detected and it is under 2 grad celsius, the cover should go to 90%. HA shows, that the cover moves to 90% but the cover does noting. When I try to go to some percentage in HA visu, the cover does also not move a bit.
When the cover is open and I try to get to 90%, that everything is working fine. It does not work only when the cover is closed before, then I am not able to go to a percentage position. When it is more the 2 grad celsius, the cover goes to open without any problems.
What could be the problem?
Greetings
Martin