{ "id": "nested_guard", "category": "advanced", "name": { "pl": "Złożony warunek z OR i NOT", "en": "Nested OR and NOT guard" }, "description": { "pl": "Dni i godziny + temperatura zewnętrzna LUB pokojowa + NOT dla otwartego okna. Przykład wielopoziomowego grafu.", "en": "Weekdays and time + outdoor OR room temperature + NOT open window. An example of a multi-level graph." }, "flow": { "nodes": [ { "id": "node-00000000-0000-4000-8000-000000000278", "kind": "weekday", "x": 25, "y": 35, "config": { "days": [ 1, 2, 3, 4, 5 ] } }, { "id": "node-00000000-0000-4000-8000-000000000279", "kind": "time_range", "x": 25, "y": 145, "config": { "start": "06:00", "end": "22:30" } }, { "id": "node-00000000-0000-4000-8000-000000000280", "kind": "outdoor_temperature", "x": 25, "y": 255, "config": { "operator": "lt", "value": 8 } }, { "id": "node-00000000-0000-4000-8000-000000000281", "kind": "zone_temperature", "x": 25, "y": 365, "config": { "zone_id": "$zone1", "operator": "lt", "value": 20 } }, { "id": "node-00000000-0000-4000-8000-000000000282", "kind": "logic_or", "x": 275, "y": 310, "config": {} }, { "id": "node-00000000-0000-4000-8000-000000000283", "kind": "ha_available", "x": 275, "y": 430, "config": { "entity_id": "binary_sensor.window" } }, { "id": "node-00000000-0000-4000-8000-000000000284", "kind": "ha_state", "x": 275, "y": 540, "config": { "entity_id": "binary_sensor.window", "operator": "eq", "value": "on" } }, { "id": "node-00000000-0000-4000-8000-000000000285", "kind": "logic_not", "x": 495, "y": 540, "config": {} }, { "id": "node-00000000-0000-4000-8000-000000000286", "kind": "logic_and", "x": 510, "y": 235, "config": {} }, { "id": "node-00000000-0000-4000-8000-000000000287", "kind": "zone_thermostat", "x": 770, "y": 235, "config": { "zone_id": "$zone1", "preset": "comfort", "setpoint": 21, "mode": "auto", "cooldown_seconds": 90 } } ], "edges": [ { "id": "edge-00000000-0000-4000-8000-000000000288", "from": "node-00000000-0000-4000-8000-000000000280", "to": "node-00000000-0000-4000-8000-000000000282" }, { "id": "edge-00000000-0000-4000-8000-000000000289", "from": "node-00000000-0000-4000-8000-000000000281", "to": "node-00000000-0000-4000-8000-000000000282" }, { "id": "edge-00000000-0000-4000-8000-000000000290", "from": "node-00000000-0000-4000-8000-000000000284", "to": "node-00000000-0000-4000-8000-000000000285" }, { "id": "edge-00000000-0000-4000-8000-000000000291", "from": "node-00000000-0000-4000-8000-000000000278", "to": "node-00000000-0000-4000-8000-000000000286" }, { "id": "edge-00000000-0000-4000-8000-000000000292", "from": "node-00000000-0000-4000-8000-000000000279", "to": "node-00000000-0000-4000-8000-000000000286" }, { "id": "edge-00000000-0000-4000-8000-000000000293", "from": "node-00000000-0000-4000-8000-000000000282", "to": "node-00000000-0000-4000-8000-000000000286" }, { "id": "edge-00000000-0000-4000-8000-000000000294", "from": "node-00000000-0000-4000-8000-000000000283", "to": "node-00000000-0000-4000-8000-000000000286" }, { "id": "edge-00000000-0000-4000-8000-000000000295", "from": "node-00000000-0000-4000-8000-000000000285", "to": "node-00000000-0000-4000-8000-000000000286" }, { "id": "edge-00000000-0000-4000-8000-000000000296", "from": "node-00000000-0000-4000-8000-000000000286", "to": "node-00000000-0000-4000-8000-000000000287" } ] } }