Hey guys,
Im really new to all this stuff but it seems like a weird error Im getting here.
So I have three shutters in my flat (hooked up to Fibaro roller shutter 2). As you might know, HA has some problems with the up- and down buttons (up was down and down was up for me).
So I created a template shutter for each of these - and they work!
But somehow - although I configured all three in the same way, two shutters wont accept the set_cover_position
command and instead fully open or fully close. Only for one it works perfectly.
This is my configuration.yaml:
cover:
- platform: template
covers:
shutter_bedroom:
device_class: shutter
friendly_name: "Rolladen Schlafzimmer"
position_template: "{{ 100 - (state_attr('cover.rolladen_schlafzimmer', 'current_position') | int) }}"
open_cover:
service: cover.close_cover
data:
entity_id: cover.rolladen_schlafzimmer
close_cover:
service: cover.open_cover
data:
entity_id: cover.rolladen_schlafzimmer
stop_cover:
service: cover.stop_cover
data:
entity_id: cover.rolladen_schlafzimmer
set_cover_position:
service: cover.set_cover_position
data:
entity_id: cover.rolladen_schlafzimmer
position: "{{ 100 - (position) }}"
shutter_livingroom_main:
device_class: shutter
friendly_name: "Rolladen Wohnzimmer (Groß)"
position_template: "{{ 100 - (state_attr('cover.rolladen_wohnzimmer_gros_2', 'current_position') | int) }}"
open_cover:
service: cover.close_cover
data:
entity_id: cover.rolladen_wohnzimmer_gros_2
close_cover:
service: cover.open_cover
data:
entity_id: cover.rolladen_wohnzimmer_gros_2
stop_cover:
service: cover.stop_cover
data:
entity_id: cover.rolladen_wohnzimmer_gros_2
set_cover_position:
service: cover.set_cover_position
data:
entity_id: cover.rolladen_wohnzimmer_gros_2
position: "{{ 100 - (position) }}"
shutter_livingroom_door:
device_class: shutter
friendly_name: "Rolladen Wohnzimmer (Tür)"
position_template: "{{ 100 - (state_attr('cover.rolladen_wohnzimmer_tur_3', 'current_position') | int) }}"
open_cover:
service: cover.close_cover
data:
entity_id: cover.rolladen_wohnzimmer_tur_3
close_cover:
service: cover.open_cover
data:
entity_id: cover.rolladen_wohnzimmer_tur_3
stop_cover:
service: cover.stop_cover
data:
entity_id: cover.rolladen_wohnzimmer_tur_3
set_cover_position:
service: cover.set_cover_position
data:
entity_id: cover.rolladen_wohnzimmer_tur_3
position: "{{ 100 - (position) }}"
The shutter_bedroom works but the other two have this issue. Do you have any idea whats wrong here? Thank you in advance!