Page 1 of 1

Open() and Close() are reversed

Posted: Wednesday 13 June 2018 16:59
by OlivierFR
Hello,
I'm using a script to control my blinds.
The state returned is correct (Open, Closed, Stopped)
If my blind is opened (up), the blind.state shows 'open'.
If I send the command blind.close(), nothing will happen (it will stay up).
If I send the command blind.open(), it will close (go down).
If I send the command blind.stop(), it will stop or move to the favorite position. This is correct.

If the blind is closed (down) and I send the command blind.close(), it will go up.

So the commands open() and close are reversed!

Can this be fixed?

Thanks,
Olivier

Re: Open() and Close() are reversed

Posted: Wednesday 13 June 2018 17:42
by u01pei
Maybe you should select "blinds inverted" for your device, or if you already did select inverted, switch to the non-inverted blinds?

Re: Open() and Close() are reversed

Posted: Wednesday 13 June 2018 21:43
by OlivierFR
The device is defined as blinds (not inverted) and it works correctly in Domoticz UI.
It says closed when it’s down and the open / close buttons work correctly (correct direction).
If I set it up as blinds inverted, everything is reversed (buttons, open/close status).
When my script sends a blind.close(), I can see in the log that it actually sends a ‘Off’ command, and this opens the blind...
So the issue is clearly in dzvents which seems to translate the open() and close() functions to the inverted On / Off commands.

Re: Open() and Close() are reversed

Posted: Monday 16 July 2018 20:10
by Themahop
I have the same issue over here. Its a Somfy blind. UI showing correct words, also buttons work correct. But in dzvents i need to call .open() to close and .close() to open. Offcourse when you know it, its workable, but could be better

Re: Open() and Close() are reversed

Posted: Tuesday 17 July 2018 8:31
by emme
Themahop wrote: Monday 16 July 2018 20:10 I have the same issue over here. Its a Somfy blind. UI showing correct words, also buttons work correct. But in dzvents i need to call .open() to close and .close() to open. Offcourse when you know it, its workable, but could be better
does it works inverted if the configuration is "blind inverted"?
could be a but that does not consider the configuration of the device.....