Page 1 of 1

How to create rules in Domoticz Web UI

Posted: Saturday 24 September 2016 9:32
by antares
Hello,

though I'm new to the area of home automation, I am amazed what a great work has been done by the community. I managed to install Domoticz on a Raspberry Pi and to add some Z-Wave devices like temperature and motion sensors and wall plugs, and Danfoss living connect. So far so good...

Now, unfortunately, I haven't yet managed in Domoticz to figure out how I can configure some rule like "if the room temperature is below 22 degrees, turn on heating" or "if door is opened and it is dark (light sensor), turn on the lights". I tried to play around with scenes, but I was not able to get other stuff created like "at sunset turn on the lights". Unfortunately, I was also not able to find out more by searching the forum or Google (provided, I might not have used the right keywords and missed it).

Could somebody please help me to figure out, how I can create rules like the above using the Domoticz web UI, such that the home gets really "smart"?

Thanks a lot in advance!

Re: How to create rules in Domoticz Web UI

Posted: Saturday 24 September 2016 9:54
by Egregius
Start with blockly for simple things.
Continue with scripts in lua, shell, php etc for advanced stuff.

Re: How to create rules in Domoticz Web UI

Posted: Saturday 24 September 2016 10:39
by antares
Hi!

Thanks. I read about it, but I didn't find yet where to configure it... aaaah -- it's not under the "main" menu but under the settings -> more settings. I didn't see that.

Are those event rules directly activated then or do I need to activate them from somewhere else as well?

Thanks a lot! I feel like I was blind.

Re: How to create rules in Domoticz Web UI

Posted: Saturday 24 September 2016 10:47
by emme
you can shoose between different method:

ALL - the script/blocky runs and at the end restarts immediately
DEVICE - the script runs when ANY configured device changes its state. Your script should handle the device needed
SECURITY - script is activated when a security device changes its state
TIME - runs once a minute

Re: How to create rules in Domoticz Web UI

Posted: Wednesday 11 April 2018 19:54
by rowanbradley
> aaaah -- it's not under the "main" menu but under the settings -> more settings. I didn't see that.

I don't understand this. As far as I can see, Domoticz doesn't have a Settings menu. It has Setup, but under Setup there is no More Settings (or More Setup) sub-menu. Can someone please explain to me how I set things up to take a temperature measurement every 5 minutes?

Thank you - Rowan

Re: How to create rules in Domoticz Web UI

Posted: Thursday 12 April 2018 8:57
by snellejellep
maby this screenshot can help you?
Image

Re: How to create rules in Domoticz Web UI

Posted: Thursday 12 April 2018 9:02
by Egregius
In English: Setup -> More Options -> Events

Re: How to create rules in Domoticz Web UI

Posted: Thursday 12 April 2018 19:49
by blauwebuis
If you install the Aurora theme you gain the ability to import and export your blockly's

Re: How to create rules in Domoticz Web UI

Posted: Thursday 12 April 2018 20:30
by cogliostrio
Have a look in the wiki. It has a very good entry on blockly.
https://www.domoticz.com/wiki/Blockly