-
Notifications
You must be signed in to change notification settings - Fork 13
covers are appeared inverted #234
Comments
Open close stop working correctly, but full open in real shows closed , and full closed in real shows opened , also position are working opposite way , going to pos 80 makes cover goes to 20 , going to pos 10 makes cover to go to 90 , i hope i could explain it well |
Yes, I understood that. Would be nice to know if that’s a bug for all or specific for your device. I’m not be at home for three days. I’ll take care on the weekend |
Im outside also can't check rest of covers , will see once im home
…On Mon, 29 Jul 2024, 7:35 pm Tobias Glatthar, ***@***.***> wrote:
Yes, I understood that. Would be nice to know if that’s a bug for all or
specific for your device.
I’m not be at home for three days. I’ll take care on the weekend
—
Reply to this email directly, view it on GitHub
<#234 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AO3B3TDNWILAA47E6JIQSJDZOZVLVAVCNFSM6AAAAABLTTDFECVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJWGM4TMNZSG4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Here, both of my blinds are also displayed in an inverted state. |
I have the.. opposite problem. :) My positions are reported correctly but asking alexa to open the blinds will close them. Zemismart ZM25RZ01-30 rollershade through zigbee2mqtt, motor direction in normal mode (vs reversed). |
its the same problem not different , try for example to open to position 20 and look what happen in real , for me I use shelly cover and its easier to track this |
Yes, same problem in reverse. "Alexa, set the office blinds to 20 percent" -> blinds go to 20%. "Alexa, open the office blinds" -> blinds close (0%) |
@genehand what do you mean with 20%. If Alexa seems to assume that 0% is „open“. what are you experiencing exactly, if it’s not the same as for the others? i‘d do a fix on the weekend inverting it as a first try. |
20% partially open , 100% is full open 0% is full closed |
Could you test in the mean time what happens when setting the position to 20 via home assistant. Currently I just forward the percentage from matter to HA without any change. So I assume 20% (open) for Alexa means 80% in HA ? |
for me i test with ha and smartthings and both works same way as offical shelly app , 0 is closed and 100 is open |
any percent between 0 - 100 is mean partially opened |
the issue with @genehand is abit different , he claims that he can sit the desired position correctly , but for me its sit opposite percent to 100% , if i go 10% the cover goes 90% , if i set 20% the cover goes 80% , and for sure the only correct percent is 50% lol |
The percentages with covers seemed weird to me at first, I think it's based on the amount of light let through. So 0% is closed, 20% is from the bottom, and 100% is fully open.
The position attribute is working correctly for me and showing the same value in zigbee2mqtt, home assistant, and the alexa app. "Set the blinds to 20%" works as expected with the blinds open 20% from the bottom, still covering 80% of the window. "Set the blinds to 100%" works correctly and opens the blinds. The only weird part is that using "Open the blinds" closes them, setting them to 0%. This was working correctly before with matterbridge-zigbee2mqtt, I'd just like to consolidate plugins and have everything go through Home Assistant. @tammeryousef1006 I was wondering if maybe you have the |
thats really confusing , i think matter should follow the entity of ha despite of any other settings , for me the basic commands like (open , close , stop) works perfectly but inverted closed opened , and going to position obvious for me going opposite percentage , i think i should integrate the rest covers and see if all behave the same |
Matter.js specification: Home Assistant (HA Position Template): I will definetly reverse it. In the mean time I got a mocked cover entity working with a input_number and a template-cover entity. Is that the problem you are facing @genehand ? |
Just merged it to main, and triggered the release. Should be fixed with |
for me latest fixed 2.3.2 worked for me thanks |
Hmm yeah now I'm in the inverted scenario where open/close commands work but the percentages go the other way. Makes sense since home assistant and matter don't line up there. I'll try using a template cover entity to flip it. My alexa app also says "Opening". I'd guess that's based on the same "100% = open" logic that doesn't match the matter spec now. Thanks for getting this going! |
Ok that mostly works, in case anyone's interested: cover:
- platform: template
covers:
office_blinds_matter:
device_class: shade
friendly_name: Office blinds
unique_id: office_blinds_matter
availability_template: "{{ has_value('cover.office_blinds') }}"
value_template: "{{ states('cover.office_blinds') }}"
position_template: >
{% set current_position = state_attr('cover.office_blinds', 'current_position') %}
{% if current_position == 100 or current_position == 0 %}
{{ current_position }}
{% else %}
{{ 100 - current_position }}
{% endif %}
set_cover_position:
service: cover.set_cover_position
target:
entity_id: cover.office_blinds
data:
position: >
{% if position == 100 or position == 0 %}
{{ position }}
{% else %}
{{ 100 - position }}
{% endif %}
stop_cover:
service: cover.stop_cover
target:
entity_id: cover.office_blinds The one weird workaround is flipping the full open/close positions between 0 and 100. This makes it possible for "open the blinds" to work, but now "set the blinds to 99%" will open them almost all the way while "set the blinds to 100%" will close them. I'd never use the 100% command so it works for me 😄 |
Mine is also incorrectly inverted now in Alexa with >=2.3.2 |
Yes, I agree, I could do it but shouldn’t we get it working correctly anyway? Could it be related to the type / device class of the covers? Or is there any attribute at the entity to indicate that inversion is needed? |
What I was thinking about is: what if home assistant inverts the visualizations of specific device classes? Meaning that it shows as 90% but the value is actually 10% ? |
@t0bst4r i think you can add it to the config of home assistant inside matterbridge GUI incase others want to reverse or keep |
Unfortunately those settings are setup in the main matterbridge project and afaik not easy to extend through the plugins independently. |
Ok I just put the zigbee2mqtt plugin back in the mix for one of the blinds to compare. Turns out open/close works but the percentages are inverted there too 😉 Looks like we stumbled into a rats nest: https://community.home-assistant.io/t/cover-entities-that-are-0-open-and-100-closed/581979 My only other cover entity is a garage door controlled with ratgdo. Looks like the home assistant/esphome convention is that 100% = open while matter is using 100% = closed. Oh hold up, zigbee2mqtt has an option for Invert Cover:
I'll try that for my case but don't know if we'll be able to work out a general autodetection for it. |
Definitely a possibility. My use case is a garage door opener using ESPHome on a ratgdo but unfortunately I don't have any other cover devices to test such as blinds. When I open my garage to 10% the state in home assistant shows "open" and here are the attributes from the dev tools states page.
Probably not relevant, but do you know what |
I encourage everyone here to vote/comment on https://community.home-assistant.io/t/configurable-cover-entities-to-invert-close-open/409595 😄 |
Although I completely agree that's something that should be configurable, it's only partially applicable to this issue. I feel like the bigger issue here is the inversion of |
Agreed, the issue is that the matter spec says 10% means 10% closed and that's what we're integrating with here. So even if you invert the position like I've tried various ways, you then need special handling for open & close. |
Okay, for now I'd go with a config approach:
This configuration will be configurable for the whole domain or overridable per entity - you can choose where to configure it. I just don't know how I'd add this config to the HA addon config... |
Thanks so much! Edit: Only |
I would be interested if it’s then working as expected for @genehand 😂 Could somebody already test it with the HA Addon? I‘ve added the override object as a json string to the config. Unfortunately there is no object or json type for Addon configs. |
I tried the Addon on my test server and it works correctly, however I realized I made a mistake before on my main config.
It's actually a good thing I tested this. I forgot I had an alexa routine for "close garage door" that set it to 0% so even though it closed, it was overriding the normal close command and setting the percentage which "worked" |
All good here now too with the same invert: false and swap: true 😎 |
What happened?
my cover already fully opened and appears fully close at matter , if i set position to 80% then at matter appears opened to 20% , its working opposite way
Your configuration
official ha add on
Relevant log output
Version
latest
The text was updated successfully, but these errors were encountered: