The reverse state of the blinds is not implemented completly or correctly (Solved by workaround) Topic is solved

Please use template to report bugs and problems. Post here your questions when not sure where else to post
Only for bugs in the Domoticz application! other problems go in different subforums!

Moderators: leecollings, remb0

Forum rules
Before posting here, make sure you are on the latest Beta or Stable version.
If you have problems related to the web gui, clear your browser cache + appcache first.

Use the following template when posting here:

Version: xxxx
Platform: xxxx
Plugin/Hardware: xxxx
Description:
.....

If you are having problems with scripts/blockly, always post the script (in a spoiler or code tag) or screenshots of your blockly

If you are replying, please do not quote images/code from the first post

Please mark your topic as Solved when the problem is solved.
koewacko
Posts: 13
Joined: Wednesday 29 March 2023 14:03
Target OS: Linux
Domoticz version: 2024.1
Location: NL
Contact:

Re: The reverse state of the blinds is not implemented completly or correctly

Post by koewacko »

To be fair, the script is not the issue. The open and close commands are reversed so to make the script work in 'reverse' is not the solution.
Something has changed which makes the blinds work with the wrong commands.
koewacko
Posts: 13
Joined: Wednesday 29 March 2023 14:03
Target OS: Linux
Domoticz version: 2024.1
Location: NL
Contact:

Re: The reverse state of the blinds is not implemented completly or correctly (Solved by workaround)

Post by koewacko »

I just want to know how i can reverse the commands without changing the position of the blinds.
Kedi
Posts: 561
Joined: Monday 20 March 2023 14:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Somewhere in NL
Contact:

Re: The reverse state of the blinds is not implemented completly or correctly (Solved by workaround)

Post by Kedi »

Post your script here and let's see what can be done.
Logic will get you from A to B. Imagination will take you everywhere.
thaui
Posts: 59
Joined: Sunday 15 March 2015 19:53
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: Hamburg
Contact:

Re: The reverse state of the blinds is not implemented completly or correctly (Solved by workaround)

Post by thaui »

Another issue came up. I am using reversed blind setting. If you open the protocoll of the device, the protocoll is showing "open" when the blind is "closed" and vice versa.
Kedi
Posts: 561
Joined: Monday 20 March 2023 14:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Somewhere in NL
Contact:

Re: The reverse state of the blinds is not implemented completly or correctly (Solved by workaround)

Post by Kedi »

Sometimes there is a setting in zigbee2mqtt (or others) that is not exposed to Domoticz.
In zigbee2mqtt you can find those in 'Settings (specific)'
In my case with some blinds is it called 'invert_cover'
Maybe that kind of setting might help.
Logic will get you from A to B. Imagination will take you everywhere.
User avatar
Thuis
Posts: 251
Joined: Tuesday 11 September 2018 11:36
Target OS: Linux
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: The reverse state of the blinds is not implemented completly or correctly (Solved by workaround)

Post by Thuis »

The only way to close my blinds is to click the "open" icon. Clicking the "close" icon does not do anything.
The only way to open my blinds is to click the "close" icon. Clicking the "open" icon does not do anything.

I played around with domoticz settings "reverse open/close state" and "reverse postition".
Also i changed window cover status of device itself and reverse motor of device itself, but nothing seems to make the blinds move on the correct icon.

Anyone else have an idea?
I Love Domoticz ! And the community around it :-)
brannou
Posts: 13
Joined: Saturday 05 November 2016 15:26
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Location: Paris (France)
Contact:

Re: The reverse state of the blinds is not implemented completly or correctly (Solved by workaround)

Post by brannou »

Hi all,
In my case (a Legrand 067726 wired switch for shutters), it's the reverse position that does nothing. Using the Zigate WEBUI (by setting netatmoInvertShutter to 1), I was able to get them working. The final state (after 2 minutes) is working fine too.

Raspberry Pi 3B, BullsEye 64bits, Domoticz 2023.2, Zigate v1, ZigbeeforDomoticZ Plugin 7.1.007
Shutter switches with:
Reverse Open/Close State checked X
Reverse Position not useful... (checked or not)
netatmoInvertShutter = 1 (via Zigate WEBUI)

Good Luck!

