Hello
I want to use DZevents to manage my blinds but I have not enough background to start from zero.
So, it would be nice if some of you could share their own script in oder to me to start how it's working.
Regards
Antoine
Script for Blinds
Moderator: leecollings
- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Script for Blinds
I use this very simple script for my two blinds. ("Slaapkamer rolluik" and "Kastenkamer rolluik")
before I close them I check the state of the windows in these rooms ("Slaapkamer raam" and "Kastenkamer raam")
before I close them I check the state of the windows in these rooms ("Slaapkamer raam" and "Kastenkamer raam")
Code: Select all
return {
on = { timer = { "at 10:00", "at 20:00-02:00 every 15 minutes" } },
execute = function(dz)
if dz.time.matchesRule("at nighttime") then
if (dz.devices("Slaapkamer rolluik").state ~= "Closed" and dz.devices("Slaapkamer raam").state == "Closed") then
dz.devices("Slaapkamer rolluik").switchOn()
end
if (dz.devices("Kastenkamer rolluik").state ~= "Closed" and dz.devices("Kastenkamer raam").state == "Closed") then
dz.devices("Kastenkamer rolluik").switchOn()
end
elseif dz.time.matchesRule("at 10:00-11:00") then
dz.devices("Slaapkamer rolluik").switchOff()
dz.devices("Kastenkamer rolluik").switchOff()
end
end
}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
-
Tonio16
- Posts: 45
- Joined: Friday 23 February 2018 20:38
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.9700
- Location: France
- Contact:
Re: Script for Blinds
Thanks Waaren
I will have a look this week-end.
Antoine
I will have a look this week-end.
Antoine
Who is online
Users browsing this forum: No registered users and 1 guest