Calendar entry

With the help of this example logic group, the status changes of window contacts, for example, are entered in the Google Calendar as an event.
This means that the times when and which window was opened or closed are recorded in a Google calendar.

A free IFTTT and Google account is required for this logic group.

 

To the logic group:
Via the eight input elements, the logic group receives the information whether one of the windows has been opened or closed.

Since the status of the window contact is received as a 1-bit value, the "translator" tool translates the value into a meaningful text. This is the text that is passed via the http request element and entered in the calendar as the name of the event.
Example for the "translator" tool for the window contact in the office: For value "1" -> "Office. Window open" and value "0" -> "Office. Window closed".

This text is sent to the input of the logic editor element "http request".

In parallel, from all inputs, via a "translator" tool that always sends the value "1" regardless of the received value and input element, are forwarded to a delay.
The following delays ensure that the text at the http request element "IN1" is present before the http request is triggered.

If the http request is triggered by the TRIG input, the calendar entry is created.

IFTTT:
In addition to the webhooks as triggers, the recipe (Google Calendar) "Quick add event" is also required.
For the "Quick add event" recipe, the "Quick add text" field must be adjusted. In the example, the following entry "KNX Event. {{Value1}}" was used.
The text "KNX Event. followed by {{Value1}} is the name of the calendar entry. Here {{Value1}} is the text that is passed by the logic group.

Note. This logic group is designed so that when the window contact is open, a 1 is sent.
If this is not the case, it can be changed by an inverter tool, just after the input elements.

Calendar entry

639
This logic group is compatible with: EP, LOM
*With the download you accept the Notes on use for logic groups.