Comments (7)
Thanks, I'll make a fix.
from slide-domoticz.
I had to switch Close and Open.
@bvhoesel Can you test latest version?
from slide-domoticz.
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'.
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.
from slide-domoticz.
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.
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.
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)
- onHeartbeat function gives error "failed 'TypeError':'can't subtract offset-naive and offset-aware datetimes'." HOT 6
- Still occasional crash HOT 1
- Sill crashing HOT 9
- Status is reversed HOT 8
- Async Secure Read Exception HOT 5
- reduce logging
- reduce tick to prevent disconnect
- Moving to a local API HOT 1
- Plugin & domoticz crash Plugin_ASIO HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from slide-domoticz.