Hi
So, i have a projection screen witch works a switch and comes down from the ceiling.
I already changed the switch in a cover to make it look better but since the screen comes down from the ceiling i was wondering if I can change the function of the standard buttons…
if i push the ‘up’ button, i want the switch to be off so the screens closes and the status to be ‘closed’ witch is the opposite…
I can invert the status; then the buttons work the way i want but then is the status wrong…
This inverts the open/close logic
Add (onfiguration.yaml)
Test:
cover:
- platform: template
covers:
screen_inverted:
friendly_name: "Projector Screen (Inverted)"
unique_id: screen_inverted
position_template: "{{ 100 - (state_attr('cover.blinds_curtain', 'current_position') | int(100)) }}"
open_cover:
service: cover.close_cover
target:
entity_id: cover.blinds_curtain
close_cover:
service: cover.open_cover
target:
entity_id: cover.blinds_curtain
stop_cover:
service: cover.stop_cover
target:
entity_id: cover.blinds_curtain
set_cover_position:
service: cover.set_cover_position
data:
position: "{{ 100 - position }}"
entity_id: cover.blinds_curtain
cover.blinds_curtain
- change
1 Like
Hi, thx for the input and now the buttons works as i want them 
But the status always stay closed. Even when the relay is switched on…
hi, i found a fix by using the stat of the switch! thx for the help!
cover:
- platform: template
covers:
screen_inverted:
friendly_name: "Projectiescherm"
unique_id: screen_inverted
value_template: "{{ is_state('switch.projectie_scher', 'on') }}"
open_cover:
service: cover.close_cover
target:
entity_id: cover.projectie_scher
close_cover:
service: cover.open_cover
target:
entity_id: cover.projectie_scher