Wouldn't it be better to get the "reverse position" working?
User avatar
Thuis
Posts: 251
Joined: Tuesday 11 September 2018 11:36
Target OS: Linux
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: The reverse state of the blinds is not implemented completly or correctly (Solved by workaround)

Post by Thuis »

I just open the blinds by pressing close and close the blinds by pressing open. That is my workaround. It works, but i have no clue how to change the action that is attached to the open or close button.
I Love Domoticz ! And the community around it :-)
User avatar
waltervl
Posts: 5374
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: The reverse state of the blinds is not implemented completly or correctly (Solved by workaround)

Post by waltervl »

Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
Thuis
Posts: 251
Joined: Tuesday 11 September 2018 11:36
Target OS: Linux
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: The reverse state of the blinds is not implemented completly or correctly (Solved by workaround)

Post by Thuis »

Yes i know, thank you, but it does not matter what i do. The BUTTON open is closing blinds and the BUTTON close is opening the blinds. No matter what switch i use reverse open close state, this is the picture of the blind, what changes, so this works. Reverse position, this is the slider, which shows inverted. But, pressing close, will still open the blinds, and pressing open will still close the blind. No matter what combination i set on the slideswitches options thingy. The slidewitch options, only invert the picture, not the behaviour of the buttons. At least, not on my blinds.

Perhaps a third option could be implemented which invert the behaviour of the close and open BUTTONS. So button close becomes open, and button open becomes close. Then when that is the case, then i can click open and it opens and i click close it closes, now it is the other way around.
I Love Domoticz ! And the community around it :-)
User avatar
waltervl
Posts: 5374
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: The reverse state of the blinds is not implemented completly or correctly (Solved by workaround)

Post by waltervl »

What Hardware gateway is behind these blinds (eg MQTT AD, a specific Python Plugin, Dummy) as it should behave differently when switching the state setting on Blinds.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
Thuis
Posts: 251
Joined: Tuesday 11 September 2018 11:36
Target OS: Linux
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: The reverse state of the blinds is not implemented completly or correctly (Solved by workaround)

Post by Thuis »

Sorry for not responding it has been a while busy busy. I just bought another blind switch module, and this one has the same euvel.

I use conbeeII stick with deconz. They are tuya zigbee modules.

So it is now closed, but it says it is open. I can click close, but it stays open. I click open, it closes.
Then it is open, but it says close. I can click open, but it stays close. I click close, it opens.

Then if i do the reverse state, the icons are correct, so close is closed icon and close text, but still the same as above. Only the icons and text changes.
I still have to click on open to close it and on close to open is. It does not matter what i do. I even try to change the wiring on the motor, but that does not do anything either.

In the phoscon app i put it open 0%, it opens, close 100% it closes. No idea why it is not working, perhaps i also need to trick it with virtual hardware to get it correct.
I Love Domoticz ! And the community around it :-)
User avatar
waltervl
Posts: 5374
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: The reverse state of the blinds is not implemented completly or correctly (Solved by workaround)

Post by waltervl »

You have to check with the deconz python plugin owner how to debug this. https://github.com/Smanar/Domoticz-deCONZ
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
Thuis
Posts: 251
Joined: Tuesday 11 September 2018 11:36
Target OS: Linux
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: The reverse state of the blinds is not implemented completly or correctly (Solved by workaround)

Post by Thuis »

I have to check with phoscon? But in the phoscon app it works correctly. So open = open = 0% and close = closed = 100% In phoscon app there is no open or close butten, only a slider. On top is 0% open, and 100% on the bottom which is closed. So this works correctly. In domoticz however, when the blind is open, the icon is open, when i click on the close icon, nothing happens, then i click the open icon, it closes, when it is closed, the close icon is lit up. Then when i want to open i have to click the closed icon. Also when i say, ok google open the blind, it opens, and ok google close the blind, it closes, so the open and close command work in the scripts. Also ok google set blind on 20% open or close, also works. The only thing is i have to click the opposite icon for opening and closing the blind on the switch. I played with the options reversed close/open position, but the click behaviour of the icons stays the same. Click on open to close blinds and click on close to open blinds. And the icons show the correct position.

But ill check in with smanar.
I Love Domoticz ! And the community around it :-)
meal
Posts: 106
Joined: Monday 04 March 2019 14:59
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Location: France
Contact:

