Good afternoon,
I have a problem integrating the maxcio blinds, and that is that when I press the up keys, the blind goes down and when I press the down key, the blind goes up, is there any way to change the action of the arrow icon or to change the icon?
Thank you.
krskrab
February 14, 2023, 4:19pm
2
cover.blinds_curtain = My cover
Add new cover
configuration.yaml
cover:
- platform: template
covers:
blinds2:
friendly_name: "blinds2"
unique_id: blinds_2
position_template: "{{ 100 - state_attr('cover.blinds_curtain', 'current_position') | int(100) }}"
open_cover:
service: cover.close_cover
data: {}
target:
entity_id: cover.blinds_curtain
close_cover:
service: cover.open_cover
data: {}
target:
entity_id: cover.blinds_curtain
stop_cover:
service: cover.stop_cover
data: {}
target:
entity_id: cover.blinds_curtain
set_cover_position:
service: cover.set_cover_position
data:
position: "{{100-position}}"
entity_id: cover.blinds_curtain
Orginal and New
/
If you add to new cover, add:
to change the icon:
icon_template: >-
{% if is_state('cover.blinds2', 'closed') %}
mdi:blinds-open
{% else %}
mdi:blinds
{% endif %}
Or, to change the picture:
entity_picture_template: >-
{% if is_state('cover.blinds2', 'open') %}
/local/foto1.jpg
{% else %}
/local/foto2.jpg
{% endif %}