Page 1 of 1

DZVents LastLevel for blinds switch not working

Posted: Thursday 28 May 2020 11:59
by Doomic
I tried to write a DZVents script for my dummy (percentage) blinds switch. It should toggle a relay depending on the direction and for a time depending on amount of closure (or opening)..

Looks like i know how to write the script. But i want to use the "lastLevel" value so i could know the difference between current (last) level and the new prefered level.
However, device.lastLevel is always equals to the device.level...
i am not sure what the issue is... in the DZVents documentation it says that it is available for dimmers... not specified if it should be available for blinds as well... but because it is not nil i guess it is.

i also could find a bug/fix in github:
https://github.com/domoticz/domoticz/issues/4112
Looks like it was reported 1 day after the 2020.2 release. So it could be that it is indeed a bug and it is already fixed. But i am not 100% sure if it is releated to my issue. And i can't find form posts about broken lastLevel scripts...
But if it is... does anyone know when a new release is planned?

Re: DZVents LastLevel for blinds switch not working

Posted: Thursday 28 May 2020 12:30
by waaren
Doomic wrote: Thursday 28 May 2020 11:59 So it could be that it is indeed a bug and it is already fixed. But i am not 100% sure if it is releated to my issue.
But if it is... does anyone know when a new release is planned?
Is indeed fixed in build 12002. I am not aware of any plans for a new release.

Re: DZVents LastLevel for blinds switch not working

Posted: Thursday 28 May 2020 16:52
by Doomic
to bad... than i have to find another solution (store last value in own variable or something like that). Or i have to build domoticz with the 12002 changeset.
Because i do not expect to see an update soon. (because it looks like that Domoticz is not releasing very often).