Page 1 of 1
Time switch feature
Posted: Sunday 18 September 2016 10:56
by valdis
Hi,
I am new to Domoticz and also to home automation at all.
At the moment I am searching which home automation software is the right one for my needs.
The main feature that is required for me is an "time switch" functionality to control my self made irrigation system.
Actually I build a simple
webpage and a tool that provide that functionality but it is not very flexible.
Is this possible with Domoticz? I searched already but I can not find such input.
BR
valdis
Re: Time switch feature
Posted: Sunday 18 September 2016 17:55
by oliviers
Hello,
There's a short discussion here in this forum on irrigation valves:
viewtopic.php?f=28&t=11646
It's quite easy in Domoticz to create a planning for the switch that contols the irrigation valve. It is not different than any other switch.
Oliviers
Re: Time switch feature
Posted: Monday 19 September 2016 19:55
by valdis
Hi,
thanks for the reply.
The topic does not help me very much.
Im not interested in connection to the valves (I think that should work) my problem is the user interface.
The timers that I can set in the switch sections looks more like static timer and not for more frequently changed ones (on the dashboard for example).
Additional I checked this timer with the Android App
Domoticz and there I can not change the timer.
I there understanding problem or is this not supported?
BR
valdis
Re: Time switch feature
Posted: Tuesday 20 September 2016 16:10
by FuTuReD
Hi,
You can switches makes depends on different other switches or timers (on dashboard or not), daytime/nighttime, sunset etc.
Which blockly events you can build easily your own dependencies. If this is not enough you can script this in lua. There are plenty examples that you can use.
good luck
Re: Time switch feature
Posted: Tuesday 20 September 2016 17:03
by emme
Domoticz can do that and many other stuff!
Since I have the sane problem (project) as you, I have my irrigation system on my balcony that sends parameters to domoticz.
Then, Domoticz, based on script, parameters, user variables take the action and command the irrigation
All is made with istruction send via SSH or HTTP (using JSON/API)
Everything can be made, but you need to add your personal hand on your system

Re: Time switch feature
Posted: Tuesday 20 September 2016 17:37
by valdis
Hi,
thanks for the fast replies.
I know that my irrigation system does not work like plug & play, but that is not the problem.
My problem is that I need a user interface that is easy to use for a non technical user. He should be able to manually switch the state of a valve (or a light) or add/change/remove switch times.
The timers in the switch section are really powerful but also very complex to use.
I only need a subset of this action (simple switch on/off by date/time) that also work with an android app or an other dashboard system that I can use with an android tablet like a control center.
The connection between domoticz and my irrigation system is not the problem (does not exist at the moment but I can test the timer with a hue bridge).
BR
valdis
Re: Time switch feature
Posted: Tuesday 20 September 2016 17:47
by Egregius
So just a webpage with simple commands?
Like:
On/off
On for 5 minutes
On for 10 minutes
...
Re: Time switch feature
Posted: Tuesday 20 September 2016 17:52
by valdis
more like this (see attachment)
Re: Time switch feature
Posted: Wednesday 21 September 2016 21:44
by oliviers
Well,
1. Go into "settings", and check "custom" in "Active Menus"
2. Store your web page in /home/pi/domoticz/www/template and modify index.html to point to it
3. Assign the right script ot http command to each of your buttons
Your Web page will be accessible via the "Custom" tab in Domoticz.
Does this do the job ?
Oliviers
Re: Time switch feature
Posted: Thursday 22 September 2016 17:19
by valdis
Hi,
I have tried this and it may work for my needs.
I have tested and get a custom page working.
Now there are some new Questions:
- Is it required that I manually call the JSON-API or is there a smarter way?
- Is there a way to show the custom page in full screen?
- How can I add/edit a new timer to a device with the API? (I only found "scenetimers" command in the wiki)
- If I get {"status" : "ERR"} for a API request, is there a more detailed error message?
thanks for the help
valdis
Re: Time switch feature
Posted: Friday 23 September 2016 11:12
by maluko
Hi,
At this moment i am testing my irrigation system with:
- RPI domoticz
- ESP-07 with espeasy and 4 relay
- 4 valves
- 24 VAC
First my domoticz system are at home and comunicates with esp by WIFI.
On Espeasy create 4 switch task to inform the state of valve to domoticz switch (carefull because you have to change the init boot of esp gpio so when the power goes off, all gpio go off on boot, and i use too the espeasy rules to put the security time that reject the valve work more then 20 min).
At domoticz create 2 switch for each valve, one to turn off/on manualy (with "On/OFF action" json link to espeasy) and other to see the status of valve sended by esp.
To create timer i use scenes, like one 5 min, 10 min, 15 min, i never put the all valve working at the same time so on each scene i configure this(On valve1-5 min-Off valve1- On valve2- 5 min- Off valve2- etc).
My goal is to create a seletion switch that can alternate the scenes timer like when select 5 min scene the 10 an 15 min goes inative, so more intuitive.
thanks
Re: Time switch feature
Posted: Monday 06 July 2020 22:01
by Paul92
valdis wrote: ↑Tuesday 20 September 2016 17:52
more like this (see attachment)
Hi,
can you please post the HTML code of this custom page?
Thanks in advance!