[ { "id": "Sonnenschutz Garten V9", "automation": "- alias: Sonnenschutz Garten V9\n description: 'Optimierte Steuerung des Sonnenschutzes auf der Gartenseite mit Hysterese,\n Mindestlaufzeit, stabilen Bedingungen und abendlicher Rücknahme.\n\n '\n triggers:\n - entity_id: weather.wetter_jetzt_home\n attribute: temperature\n above: 22\n for:\n minutes: 10\n trigger: numeric_state\n - entity_id: weather.wetter_jetzt_home\n attribute: temperature\n below: 20\n for:\n minutes: 10\n trigger: numeric_state\n - entity_id: weather.wetter_jetzt_home\n to:\n - sunny\n - clear\n - partlycloudy\n for:\n minutes: 10\n trigger: state\n - entity_id: weather.wetter_jetzt_home\n from:\n - sunny\n - clear\n - partlycloudy\n for:\n minutes: 10\n trigger: state\n - entity_id: input_boolean.automation_rolladen_auf\n to: 'on'\n trigger: state\n - entity_id: input_boolean.automation_rolladen_auf\n to: 'off'\n trigger: state\n - at: '19:00:00'\n trigger: time\n conditions:\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ 5 <= now().month <= 9 }}'\n alias: Monate Mai bis September\n - condition: time\n after: '13:00:00'\n before: '18:30:00'\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: input_boolean.automation_rolladen_auf\n state: 'on'\n - condition: state\n entity_id: input_boolean.sonnenschutz_aktiv\n state: 'off'\n - condition: numeric_state\n entity_id: weather.wetter_jetzt_home\n attribute: temperature\n above: 22\n - condition: state\n entity_id: weather.wetter_jetzt_home\n state:\n - sunny\n - clear\n - partlycloudy\n - condition: template\n value_template: '{% set last = states(''input_datetime.last_rolladen_move'')\n %} {{ last != ''unknown'' and (now() - strptime(last, ''%Y-%m-%dT%H:%M:%S'')).total_seconds()\n > 3600 }}\n\n '\n sequence:\n - target:\n entity_id: input_boolean.sonnenschutz_aktiv\n action: input_boolean.turn_on\n data: {}\n - data:\n title: Sonnenschutz aktiviert\n message: Rolläden auf der Gartenseite werden gesenkt.\n action: notify.notify\n - delay: 00:01:00\n - target:\n entity_id: scene.rolladen_sonnenschutz_garten\n action: scene.turn_on\n data: {}\n - data:\n entity_id: input_datetime.last_rolladen_move\n datetime: '{{ now().isoformat() }}'\n action: input_datetime.set_datetime\n - conditions:\n - condition: state\n entity_id: input_boolean.sonnenschutz_aktiv\n state: 'on'\n - condition: or\n conditions:\n - condition: numeric_state\n entity_id: weather.wetter_jetzt_home\n attribute: temperature\n below: 20\n - condition: not\n conditions:\n - condition: state\n entity_id: weather.wetter_jetzt_home\n state:\n - sunny\n - clear\n - partlycloudy\n - condition: template\n value_template: '{% set last = states(''input_datetime.last_rolladen_move'')\n %} {{ last != ''unknown'' and (now() - strptime(last, ''%Y-%m-%dT%H:%M:%S'')).total_seconds()\n > 3600 }}\n\n '\n sequence:\n - data:\n title: Sonnenschutz deaktiviert\n message: Rolläden auf der Gartenseite werden geöffnet.\n action: notify.notify", "config": [ { "name": "weather station", "room": null, "type": "weather", "id": { "entity_id": "weather.wetter_jetzt_home", "device_id": null } }, { "name": "automation rolladen auf", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.automation_rolladen_auf", "device_id": null } }, { "name": "sonnenschutz aktiv", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.sonnenschutz_aktiv", "device_id": null } }, { "name": "last rolladen move", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.last_rolladen_move", "device_id": null } }, { "name": "rolladen sonnenschutz garten", "room": "garden", "type": "scene", "id": { "entity_id": "scene.rolladen_sonnenschutz_garten", "device_id": null } }, { "name": "notify", "room": null, "type": "notify", "id": { "entity_id": "notify.notify", "device_id": null } } ] }, { "id": "Sonnenschutz Strasse V8", "automation": "- alias: Sonnenschutz Strasse V8\n description: 'Optimierte Steuerung des Sonnenschutzes auf der Strassenseite mit\n Hysterese, Mindestlaufzeit und stabilen Bedingungen.\n\n '\n triggers:\n - entity_id: weather.wetter_jetzt_home\n attribute: temperature\n above: 22\n for:\n minutes: 10\n trigger: numeric_state\n - entity_id: weather.wetter_jetzt_home\n attribute: temperature\n below: 20\n for:\n minutes: 10\n trigger: numeric_state\n - entity_id: weather.wetter_jetzt_home\n to:\n - sunny\n - clear\n - partlycloudy\n for:\n minutes: 10\n trigger: state\n - entity_id: weather.wetter_jetzt_home\n from:\n - sunny\n - clear\n - partlycloudy\n for:\n minutes: 10\n trigger: state\n - entity_id: input_boolean.automation_rolladen_auf\n to: 'on'\n trigger: state\n - entity_id: input_boolean.automation_rolladen_auf\n to: 'off'\n trigger: state\n - at: '13:00:00'\n trigger: time\n conditions:\n - condition: and\n conditions:\n - condition: time\n after: 06:00:00\n before: '13:30:00'\n - condition: template\n value_template: '{{ 5 <= now().month <= 9 }}'\n alias: Monate Mai bis September\n - condition: template\n value_template: '{% set last = states(''input_datetime.last_rolladen_move_strassenseite'')\n %} {{ last != ''unknown'' and (now() - strptime(last, ''%Y-%m-%dT%H:%M:%S'')).total_seconds()\n > 3600 }}\n\n '\n enabled: false\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: input_boolean.automation_rolladen_auf\n state: 'on'\n - condition: state\n entity_id: input_boolean.sonnenschutz_strassenseite_aktiv\n state: 'off'\n - condition: numeric_state\n entity_id: weather.wetter_jetzt_home\n attribute: temperature\n above: 22\n - condition: state\n entity_id: weather.wetter_jetzt_home\n state:\n - sunny\n - clear\n - partlycloudy\n sequence:\n - target:\n entity_id: input_boolean.sonnenschutz_strassenseite_aktiv\n action: input_boolean.turn_on\n data: {}\n - data:\n title: Sonnenschutz aktiviert\n message: Rolläden auf der Strassenseite werden gesenkt.\n action: notify.notify\n - delay: 00:01:00\n - target:\n entity_id: scene.buro_rollo_sonnenschutz\n action: scene.turn_on\n data: {}\n - data:\n entity_id: input_datetime.last_rolladen_move_strassenseite\n datetime: '{{ now().isoformat() }}'\n action: input_datetime.set_datetime\n - conditions:\n - condition: state\n entity_id: input_boolean.sonnenschutz_strassenseite_aktiv\n state: 'on'\n - condition: or\n conditions:\n - condition: numeric_state\n entity_id: weather.wetter_jetzt_home\n attribute: temperature\n below: 20\n - condition: not\n conditions:\n - condition: state\n entity_id: weather.wetter_jetzt_home\n state:\n - sunny\n - clear\n - partlycloudy\n sequence:\n - data:\n title: Sonnenschutz deaktiviert\n message: Rolläden auf der Strassenseite werden geöffnet.\n action: notify.notify\n - delay: 00:01:00\n - target:\n entity_id: scene.sonnenschutz_strassenseite_hoch\n action: scene.turn_on\n data: {}\n - data:\n message: Sonnenschutz Strassenseite wurde deaktiviert.\n action: persistent_notification.create\n - target:\n entity_id: input_boolean.sonnenschutz_strassenseite_aktiv\n action: input_boolean.turn_off\n data: {}\n - data:\n entity_id: input_datetime.last_rolladen_move_strassenseite\n datetime: '{{ now().isoformat() }}'\n action: input_datetime.set_datetime\n mode: restart", "config": [ { "name": "weather station", "room": null, "type": "weather", "id": { "entity_id": "weather.wetter_jetzt_home", "device_id": null } }, { "name": "automation rolladen auf", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.automation_rolladen_auf", "device_id": null } }, { "name": "last rolladen move", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.last_rolladen_move", "device_id": null } }, { "name": "notify", "room": null, "type": "notify", "id": { "entity_id": "notify.notify", "device_id": null } }, { "name": "sonnenschutz strassenseite aktiv", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.sonnenschutz_strassenseite_aktiv", "device_id": null } }, { "name": "last rolladen move strassenseite", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.last_rolladen_move_strassenseite", "device_id": null } }, { "name": "buro rollo sonnenschutz", "room": "office", "type": "scene", "id": { "entity_id": "scene.buro_rollo_sonnenschutz", "device_id": null } }, { "name": "sonnenschutz strassenseite hoch", "room": null, "type": "scene", "id": { "entity_id": "scene.sonnenschutz_strassenseite_hoch", "device_id": null } }, { "name": "persistent notification", "room": null, "type": "persistent_notification", "id": { "entity_id": "persistent_notification.create", "device_id": null } } ] } ]