[
    {
        "id": "c9c60b41.091918",
        "type": "tab",
        "label": "Wohnzimmer",
        "disabled": false,
        "info": ""
    },
    {
        "id": "98b3a7b8.3516a8",
        "type": "server-state-changed",
        "z": "c9c60b41.091918",
        "name": "Wohnzimmer Kalender",
        "server": "5473ccd9.a8a0f4",
        "version": "1",
        "entityidfilter": "calendar.wohnzimmer",
        "entityidfiltertype": "substring",
        "outputinitially": false,
        "state_type": "str",
        "haltifstate": "",
        "halt_if_type": "str",
        "halt_if_compare": "is",
        "outputs": 1,
        "output_only_on_state_change": false,
        "x": 120,
        "y": 180,
        "wires": [
            [
                "5bc71992.903b38"
            ]
        ]
    },
    {
        "id": "15948009.0918b",
        "type": "api-current-state",
        "z": "c9c60b41.091918",
        "name": "Zu Hause",
        "server": "5473ccd9.a8a0f4",
        "version": "1",
        "outputs": 2,
        "halt_if": "not_home",
        "halt_if_type": "str",
        "halt_if_compare": "is",
        "override_topic": false,
        "entity_id": "group.all_devices",
        "state_type": "str",
        "state_location": "",
        "override_payload": "none",
        "entity_location": "",
        "override_data": "none",
        "blockInputOverrides": false,
        "x": 540,
        "y": 180,
        "wires": [
            [
                "8a69351.6d3bac8"
            ],
            [
                "79ec8076.3bbf"
            ]
        ]
    },
    {
        "id": "88861653.8a4f08",
        "type": "api-call-service",
        "z": "c9c60b41.091918",
        "name": "Heizen",
        "server": "5473ccd9.a8a0f4",
        "service_domain": "script",
        "service": "living_room_warm",
        "data": "",
        "mergecontext": "",
        "output_location": "payload",
        "output_location_type": "msg",
        "x": 1250,
        "y": 140,
        "wires": [
            []
        ]
    },
    {
        "id": "8a69351.6d3bac8",
        "type": "api-call-service",
        "z": "c9c60b41.091918",
        "name": "Nicht Heizen",
        "server": "5473ccd9.a8a0f4",
        "service_domain": "script",
        "service": "living_room_cold",
        "data": "",
        "mergecontext": "",
        "output_location": "payload",
        "output_location_type": "msg",
        "x": 1190,
        "y": 400,
        "wires": [
            []
        ]
    },
    {
        "id": "670045f7.3005cc",
        "type": "server-state-changed",
        "z": "c9c60b41.091918",
        "name": "Anwesenheit",
        "server": "5473ccd9.a8a0f4",
        "version": "1",
        "entityidfilter": "group.all_devices",
        "entityidfiltertype": "substring",
        "outputinitially": false,
        "state_type": "str",
        "haltifstate": "home",
        "halt_if_type": "str",
        "halt_if_compare": "is",
        "outputs": 2,
        "output_only_on_state_change": false,
        "x": 90,
        "y": 260,
        "wires": [
            [
                "2b2dca30.af26ee"
            ],
            [
                "8a69351.6d3bac8"
            ]
        ],
        "outputLabels": [
            "Jemand anwesend",
            "Niemand anwesend"
        ]
    },
    {
        "id": "f41e7551.74a8d8",
        "type": "api-current-state",
        "z": "c9c60b41.091918",
        "name": "Wohnzimmer Kalender",
        "server": "5473ccd9.a8a0f4",
        "version": "1",
        "outputs": 2,
        "halt_if": "off",
        "halt_if_type": "str",
        "halt_if_compare": "is",
        "override_topic": true,
        "entity_id": "calendar.wohnzimmer",
        "state_type": "str",
        "state_location": "payload",
        "override_payload": "msg",
        "entity_location": "data",
        "override_data": "msg",
        "blockInputOverrides": false,
        "x": 560,
        "y": 260,
        "wires": [
            [],
            [
                "79ec8076.3bbf"
            ]
        ]
    },
    {
        "id": "c177e06f.7baa5",
        "type": "server-state-changed",
        "z": "c9c60b41.091918",
        "name": "Terrassentür",
        "server": "5473ccd9.a8a0f4",
        "version": "1",
        "entityidfilter": "binary_sensor.terrassentuer_contact",
        "entityidfiltertype": "exact",
        "outputinitially": false,
        "state_type": "habool",
        "haltifstate": "",
        "halt_if_type": "str",
        "halt_if_compare": "is",
        "outputs": 1,
        "output_only_on_state_change": true,
        "x": 90,
        "y": 540,
        "wires": [
            [
                "56df94b1.ba6de4"
            ]
        ]
    },
    {
        "id": "98d3a3b1.0db59",
        "type": "switch",
        "z": "c9c60b41.091918",
        "name": "",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "true"
            },
            {
                "t": "false"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 2,
        "x": 450,
        "y": 540,
        "wires": [
            [
                "468cc43f.0ac95c"
            ],
            [
                "1b5b138a.ecdb5c"
            ]
        ]
    },
    {
        "id": "468cc43f.0ac95c",
        "type": "api-call-service",
        "z": "c9c60b41.091918",
        "name": "Fenster geöffnet",
        "server": "5473ccd9.a8a0f4",
        "service_domain": "script",
        "service": "window_open_living_room",
        "data": "",
        "mergecontext": "",
        "output_location": "",
        "output_location_type": "none",
        "x": 640,
        "y": 520,
        "wires": [
            []
        ]
    },
    {
        "id": "1b5b138a.ecdb5c",
        "type": "api-call-service",
        "z": "c9c60b41.091918",
        "name": "Fenster geschlossen",
        "server": "5473ccd9.a8a0f4",
        "service_domain": "script",
        "service": "window_close_living_room",
        "data": "",
        "mergecontext": "",
        "output_location": "",
        "output_location_type": "none",
        "x": 660,
        "y": 580,
        "wires": [
            []
        ]
    },
    {
        "id": "54d29c13.47c6e4",
        "type": "server-state-changed",
        "z": "c9c60b41.091918",
        "name": "Außentemperatur",
        "server": "5473ccd9.a8a0f4",
        "version": "1",
        "entityidfilter": "sensor.owm_temperature",
        "entityidfiltertype": "exact",
        "outputinitially": false,
        "state_type": "num",
        "haltifstate": "18",
        "halt_if_type": "num",
        "halt_if_compare": "gte",
        "outputs": 2,
        "output_only_on_state_change": true,
        "x": 100,
        "y": 380,
        "wires": [
            [
                "8a69351.6d3bac8"
            ],
            [
                "2b2dca30.af26ee"
            ]
        ]
    },
    {
        "id": "79ec8076.3bbf",
        "type": "api-current-state",
        "z": "c9c60b41.091918",
        "name": "Außentemperatur < 18°C",
        "server": "5473ccd9.a8a0f4",
        "version": "1",
        "outputs": 2,
        "halt_if": "18",
        "halt_if_type": "num",
        "halt_if_compare": "gte",
        "override_topic": false,
        "entity_id": "sensor.owm_temperature",
        "state_type": "num",
        "state_location": "",
        "override_payload": "none",
        "entity_location": "",
        "override_data": "none",
        "blockInputOverrides": false,
        "x": 830,
        "y": 180,
        "wires": [
            [
                "8a69351.6d3bac8"
            ],
            [
                "fa5445f4.9521c",
                "b0ae9faa.b0a3a"
            ]
        ]
    },
    {
        "id": "fe485d9.aac372",
        "type": "inject",
        "z": "c9c60b41.091918",
        "name": "",
        "topic": "",
        "payload": "off",
        "payloadType": "str",
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "x": 90,
        "y": 60,
        "wires": [
            [
                "5bc71992.903b38"
            ]
        ]
    },
    {
        "id": "fa5445f4.9521c",
        "type": "switch",
        "z": "c9c60b41.091918",
        "name": "On/Off",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "eq",
                "v": "on",
                "vt": "str"
            },
            {
                "t": "eq",
                "v": "off",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 2,
        "x": 1070,
        "y": 140,
        "wires": [
            [
                "88861653.8a4f08"
            ],
            [
                "8a69351.6d3bac8"
            ]
        ],
        "outputLabels": [
            "on",
            "off"
        ]
    },
    {
        "id": "37ad3ab3.faa226",
        "type": "inject",
        "z": "c9c60b41.091918",
        "name": "",
        "topic": "",
        "payload": "on",
        "payloadType": "str",
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "x": 90,
        "y": 100,
        "wires": [
            [
                "5bc71992.903b38"
            ]
        ]
    },
    {
        "id": "b0ae9faa.b0a3a",
        "type": "debug",
        "z": "c9c60b41.091918",
        "name": "",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "x": 1070,
        "y": 60,
        "wires": []
    },
    {
        "id": "5bc71992.903b38",
        "type": "api-current-state",
        "z": "c9c60b41.091918",
        "name": "Steuerung ein?",
        "server": "5473ccd9.a8a0f4",
        "version": "1",
        "outputs": 2,
        "halt_if": "false",
        "halt_if_type": "bool",
        "halt_if_compare": "is",
        "override_topic": false,
        "entity_id": "input_boolean.heating_automation",
        "state_type": "habool",
        "state_location": "",
        "override_payload": "none",
        "entity_location": "",
        "override_data": "none",
        "blockInputOverrides": false,
        "x": 360,
        "y": 180,
        "wires": [
            [],
            [
                "15948009.0918b"
            ]
        ]
    },
    {
        "id": "2b2dca30.af26ee",
        "type": "api-current-state",
        "z": "c9c60b41.091918",
        "name": "Steuerung ein?",
        "server": "5473ccd9.a8a0f4",
        "version": "1",
        "outputs": 2,
        "halt_if": "false",
        "halt_if_type": "bool",
        "halt_if_compare": "is",
        "override_topic": false,
        "entity_id": "input_boolean.heating_automation",
        "state_type": "habool",
        "state_location": "",
        "override_payload": "none",
        "entity_location": "",
        "override_data": "none",
        "blockInputOverrides": false,
        "x": 320,
        "y": 320,
        "wires": [
            [],
            [
                "f41e7551.74a8d8"
            ]
        ]
    },
    {
        "id": "56df94b1.ba6de4",
        "type": "api-current-state",
        "z": "c9c60b41.091918",
        "name": "Steuerung ein?",
        "server": "5473ccd9.a8a0f4",
        "version": "1",
        "outputs": 2,
        "halt_if": "false",
        "halt_if_type": "bool",
        "halt_if_compare": "is",
        "override_topic": false,
        "entity_id": "input_boolean.heating_automation",
        "state_type": "habool",
        "state_location": "",
        "override_payload": "none",
        "entity_location": "",
        "override_data": "none",
        "blockInputOverrides": false,
        "x": 280,
        "y": 540,
        "wires": [
            [],
            [
                "98d3a3b1.0db59"
            ]
        ]
    },
    {
        "id": "129a2eeb.6b0209",
        "type": "inject",
        "z": "c9c60b41.091918",
        "name": "23:30 Uhr",
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "repeat": "",
        "crontab": "30 23 * * *",
        "once": false,
        "onceDelay": 0.1,
        "x": 110,
        "y": 460,
        "wires": [
            [
                "8a69351.6d3bac8"
            ]
        ]
    },
    {
        "id": "5473ccd9.a8a0f4",
        "type": "server",
        "z": "",
        "name": "Home Assistant",
        "legacy": false,
        "hassio": true,
        "rejectUnauthorizedCerts": true,
        "ha_boolean": "y|yes|true|on|home|open",
        "connectionDelay": true
    }
]