Re: The reverse state of the blinds is not implemented completly or correctly (Solved by workaround)

Post by meal »

Hello,

I am running Domoticz Version: 2024.7 (build 16265)
Build Hash: 03baca333
Compile Date: 2024-09-19 09:36:13
dzVents Version: 3.1.8
Python Version: 3.9.2 (default, Feb 28 2021, 17:03:44) [GCC 10.2.1 20210110]

I have fixed the issue by replacing in file /home/pi/domoticz/www/js/domoticzdevices.js the lines 1406 ->1421

Code: Select all

    } else {
        if (item.Status == 'Open') {
            this.image = 'images/blindsopen48sel.png';
            this.image2 = 'images/blinds48.png';
																				   
																					 
        }
        else {
            this.image = 'images/blinds48sel.png';
            this.image2 = 'images/blindsopen48.png';
																					
																					
        }
        this.onClick = 'SwitchLight(' + this.index + ",'Open'," + this.protected + ');';
        this.onClick2 = 'SwitchLight(' + this.index + ",'Close'," + this.protected + ');';
    }
by

Code: Select all

    } else {
        if (item.Status == 'Open') {
            this.image = 'images/blindsopen48sel.png';
            this.image2 = 'images/blinds48.png';
			this.onClick = 'SwitchLight(' + this.index + ",'Open'," + this.protected + ');';
			this.onClick2 = 'SwitchLight(' + this.index + ",'Close'," + this.protected + ');';
        }
        else {
            this.image = 'images/blinds48sel.png';
            this.image2 = 'images/blindsopen48.png';
			this.onClick = 'SwitchLight(' + this.index + ",'Close'," + this.protected + ');';
			this.onClick2 = 'SwitchLight(' + this.index + ",'Open'," + this.protected + ');';
        }
																						
																						  
    }
BR
meal
User avatar
Thuis
Posts: 251
Joined: Tuesday 11 September 2018 11:36
Target OS: Linux
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: The reverse state of the blinds is not implemented completly or correctly (Solved by workaround)

Post by Thuis »

Hey, great, i tried this, but it is still the same, i need to click close to open and need to click open to close. :-(
I think it has to with open being 1% and close being 99%. It never is 0% or 100%.
Last edited by Thuis on Wednesday 25 September 2024 13:21, edited 1 time in total.
I Love Domoticz ! And the community around it :-)
User avatar
waltervl
Posts: 5374
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: The reverse state of the blinds is not implemented completly or correctly (Solved by workaround)

Post by waltervl »

meal wrote: Tuesday 24 September 2024 15:53 Hello,

I am running Domoticz Version: 2024.7 (build 16265)
Build Hash: 03baca333
Compile Date: 2024-09-19 09:36:13
dzVents Version: 3.1.8
Python Version: 3.9.2 (default, Feb 28 2021, 17:03:44) [GCC 10.2.1 20210110]

I have fixed the issue by replacing in file /home/pi/domoticz/www/js/domoticzdevices.js the lines 1406 ->1421
With what hardware gateway are your Blinds controlled? As you should not have to do this change in domoticzdevices.js. It seems the hardware gateway is not supporting the change implemented for Blinds: https://www.domoticz.com/wiki/Blinds
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
Thuis
Posts: 251
Joined: Tuesday 11 September 2018 11:36
Target OS: Linux
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: The reverse state of the blinds is not implemented completly or correctly (Solved by workaround)

Post by Thuis »

conbeeII usb stick
I Love Domoticz ! And the community around it :-)
User avatar
waltervl
Posts: 5374
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: The reverse state of the blinds is not implemented completly or correctly (Solved by workaround)

Post by waltervl »

Thuis wrote: Wednesday 25 September 2024 13:23 conbeeII usb stick
With what plugin or Zigbee2mqtt? If plugin then make an issue on the plugin repository as it seems to do something strange with blinds.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
Thuis
Posts: 251
Joined: Tuesday 11 September 2018 11:36
Target OS: Linux
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: The reverse state of the blinds is not implemented completly or correctly (Solved by workaround)

Post by Thuis »

It is the deCONZ plugin in the hardware section of domoticz.
Yes oke, i will try to contact the plugin maker. I now also have some other trouble to figure out.
Thanks for your answer.
I Love Domoticz ! And the community around it :-)
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests