Giter Club home page Giter Club logo

Comments (7)

lokonli avatar lokonli commented on June 7, 2024

Thanks, I'll make a fix.

from slide-domoticz.

lokonli avatar lokonli commented on June 7, 2024

I had to switch Close and Open.

@bvhoesel Can you test latest version?

from slide-domoticz.

bvhoesel avatar bvhoesel commented on June 7, 2024

As I already expected from your switch, this does not directly work for me. The suggested code came from the plugin.py I modified to get it working correctly for me.
In my Domoticz config your switch of Open and Close has 'weird' effects. For example 99% closes the curtain and 100% opens it fully.
The various blinds devices in Domoticz have newly added properties in the latest betas. In the device definition I tried enabling, previously disabled, combinations of 'Reverse Open/Close State' and 'Reverse Position:' properties.
I could not find a combination that resulted in the percentage slider to work 'consistently' from fully opening to fully closed (varying % from 0, 1-99 and 100) and the 'Open' and 'Close' actions on the switch device.
Reverting back to my initial proposed 'Open' en 'Closed' if statements I could get a consistent behavior when I enabled the 'Reverse Open/Close State'.
Screenshot at 2022-10-14 10-11-29

You may see some weird/strange commands (open, close and level combinations) getting to the plugin but the curtains work as expected and Domoticz end user GUI even seems consistent.

from slide-domoticz.

lokonli avatar lokonli commented on June 7, 2024

from slide-domoticz.

lokonli avatar lokonli commented on June 7, 2024

ok, new update.
Fixed issue for newer Domoticz version (>14760)
For these Domoticz versions the blinds type has been changed to 'percentage + stop'

In Domoticz just use the default blinds type. Settings 'Reverse Open/Close State' and 'Reverse Position' should be deselected.

@bvhoesel Can you test?

from slide-domoticz.

bvhoesel avatar bvhoesel commented on June 7, 2024

Tested the updated plugin against the latest build as of today: 14573 (not sure what the number >14760 references to).
Changed the device type to 'blinds + stop' and after realizing the percentages now are reversed (one curtain I am not fully opening) the curtains are working as expected.

Big thanks for the fix.

from slide-domoticz.

lokonli avatar lokonli commented on June 7, 2024

The 14760 is my mistake: typo in the title. It should be 14560, and that is approximately the build number of the changes in Domoticz.
Thanks for testing.

from slide-domoticz.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.