Asystent AI
Odwrócone rolety w ...
 
Powiadomienia
Wyczyść wszystko

Odwrócone rolety w HA - template cover

1 Wpisów
1 Użytkownicy
0 Reactions
901 Wyświetleń
(@kawiusz)
Wpisów: 3
Bywalec
Autor tematu
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 
[#5935]

Witam, 

Od niedawna siedzę w temacie HA. 

System postawiony na terminalu hp t620 + Sonoff Zigbee 3.0 USB Dongle Plus
Rolety zintegrowane w Zigbee2MQTT - widnieją jako model TS130F

Sterowanie fizycznymi przyciskami jest ok, działa jak należy.

Problem pojawia się bezpośrednio w HA.
W aplikacji są odwrócone przyciski.
Zamknij - otwiera roletę
Otwórz - powoduje jej zamknięcie

Słyszałem, że cover template rozwiązuje problem. Znalazłem też stary wątek na forum, który mnie nakierował na rozwiązanie tematu.

Niestety rozwiązanie działa tylko w przypadku, gdy chcę odwrócić jedną z trzech rolet do ogarnięcia...

Później nie pojawiają się następne ''odwrócone encje'' a poprzednia jest na szaro z komunikatem - ta encja nie jest dostarczana przez template.

Poniżej wklejam mój plik configuration. Proszę o korektę, naprowadzenie gdzie leży błąd. 

# Loads default set of integrations. Do not remove.
default_config:

# Load frontend themes from the themes folder
frontend:
themes: !include_dir_merge_named themes

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

external_converters:
- ext_converter.js
cover:
- platform: template
covers:
roleta_maly_pokoj2:
friendly_name: "Roleta mały pokój2"
unique_id: roleta_maly_pokoj2
position_template: "{{ 100 - state_attr('cover.roleta_maly_pokoj', 'current_position') | int(100) }}"
open_cover:
service: cover.close_cover
data: {}
target:
entity_id: cover.roleta_maly_pokoj
close_cover:
service: cover.open_cover
data: {}
target:
entity_id: cover.roleta_maly_pokoj
stop_cover:
service: cover.stop_cover
data: {}
target:
entity_id: cover.roleta_maly_pokoj
set_cover_position:
service: cover.set_cover_position
data:
position: "{{100-position}}"
entity_id: cover.roleta_maly_pokoj
# icon_template: >-
# {% if is_state('cover.roleta_maly_pokoj', 'closed') %}
# mdi:blinds-open
# {% else %}
# mdi:blinds
# {% endif %}
cover:
- platform: template
covers:
zaluzja_korekta:
friendly_name: "Żaluzja Korekta"
unique_id: zaluzja_korekta
position_template: "{{ 100 - state_attr('cover.roleta_salon', 'current_position') | int(100) }}"
open_cover:
service: cover.close_cover
data: {}
target:
entity_id: cover.roleta_salon
close_cover:
service: cover.open_cover
data: {}
target:
entity_id: cover.roleta_salon
stop_cover:
service: cover.stop_cover
data: {}
target:
entity_id: cover.roleta_salon
set_cover_position:
service: cover.set_cover_position
data:
position: "{{100-position}}"
entity_id: cover.roleta_salon
# icon_template: >-
# {% if is_state('cover.roleta_salon', 'closed') %}
# mdi:blinds-open
# {% else %}
# mdi:blinds
# {% endif %}
cover:
- platform: template
covers:
Sypialnia_v2:
friendly_name: "Sypialnia_v2"
unique_id: sypialnia_v2
position_template: "{{ 100 - state_attr('cover.roleta_sypialnia', 'current_position') | int(100) }}"
open_cover:
service: cover.close_cover
data: {}
target:
entity_id: cover.roleta_sypialnia
close_cover:
service: cover.open_cover
data: {}
target:
entity_id: cover.roleta_sypialnia
stop_cover:
service: cover.stop_cover
data: {}
target:
entity_id: cover.roleta_sypialnia
set_cover_position:
service: cover.set_cover_position
data:
position: "{{100-position}}"
entity_id: cover.roleta_sypialnia
# icon_template: >-
# {% if is_state('cover.roleta_sypialnia', 'closed') %}
# mdi:blinds-open
# {% else %}
# mdi:blinds
# {% endif %}


 
Dodane : 23/10/2024 2:47 pm
Udostępnij: