A jaki czas dezaktywacji ma ten czujnik? Może napisz po ludzku co chcesz osiągnąć?
[
{
"id": "cd3740b493f0ad8c",
"type": "change",
"z": "36425f0e19b7dcf6",
"name": "Start",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "start",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 870,
"y": 2740,
"wires": [
[
"e0ec2dd660f8d0ba"
]
]
},
{
"id": "0755ed227c6e42a2",
"type": "server-state-changed",
"z": "36425f0e19b7dcf6",
"name": "WC zajęte?",
"server": "7463fdcca985ae84",
"version": 6,
"outputs": 2,
"exposeAsEntityConfig": "",
"entities": {
"entity": [
"binary_sensor.czujnik_obecnosci_z_lazienka_presence"
],
"substring": [],
"regex": []
},
"outputInitially": false,
"stateType": "str",
"ifState": "on",
"ifStateType": "str",
"ifStateOperator": "is",
"outputOnlyOnStateChange": true,
"for": "",
"forType": "num",
"forUnits": "seconds",
"ignorePrevStateNull": false,
"ignorePrevStateUnknown": false,
"ignorePrevStateUnavailable": false,
"ignoreCurrentStateUnknown": false,
"ignoreCurrentStateUnavailable": false,
"outputProperties": [
{
"property": "payload",
"propertyType": "msg",
"value": "",
"valueType": "entityState"
},
{
"property": "data",
"propertyType": "msg",
"value": "",
"valueType": "eventData"
},
{
"property": "topic",
"propertyType": "msg",
"value": "",
"valueType": "triggerId"
}
],
"x": 530,
"y": 2720,
"wires": [
[
"cd3740b493f0ad8c"
],
[
"6152e8c32cb38d45"
]
]
},
{
"id": "6152e8c32cb38d45",
"type": "change",
"z": "36425f0e19b7dcf6",
"name": "Start delay",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "delay",
"tot": "str"
},
{
"t": "set",
"p": "delay",
"pt": "msg",
"to": "45",
"tot": "str"
},
{
"t": "set",
"p": "units",
"pt": "msg",
"to": "seconds",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 830,
"y": 2780,
"wires": [
[
"e0ec2dd660f8d0ba"
]
]
},
{
"id": "0d1f21c963bc0910",
"type": "change",
"z": "36425f0e19b7dcf6",
"name": "Stop",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "stop",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 830,
"y": 2820,
"wires": [
[
"e0ec2dd660f8d0ba"
]
]
},
{
"id": "e0ec2dd660f8d0ba",
"type": "stoptimer-varidelay",
"z": "36425f0e19b7dcf6",
"duration": "180",
"durationType": "num",
"units": "Second",
"payloadtype": "num",
"payloadval": "0",
"name": "",
"reporting": "every_second",
"persist": true,
"ignoretimerpass": false,
"x": 1090,
"y": 2760,
"wires": [
[
"f3593777461a6f47"
],
[],
[]
]
},
{
"id": "f3593777461a6f47",
"type": "api-call-service",
"z": "36425f0e19b7dcf6",
"name": "Zgaś światło",
"server": "7463fdcca985ae84",
"version": 7,
"debugenabled": false,
"action": "light.turn_off",
"floorId": [],
"areaId": [],
"deviceId": [],
"entityId": [
"light.relay_1",
"light.relay_2",
"light.relay_3"
],
"labelId": [],
"data": "",
"dataType": "jsonata",
"mergeContext": "",
"mustacheAltTags": false,
"outputProperties": [],
"queue": "none",
"blockInputOverrides": false,
"domain": "light",
"service": "turn_off",
"x": 1290,
"y": 2760,
"wires": [
[]
]
},
{
"id": "7463fdcca985ae84",
"type": "server",
"name": "Home Assistant",
"version": 5,
"addon": false,
"rejectUnauthorizedCerts": true,
"ha_boolean": "y|yes|true|on|home|open",
"connectionDelay": true,
"cacheJson": true,
"heartbeat": true,
"heartbeatInterval": "30",
"areaSelector": "friendlyName",
"deviceSelector": "friendlyName",
"entitySelector": "friendlyName",
"statusSeparator": ": ",
"statusYear": "hidden",
"statusMonth": "short",
"statusDay": "numeric",
"statusHourCycle": "default",
"statusTimeFormat": "h:m",
"enableGlobalContextStore": true
}
]