Abfall-Abfrage Converter

Convert iCal links for smart home systems

Deutsch English

Documentation: Smart Home Integrations

Here you will find detailed instructions for integrating the Abfall-Abfrage Converter into various smart home systems. Select the desired system from the tabs below.

Loxone Integration

Prerequisites

  • Loxone Miniserver (all generations)
  • Loxone Config software (free download from loxone.com)
  • Your personal link code from the Abfall-Abfrage Converter

Step-by-step setup

  1. Create a Virtual Input: Create a new Virtual Input and insert the JSON URL into the URL field.
    https://abfall-abfrage.com/abfall/public/api.php?code=YOUR_CODE

    A polling cycle of 86400 seconds can be selected – this updates the data every 24h (conserves resources for both Loxone and the API).

    Loxone Virtueller Eingang
  2. Create a Virtual HTTP Input Command: Add a new "Virtual HTTP Input Command" to the new virtual input.

    To extract the next date for a waste type (e.g. waste paper), insert the following into the command recognition field:

    \i"title": "Waste paper"\i\i"unix_date":\i\v
    Loxone HTTP Eingang Befehl

    The result is the Unix timestamp of the next collection date.

  3. Add a Formula Block: Insert a new Formula Block and connect the Virtual Input Command to I1 of the formula block.

    To display the Unix timestamp as a correct date in a Virtual Status, it needs to be converted:

    • Loxone always counts from 01.01.2009
    • Unix timestamp counts from 01.01.1970
    • This results in a difference of 1,230,768,000 seconds

    Insert the following formula into the formula block:

    I1 - 1230768000
    Loxone Formel-Baustein
  4. Add a Virtual Status: Insert a new Virtual Status and connect the result of the formula block to it. Enter the desired date format as the unit.

    The result in the editor:

    Loxone Ergebnis im Editor

    In the User-App it looks like this:

    Loxone Ergebnis in der User-App
  5. Logic & reminders: Different logic blocks and reminders can then be connected to this.

Patterns for other waste types:

Residual waste:  \i"title": "Residual waste"\i\i"unix_date":\i\v
Waste paper:     \i"title": "Waste paper"\i\i"unix_date":\i\v
Yellow bag:      \i"title": "Yellow bag"\i\i"unix_date":\i\v