Dear all..
Is there someone that have a example for me in dzvents: a switch X on for x minutes
And in that option when switch X is off then on
And the other option when switch Y is of then turn on X for x minutes
The thing i am searching for, is when my solarpanels are working my dummy Y is on, then i need X is on.
Only when my solarpanels stop working so Y is OFF, i need a timer that set the X switch on for x minutes.
With this option i can set a lot of devices to ON when my pannels are working.
Only if the pannels are not working, i need to set some devices to ON for charging etc etc
Hope there is ...
Some example DZ vents
Moderator: leecollings
-
Derik
- Posts: 1605
- Joined: Friday 18 October 2013 23:33
- Target OS: Raspberry Pi / ODroid
- Domoticz version: BETA
- Location: Arnhem/Nijmegen Nederland
- Contact:
Some example DZ vents
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
-
hoeby
- Posts: 531
- Joined: Saturday 02 June 2018 11:05
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V2022.1
- Location: Echt, Netherlands
- Contact:
Re: Some example DZ vents
Why do you need it whit DZ vents?
You could make that with blocky
Blocky gives the oppertunity when dummy Y = ON --> switch X = ON
Also blocky give the oppertunity when dummy Y = OFF --> switch X OFF after ? seconds
You could make that with blocky
Blocky gives the oppertunity when dummy Y = ON --> switch X = ON
Also blocky give the oppertunity when dummy Y = OFF --> switch X OFF after ? seconds
Thin-client --> Docker Domoticz main environment
Pi3A+ --> Google home (GAssistPi)
Pi3B+ --> Docker (P1monitor, Domoticz test environment, Ubiquity controller)
Pi3A+ --> Google home (GAssistPi)
Pi3B+ --> Docker (P1monitor, Domoticz test environment, Ubiquity controller)
-
Derik
- Posts: 1605
- Joined: Friday 18 October 2013 23:33
- Target OS: Raspberry Pi / ODroid
- Domoticz version: BETA
- Location: Arnhem/Nijmegen Nederland
- Contact:
Re: Some example DZ vents
In blockley i do have less options for a timer when the other switch is off
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
-
hoeby
- Posts: 531
- Joined: Saturday 02 June 2018 11:05
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V2022.1
- Location: Echt, Netherlands
- Contact:
Re: Some example DZ vents
Give you an advice to read the wiki about DZvents.
You also asked for something about day in month. Also that information could be found in de wiki.
Just copied these example scripts out of the wiki.
They need to be modified to what you need. They are not complete, so do not copy them and paste them in dzvents, it will not work
You also asked for something about day in month. Also that information could be found in de wiki.
Just copied these example scripts out of the wiki.
They need to be modified to what you need. They are not complete, so do not copy them and paste them in dzvents, it will not work
Code: Select all
-- switch on for 2 minutes after 10 seconds
device.switchOn().afterSec(10).forMin(2)
-- switch on for 2 minutes after a randomized delay of 1-10 minutes
device.switchOff().withinMin(10).forMin(2)
device.close().forMin(15)
device.open().afterSec(20)
device.open().afterMin(2)Code: Select all
if (light.active) then
light.switchOff().afterMin(5)
else
light.switchOn().forMin(5)
end
Code: Select all
on = {
timer = {
'on 23/11', -- (2.4.0) on 23rd of november (dd/mm)
end
},
}
Thin-client --> Docker Domoticz main environment
Pi3A+ --> Google home (GAssistPi)
Pi3B+ --> Docker (P1monitor, Domoticz test environment, Ubiquity controller)
Pi3A+ --> Google home (GAssistPi)
Pi3B+ --> Docker (P1monitor, Domoticz test environment, Ubiquity controller)
Who is online
Users browsing this forum: No registered users and 1 guest