Time and event based automation

HomeGenie Mini devices also include a scheduler that can be configured using the Panel app.
The scheduler can control lights, switches, transceivers and other hardware implemented by the device or any other external service using HTTP.
All scheduler features are built-in and do not require any gateway, cloud or internet connection to work.

Scheduler configuration

The device scheduler can calculate solar times based on the configured location so that is possible to create schedules that control things such as sprinklers, shades, shutters, night lighting and for any other application where the sun position might be used as a time reference.
This functionality is based on the device location that can be configured during the setup process or later from the connections setup page.

Adding a schedule

By tapping the menu button on the bottom bar of a widget "..." you can open the scheduler page and list, edit, delete or add schedules.

The following video show an example scheduling for the LED sign of a store. The LED sign will be switched on Monday to Thursday from 9.30 AM to 1 PM and from 2.30 PM to 5 PM.

Once a schedule is added to a module it can also be used in other modules of the same type, and if the schedule is deleted it will be no longer available for all modules using it.

Scheduling based on module events

It's also possible to trigger a schedule when a module event occurs by activating the flag "Triggers following a module event". In this case, in addition to the scheduled time, the schedule will be triggered only when the specified events occur.

In the example below a motion detection sensor will trigger a schedule to turn on selected lights (bound modules) only when motion is detected and the light level is less than 120.

Scheduling HVAC systems with IR/RF

With an IR/RF transceiver device such as Firefly it is also possible to schedule the sending of IR/RF commands to control and automate appliances.

In the "Action to perform" section of a schedule, select the preset action "Remote control commands" for this purpose as shown in the following picture.

Tapping the settings_remote button next to the "Commands" field it is possible to capture the command directly by issuing it on the original device remote control.
More than one command can be specified each on a different line and can be optionally followed by two parameters separated by a slash. The first indicates how many times the command has to be repeated and the second one, that is as well optional, indicates the delay between each command in milliseconds.

Advanced scheduling

Scheduling based on sun position

When creating automated task for applications such as smart shutters or an irrigation system, the sun position might be an important variable to consider in order to achieve better settings.

With a "Cron expressions" type schedule you can use the "@SolarTimes" variables to create time references relating to the position of the sun (sunrise, solar noon, sunset).

To learn more about this topic you can consult the examples included in the HomeGenie Server "About cron expressions" documentation.

Custom actions with JavaScript

The "Action to perform" of a schedule can also be implemented with a custom JavaScript code rather than using preset actions. With a script it is also possible to use HomeGenie API and do things like controlling configured modules, calling web services and read the response as JSON or, as shown in the example below, pinging a host and switch on or off a module (e.g. a status LED) to signal when the remote host is online/offline.

arrow_left  Previous
 

More topics

Create!

Programming

forum Q & A Discussion Forum
HomeGenie
MINI 1.2 — Documentation