[ { "id": "b54f87a2.dd22d8", "type": "comment", "z": "169ec06b.3e0e", "name": "Датчик замка", "info": "", "x": 90, "y": 4780, "wires": [] }, { "id": "94f37f41.ba334", "type": "server-state-changed", "z": "169ec06b.3e0e", "name": "Замок", "server": "2922b62.081994a", "version": 1, "exposeToHomeAssistant": false, "haConfig": [ { "property": "name", "value": "" }, { "property": "icon", "value": "" } ], "entityidfilter": "binary_sensor.door_window_sensor_158d0004082ceb", "entityidfiltertype": "exact", "outputinitially": true, "state_type": "habool", "haltifstate": "", "halt_if_type": "str", "halt_if_compare": "is", "outputs": 1, "output_only_on_state_change": true, "x": 70, "y": 4900, "wires": [ [ "84ea1ff3.2e285", "c6e05927.cdfc58", "172ad302.b0454d" ] ] }, { "id": "8003d0d1.56982", "type": "homekit-service", "z": "169ec06b.3e0e", "isParent": true, "bridge": "f6d92d79.3eb98", "parentService": "", "name": "Замок", "serviceName": "LockMechanism", "topic": "", "filter": false, "manufacturer": "Default Manufacturer", "model": "Default Model", "serialNo": "Default Serial Number", "cameraConfigVideoProcessor": "ffmpeg", "cameraConfigSource": "", "cameraConfigStillImageSource": "", "cameraConfigMaxStreams": 2, "cameraConfigMaxWidth": 1280, "cameraConfigMaxHeight": 720, "cameraConfigMaxFPS": 10, "cameraConfigMaxBitrate": 300, "cameraConfigVideoCodec": "libx264", "cameraConfigAudioCodec": "libfdk_aac", "cameraConfigAudio": false, "cameraConfigPacketSize": 1316, "cameraConfigVerticalFlip": false, "cameraConfigHorizontalFlip": false, "cameraConfigMapVideo": "0:0", "cameraConfigMapAudio": "0:1", "cameraConfigVideoFilter": "scale=1280:720", "cameraConfigAdditionalCommandLine": "-tune zerolatency", "cameraConfigDebug": false, "cameraConfigSnapshotOutput": "disabled", "cameraConfigInterfaceName": "", "characteristicProperties": "{}", "x": 430, "y": 4900, "wires": [ [ "ab6d09da.d94348" ], [] ] }, { "id": "84ea1ff3.2e285", "type": "change", "z": "169ec06b.3e0e", "name": "", "rules": [ { "t": "change", "p": "payload", "pt": "msg", "from": "true", "fromt": "bool", "to": "0", "tot": "num" }, { "t": "change", "p": "payload", "pt": "msg", "from": "false", "fromt": "bool", "to": "1", "tot": "num" }, { "t": "move", "p": "payload", "pt": "msg", "to": "payload.LockTargetState", "tot": "msg" }, { "t": "set", "p": "payload.LockCurrentState", "pt": "msg", "to": "payload.LockTargetState", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 335, "y": 4900, "wires": [ [ "8003d0d1.56982" ] ], "l": false }, { "id": "4121722.e435e8c", "type": "api-current-state", "z": "169ec06b.3e0e", "name": "Статус", "server": "2922b62.081994a", "version": 1, "outputs": 1, "halt_if": "", "halt_if_type": "str", "halt_if_compare": "is", "override_topic": false, "entity_id": "binary_sensor.door_window_sensor_158d0004082ceb", "state_type": "habool", "state_location": "payload", "override_payload": "msg", "entity_location": "payload2", "override_data": "msg", "blockInputOverrides": false, "x": 780, "y": 4900, "wires": [ [ "84ea1ff3.2e285" ] ] }, { "id": "66fd30b2.f9e9", "type": "change", "z": "169ec06b.3e0e", "name": "", "rules": [ { "t": "delete", "p": "payload", "pt": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 675, "y": 4900, "wires": [ [ "4121722.e435e8c" ] ], "l": false }, { "id": "ab6d09da.d94348", "type": "delay", "z": "169ec06b.3e0e", "name": "", "pauseType": "delay", "timeout": "2", "timeoutUnits": "seconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "x": 580, "y": 4900, "wires": [ [ "66fd30b2.f9e9" ] ] }, { "id": "c6e05927.cdfc58", "type": "change", "z": "169ec06b.3e0e", "name": "", "rules": [ { "t": "change", "p": "payload", "pt": "msg", "from": "true", "fromt": "bool", "to": "Замок ОТКРЫТ", "tot": "str" }, { "t": "change", "p": "payload", "pt": "msg", "from": "false", "fromt": "bool", "to": "Замок ЗАКРЫТ", "tot": "str" }, { "t": "move", "p": "payload", "pt": "msg", "to": "payload.content", "tot": "msg" }, { "t": "set", "p": "payload.type", "pt": "msg", "to": "message", "tot": "str" }, { "t": "set", "p": "payload.chatId", "pt": "msg", "to": "ВАШ ID В TELEGRAM", "tot": "num" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 335, "y": 4860, "wires": [ [ "f526acf.46d625" ] ], "l": false }, { "id": "f526acf.46d625", "type": "link out", "z": "169ec06b.3e0e", "name": "", "links": [ "67e06dc0.832244" ], "x": 395, "y": 4860, "wires": [] }, { "id": "172ad302.b0454d", "type": "link out", "z": "169ec06b.3e0e", "name": "", "links": [], "x": 335, "y": 4820, "wires": [] }, { "id": "b505083d.7c2a58", "type": "inject", "z": "169ec06b.3e0e", "name": "", "topic": "", "payload": "false", "payloadType": "bool", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 130, "y": 4960, "wires": [ [ "84ea1ff3.2e285" ] ] }, { "id": "e6deebba.4deb18", "type": "inject", "z": "169ec06b.3e0e", "name": "", "topic": "", "payload": "true", "payloadType": "bool", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 130, "y": 4840, "wires": [ [ "84ea1ff3.2e285" ] ] }, { "id": "2922b62.081994a", "type": "server", "z": "", "name": "My Home Assistant", "legacy": false, "addon": false, "rejectUnauthorizedCerts": false, "ha_boolean": "y|yes|true|on|home|open", "connectionDelay": true, "cacheJson": true }, { "id": "f6d92d79.3eb98", "type": "homekit-bridge", "z": "", "bridgeName": "NodeRed_homekit", "pinCode": "111-11-111", "port": "", "allowInsecureRequest": false, "manufacturer": "NodeRed", "model": "Pavel-home", "serialNo": "NodeRed", "customMdnsConfig": false, "mdnsMulticast": true, "mdnsInterface": "", "mdnsPort": "", "mdnsIp": "", "mdnsTtl": "", "mdnsLoopback": true, "mdnsReuseAddr": true, "allowMessagePassthrough": true } ]