Time switch feature

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
valdis
Posts: 5
Joined: Sunday 18 September 2016 10:39
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Time switch feature

Post 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
oliviers
Posts: 73
Joined: Wednesday 16 September 2015 22:10
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: Paris area, France
Contact:

Re: Time switch feature

Post 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
Paris area
Raspberry Pi 4 - RFXComm 433 - IrTrans - Zwave
valdis
Posts: 5
Joined: Sunday 18 September 2016 10:39
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Time switch feature

Post 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
FuTuReD
Posts: 12
Joined: Monday 19 September 2016 12:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Time switch feature

Post 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
User avatar
emme
Posts: 909
Joined: Monday 27 June 2016 11:02
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Milano, Italy
Contact:

Re: Time switch feature

Post 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 ;)
The most dangerous phrase in any language is:
"We always done this way"
valdis
Posts: 5
Joined: Sunday 18 September 2016 10:39
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Time switch feature

Post 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
User avatar
Egregius
Posts: 2589
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: Time switch feature

Post by Egregius »

So just a webpage with simple commands?
Like:
On/off
On for 5 minutes
On for 10 minutes
...
valdis
Posts: 5
Joined: Sunday 18 September 2016 10:39
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Time switch feature

Post by valdis »

more like this (see attachment)
Attachments
2016-09-20_17-50-57.png
2016-09-20_17-50-57.png (38.24 KiB) Viewed 3812 times
oliviers
Posts: 73
Joined: Wednesday 16 September 2015 22:10
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: Paris area, France
Contact:

Re: Time switch feature

Post 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
Paris area
Raspberry Pi 4 - RFXComm 433 - IrTrans - Zwave
valdis
Posts: 5
Joined: Sunday 18 September 2016 10:39
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Time switch feature

Post 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:
  1. Is it required that I manually call the JSON-API or is there a smarter way?
  2. Is there a way to show the custom page in full screen?
  3. How can I add/edit a new timer to a device with the API? (I only found "scenetimers" command in the wiki)
  4. If I get {"status" : "ERR"} for a API request, is there a more detailed error message?
thanks for the help
valdis
maluko
Posts: 105
Joined: Sunday 02 February 2014 23:57
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Portugal
Contact:

Re: Time switch feature

Post 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
Paul92
Posts: 9
Joined: Thursday 16 November 2017 22:58
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.1
Location: Netherlands
Contact:

Re: Time switch feature

Post 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!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest