76 lines
2.0 KiB
JSON
76 lines
2.0 KiB
JSON
{
|
|
"id": "ha_window_guard",
|
|
"category": "safety",
|
|
"name": {
|
|
"pl": "Otwarte okno — wyłącz HVAC",
|
|
"en": "Open window — stop HVAC"
|
|
},
|
|
"description": {
|
|
"pl": "Przykład integracji z binary_sensor Home Assistant: otwarte okno wyłącza termostat. Ustaw właściwy entity_id.",
|
|
"en": "Home Assistant binary_sensor example: an open window turns the thermostat off. Set the correct entity_id."
|
|
},
|
|
"flow": {
|
|
"nodes": [
|
|
{
|
|
"id": "node-00000000-0000-4000-8000-000000000093",
|
|
"kind": "ha_state",
|
|
"x": 45,
|
|
"y": 90,
|
|
"config": {
|
|
"entity_id": "binary_sensor.window",
|
|
"operator": "eq",
|
|
"value": "on"
|
|
}
|
|
},
|
|
{
|
|
"id": "node-00000000-0000-4000-8000-000000000094",
|
|
"kind": "house_mode",
|
|
"x": 45,
|
|
"y": 220,
|
|
"config": {
|
|
"operator": "neq",
|
|
"value": "off"
|
|
}
|
|
},
|
|
{
|
|
"id": "node-00000000-0000-4000-8000-000000000095",
|
|
"kind": "logic_and",
|
|
"x": 305,
|
|
"y": 155,
|
|
"config": {}
|
|
},
|
|
{
|
|
"id": "node-00000000-0000-4000-8000-000000000096",
|
|
"kind": "zone_thermostat",
|
|
"x": 560,
|
|
"y": 155,
|
|
"config": {
|
|
"zone_id": "$zone1",
|
|
"preset": "auto",
|
|
"setpoint": 21,
|
|
"mode": "auto",
|
|
"cooldown_seconds": 60,
|
|
"power": false
|
|
}
|
|
}
|
|
],
|
|
"edges": [
|
|
{
|
|
"id": "edge-00000000-0000-4000-8000-000000000097",
|
|
"from": "node-00000000-0000-4000-8000-000000000093",
|
|
"to": "node-00000000-0000-4000-8000-000000000095"
|
|
},
|
|
{
|
|
"id": "edge-00000000-0000-4000-8000-000000000098",
|
|
"from": "node-00000000-0000-4000-8000-000000000094",
|
|
"to": "node-00000000-0000-4000-8000-000000000095"
|
|
},
|
|
{
|
|
"id": "edge-00000000-0000-4000-8000-000000000099",
|
|
"from": "node-00000000-0000-4000-8000-000000000095",
|
|
"to": "node-00000000-0000-4000-8000-000000000096"
|
|
}
|
|
]
|
|
}
|
|
}
|