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?
DZVents LastLevel for blinds switch not working
Moderator: leecollings
- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: DZVents LastLevel for blinds switch not working
Is indeed fixed in build 12002. I am not aware of any plans for a new release.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Re: DZVents LastLevel for blinds switch not working
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).
Because i do not expect to see an update soon. (because it looks like that Domoticz is not releasing very often).
Who is online
Users browsing this forum: Google [Bot] and 0 guests