Paste in the following code and click Import. It should be a complete flow from AD110 to HomeAssistant.
[
{
"id": "5c215168.c111c8",
"type": "node-amcrest-ad110-monitor",
"z": "39edc67e.009942",
"name": "",
"config": "",
"rawCodes": false,
"debug": false,
"x": 210,
"y": 340,
"wires": [
[
"6334b526.0a78cc"
]
]
},
{
"id": "2724db6b.3d39d4",
"type": "change",
"z": "39edc67e.009942",
"name": "",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "on",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 700,
"y": 260,
"wires": [
[
"8e6a12be.027aa8"
]
]
},
{
"id": "d6a6c07b.1d8a6",
"type": "change",
"z": "39edc67e.009942",
"name": "",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "off",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 700,
"y": 320,
"wires": [
[
"8e6a12be.027aa8"
]
]
},
{
"id": "6334b526.0a78cc",
"type": "switch",
"z": "39edc67e.009942",
"name": "",
"property": "payload.code",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "CallNotAnswered",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 1,
"x": 390,
"y": 340,
"wires": [
[
"c0b754ea.8a3f68"
]
]
},
{
"id": "c0b754ea.8a3f68",
"type": "switch",
"z": "39edc67e.009942",
"name": "",
"property": "payload.action",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "Start",
"vt": "str"
},
{
"t": "eq",
"v": "Stop",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 530,
"y": 280,
"wires": [
[
"2724db6b.3d39d4"
],
[
"d6a6c07b.1d8a6"
]
]
},
{
"id": "8e6a12be.027aa8",
"type": "ha-entity",
"z": "39edc67e.009942",
"name": "Front Doorbell Pressed",
"server": "1bc04557.74400b",
"version": 1,
"debugenabled": false,
"outputs": 1,
"entityType": "binary_sensor",
"config": [
{
"property": "name",
"value": "Front Doorbell Pressed"
},
{
"property": "device_class",
"value": ""
},
{
"property": "icon",
"value": "mdi:doorbell"
},
{
"property": "unit_of_measurement",
"value": ""
}
],
"state": "payload",
"stateType": "msg",
"attributes": [],
"resend": true,
"outputLocation": "",
"outputLocationType": "none",
"inputOverride": "allow",
"outputOnStateChange": false,
"outputPayload": "$entity().state ? \"on\": \"off\"",
"outputPayloadType": "jsonata",
"x": 980,
"y": 300,
"wires": [
[]
]
}
]