0x5e / homebridge-tuya-platform

Make homebridge-tuya-platform great again.
MIT License
206 stars 58 forks source link

Doorbell Camera Doesn't Respond to Button & Motion Sensor #438

Open ahmadnazirafiq opened 5 months ago

ahmadnazirafiq commented 5 months ago

Prerequisite

Cache

Version

1.7.0-beta.53

Device Infomation JSON File

{
    "active_time": 1704799309,
    "biz_type": 18,
    "category": "sp",
    "create_time": 1704799309,
    "icon": "smart/icon/ay1537005524478pGtw5/22a65e7497661183fc8a8061b0afa06d.jpg",
    "id": "ebcdd763542554e5c71d9l",
    "ip": "183.171.191.149",
    "lat": "2.9300",
    "local_key": "Oa>VI(yAD/7c]2gi",
    "lon": "101.8600",
    "model": "SC060-WCB2",
    "name": "Doorbell",
    "online": true,
    "owner_id": "8826559",
    "product_id": "x5o96endybxh9apw",
    "product_name": "Smart Battery Doorbell",
    "status": [
      {
        "code": "alarm_message",
        "value": ""
      },
      {
        "code": "basic_device_volume",
        "value": 10
      },
      {
        "code": "basic_indicator",
        "value": true
      },
      {
        "code": "basic_nightvision",
        "value": "0"
      },
      {
        "code": "basic_osd",
        "value": true
      },
      {
        "code": "doorbell_active",
        "value": ""
      },
      {
        "code": "doorbell_pic",
        "value": ""
      },
      {
        "code": "humanoid_filter",
        "value": true
      },
      {
        "code": "initiative_message",
        "value": "eyJ2IjoiNC4wIiwiZmlsZXMiOlt7ImRhdGEiOiI4YjhjMWU5NGIzYjUzMWNmZDc4ZjViNzJiYjc1NzRhNTZkODNiNDVlNTk4YzkxYTgwYTQ2ZjUxMmI0ZjVlNmJiNmJiODFkYTg0YjZlNTY0Mjk1ZmUwNDQwODgzMDY2OWIwZGQ0ZmY0ZWJjMDYwNDVkMDRiM2FiZmViZmFkOWQ1NGU1NWZiMWRjODY4NTIxNDgzOWZlMTNhMDViYjVjNGZlY2I2YzlmNWZjMWE3NWM5NjU4ZDA5NjUwNjlhNmI0YjAiLCJrZXlJZCI6ImRlZmF1bHQiLCJpdiI6ImRiODI4MzZjZGUzNjQ0MTc0YzQyNTNhNWU2MzFkMDBlIn1dLCJjbWQiOiJpcGNfdW5jb25uZWN0ZWQiLCJ0eXBlIjoiaW1hZ2UifQ=="
      },
      {
        "code": "motion_area",
        "value": "{\"num\":1,\"region0\":{\"x\":0,\"y\":0,\"xlen\":100,\"ylen\":100}}"
      },
      {
        "code": "motion_area_switch",
        "value": false
      },
      {
        "code": "motion_sensitivity",
        "value": "2"
      },
      {
        "code": "motion_switch",
        "value": true
      },
      {
        "code": "motion_timer_setting",
        "value": ""
      },
      {
        "code": "motion_timer_switch",
        "value": true
      },
      {
        "code": "record_switch",
        "value": true
      },
      {
        "code": "record_switch1",
        "value": false
      },
      {
        "code": "sd_format",
        "value": false
      },
      {
        "code": "sd_format_state",
        "value": -20000
      },
      {
        "code": "sd_status",
        "value": 1
      },
      {
        "code": "sd_storge",
        "value": "61246080|11776|61234304"
      },
      {
        "code": "wireless_awake",
        "value": false
      },
      {
        "code": "wireless_electricity",
        "value": 96
      },
      {
        "code": "wireless_lowpower",
        "value": 20
      },
      {
        "code": "wireless_powermode",
        "value": "0"
      }
    ],
    "sub": false,
    "time_zone": "+08:00",
    "uid": "az1567930957818pnANE",
    "update_time": 1705314591,
    "uuid": "21e700d7a9c30cbf",
    "schema": [
      {
        "code": "alarm_message",
        "mode": "ro",
        "type": "String",
        "property": {}
      },
      {
        "code": "basic_device_volume",
        "mode": "rw",
        "type": "Integer",
        "property": {
          "unit": "",
          "min": 1,
          "max": 10,
          "scale": 0,
          "step": 1
        }
      },
      {
        "code": "basic_indicator",
        "mode": "rw",
        "type": "Boolean",
        "property": {}
      },
      {
        "code": "basic_nightvision",
        "mode": "rw",
        "type": "Enum",
        "property": {
          "range": [
            "0",
            "1",
            "2"
          ]
        }
      },
      {
        "code": "basic_osd",
        "mode": "rw",
        "type": "Boolean",
        "property": {}
      },
      {
        "code": "doorbell_active",
        "mode": "ro",
        "type": "String",
        "property": {
          "maxlen": 255
        }
      },
      {
        "code": "doorbell_pic",
        "mode": "ro",
        "type": "Raw",
        "property": {}
      },
      {
        "code": "humanoid_filter",
        "mode": "rw",
        "type": "Boolean",
        "property": {}
      },
      {
        "code": "initiative_message",
        "mode": "ro",
        "type": "Raw",
        "property": {}
      },
      {
        "code": "motion_area",
        "mode": "rw",
        "type": "String",
        "property": {
          "maxlen": 255
        }
      },
      {
        "code": "motion_area_switch",
        "mode": "rw",
        "type": "Boolean",
        "property": {}
      },
      {
        "code": "motion_sensitivity",
        "mode": "rw",
        "type": "Enum",
        "property": {
          "range": [
            "0",
            "2"
          ]
        }
      },
      {
        "code": "motion_switch",
        "mode": "rw",
        "type": "Boolean",
        "property": {}
      },
      {
        "code": "motion_timer_setting",
        "mode": "rw",
        "type": "String",
        "property": {
          "maxlen": 255
        }
      },
      {
        "code": "motion_timer_switch",
        "mode": "rw",
        "type": "Boolean",
        "property": {}
      },
      {
        "code": "movement_detect_pic",
        "mode": "ro",
        "type": "Raw",
        "property": {}
      },
      {
        "code": "record_switch",
        "mode": "rw",
        "type": "Boolean",
        "property": {}
      },
      {
        "code": "record_switch1",
        "mode": "rw",
        "type": "Boolean",
        "property": {}
      },
      {
        "code": "sd_format",
        "mode": "rw",
        "type": "Boolean",
        "property": {}
      },
      {
        "code": "sd_format_state",
        "mode": "ro",
        "type": "Integer",
        "property": {
          "min": -20000,
          "max": 200000,
          "scale": 0,
          "step": 1
        }
      },
      {
        "code": "sd_status",
        "mode": "ro",
        "type": "Integer",
        "property": {
          "min": 1,
          "max": 5,
          "scale": 0,
          "step": 1
        }
      },
      {
        "code": "sd_storge",
        "mode": "ro",
        "type": "String",
        "property": {
          "maxlen": 255
        }
      },
      {
        "code": "wireless_awake",
        "mode": "rw",
        "type": "Boolean",
        "property": {}
      },
      {
        "code": "wireless_electricity",
        "mode": "ro",
        "type": "Integer",
        "property": {
          "unit": "",
          "min": 0,
          "max": 100,
          "scale": 0,
          "step": 1
        }
      },
      {
        "code": "wireless_lowpower",
        "mode": "rw",
        "type": "Integer",
        "property": {
          "unit": "",
          "min": 10,
          "max": 30,
          "scale": 0,
          "step": 10
        }
      },
      {
        "code": "wireless_powermode",
        "mode": "ro",
        "type": "Enum",
        "property": {
          "range": [
            "0",
            "1"
          ]
        }
      }
    ],
    "unbridged": true
  }

Device Control Mode

Standard Instruction

Logs

[15/01/2024, 19:39:05] [Tuya] Fetching scene list.
[15/01/2024, 19:39:06] [Tuya] Got scene_id=FWOH6l8ApwioIjBO, name=Diffuse
[15/01/2024, 19:39:06] [Tuya] Override 'Doorbell' category from 'sp' to 'sp'
[15/01/2024, 19:39:06] [Tuya] Unbridge 'Doorbell' category 'sp'
[15/01/2024, 19:39:06] [Tuya] Got 53 device(s) and scene(s).
[15/01/2024, 19:39:06] [Tuya] Device list saved at /var/lib/homebridge/persist/TuyaDeviceList.az1567930957818pnANE.json
[15/01/2024, 19:39:06] [Tuya] Adding new accessory: Doorbell
[15/01/2024, 19:40:58] [Tuya] Override 'Doorbell' category from 'sp' to 'sp'
[15/01/2024, 19:40:58] [Tuya] Unbridge 'Doorbell' category 'sp'
[15/01/2024, 19:40:59] Doorbell 863D is running on port 46673.
[15/01/2024, 19:40:59] Please add [Doorbell 863D] manually in Home app. Setup Code: 102-66-550
[15/01/2024, 19:47:18] [Tuya] Restarting Process...
[15/01/2024, 19:47:20] [Tuya] Launched child bridge with PID 29516
[15/01/2024, 19:47:21] Registering platform '@0x5e/homebridge-tuya-platform.TuyaPlatform'
[15/01/2024, 19:47:21] [Tuya] Loaded @0x5e/homebridge-tuya-platform v1.7.0-beta.53 child bridge successfully
[15/01/2024, 19:47:21] Loaded 36 cached accessories from cachedAccessories.0EB3A188DB34.
[15/01/2024, 19:47:22] [Tuya] Loading accessory from cache: Contact Sensor
[15/01/2024, 19:47:22] [Tuya] Log in to Tuya Cloud.
[15/01/2024, 19:47:22] [Tuya] [TuyaOpenAPI] Login to: https://openapi.tuyaus.com
[15/01/2024, 19:47:22] [Tuya] [TuyaOpenAPI] Request:
method = post
endpoint = https://openapi.tuyaus.com
path = /v1.0/iot-01/associated-users/actions/authorized-login
query = null
headers = {
  "t": "1705319242548",
  "client_id": "e5cjmt8aaug2e2n89aan",
  "nonce": "69e403b9-1a26-437a-bcc8-0260676fd2d9",
  "Signature-Headers": "client_id",
  "sign": "4958DCAD2FB53CBB08648FCF1EFE5E18D1DEE362F59F86C4BC5BFB3A33CB81B0",
  "sign_method": "HMAC-SHA256",
  "access_token": "",
  "lang": "en",
  "dev_lang": "javascript",
  "dev_channel": "homebridge",
  "devVersion": "1.7.0-beta.53"
}
body = {
  "country_code": 60,
  "username": "XXXXXXXXX@gmail.com",
  "password": "XXXXXXXXXXXXXXXXXXXXXXXX",
  "schema": "smartlife"
}
[15/01/2024, 19:47:24] [Tuya] [TuyaOpenAPI] Response:
path = /v1.0/iot-01/associated-users/actions/authorized-login
data = {
  "result": {
    "access_token": "d27bec7281eb45bd62c0aa3598413f9b",
    "expire_time": 7200,
    "platform_url": "https://openapi.tuyaus.com",
    "refresh_token": "1658f0b5ff2e740c868af17d75eb1a7d",
    "uid": "az1567930957818pnANE"
  },
  "success": true,
  "t": 1705319244087,
  "tid": "d92da839b39b11eea54c22f06c0377f8"
}
[15/01/2024, 19:47:24] [Tuya] Start MQTT connection.
[15/01/2024, 19:47:24] [Tuya] Fetching home list.
[15/01/2024, 19:47:24] [Tuya] [TuyaOpenAPI] Request:
method = post
endpoint = https://openapi.tuyaus.com
path = /v1.0/iot-03/open-hub/access-config
query = null
headers = {
  "t": "1705319244207",
  "client_id": "e5cjmt8aaug2e2n89aan",
  "nonce": "81eed7b0-e54d-467a-ae0d-1eab062f9fd4",
  "Signature-Headers": "client_id",
  "sign": "2CE0AA0FA5157B67453856AE12457AD4A661035630E1BEC7B72560E094D060E7",
  "sign_method": "HMAC-SHA256",
  "access_token": "d27bec7281eb45bd62c0aa3598413f9b",
  "lang": "en",
  "dev_lang": "javascript",
  "dev_channel": "homebridge",
  "devVersion": "1.7.0-beta.53"
}
body = {
  "uid": "az1567930957818pnANE",
  "link_id": "4a16e0b5-a9eb-4495-84a7-0098f774e42e",
  "link_type": "mqtt",
  "topics": "device",
  "msg_encrypted_version": "1.0"
}
[15/01/2024, 19:47:24] [Tuya] [TuyaOpenAPI] Request:
method = get
endpoint = https://openapi.tuyaus.com
path = /v1.0/users/az1567930957818pnANE/homes
query = undefined
headers = {
  "t": "1705319244216",
  "client_id": "e5cjmt8aaug2e2n89aan",
  "nonce": "17ae4b0d-9611-43ff-bc42-64bfb00747c4",
  "Signature-Headers": "client_id",
  "sign": "9A3EEC21F8F8534A0D0781F6E9799FD3A7CE1D1851D02BA4FCD7BB012A4FF49B",
  "sign_method": "HMAC-SHA256",
  "access_token": "d27bec7281eb45bd62c0aa3598413f9b",
  "lang": "en",
  "dev_lang": "javascript",
  "dev_channel": "homebridge",
  "devVersion": "1.7.0-beta.53"
}
[15/01/2024, 19:47:25] [Tuya] [TuyaOpenAPI] Response:
path = /v1.0/iot-03/open-hub/access-config
data = {
  "result": {
    "client_id": "cloud_newea763553a7cc29dcffa6f9518df4704b",
    "expire_time": 7200,
    "password": "f7a12f30028b9b9cf26c71717d353f0e",
    "sink_topic": {
      "device": "cloud/token/out/{device_id}"
    },
    "source_topic": {
      "device": "cloud/token/in/new9f2401430d9c056685b58cc8195b71d8"
    },
    "url": "ssl://m1.tuyaus.com:8883",
    "username": "cloud_new9f2401430d9c056685b58cc8195b71d8"
  },
  "success": true,
  "t": 1705319245063,
  "tid": "d9cc70a5b39b11ee9ba54e7461b93a02"
}
[15/01/2024, 19:47:25] [Tuya] Got home_id=8826559, name=Lot 99
[15/01/2024, 19:47:25] [Tuya] Fetching device list.
[15/01/2024, 19:47:25] [Tuya] [TuyaOpenAPI] Request:
method = get
endpoint = https://openapi.tuyaus.com
path = /v1.0/homes/8826559/devices
query = undefined
headers = {
  "t": "1705319245349",
  "client_id": "e5cjmt8aaug2e2n89aan",
  "nonce": "582f5454-0e0d-4cbf-aaee-786f129778f8",
  "Signature-Headers": "client_id",
  "sign": "B1BCEB30F29A1D54117AEE879B0892CCB0EFF4513FF86A8D74EB0E94005332A3",
  "sign_method": "HMAC-SHA256",
  "access_token": "d27bec7281eb45bd62c0aa3598413f9b",
  "lang": "en",
  "dev_lang": "javascript",
  "dev_channel": "homebridge",
  "devVersion": "1.7.0-beta.53"
}

    {
      "active_time": 1704799309,
      "biz_type": 18,
      "category": "sp",
      "create_time": 1704799309,
      "icon": "smart/icon/ay1537005524478pGtw5/22a65e7497661183fc8a8061b0afa06d.jpg",
      "id": "ebcdd763542554e5c71d9l",
      "ip": "183.171.191.149",
      "lat": "2.9300",
      "local_key": "Oa>VI(yAD/7c]2gi",
      "lon": "101.8600",
      "model": "SC060-WCB2",
      "name": "Doorbell",
      "online": true,
      "owner_id": "8826559",
      "product_id": "x5o96endybxh9apw",
      "product_name": "Smart Battery Doorbell",
      "status": [
        {
          "code": "basic_indicator",
          "value": true
        },
        {
          "code": "basic_osd",
          "value": true
        },
        {
          "code": "motion_sensitivity",
          "value": "2"
        },
        {
          "code": "basic_nightvision",
          "value": "0"
        },
        {
          "code": "sd_storge",
          "value": "61246080|11776|61234304"
        },
        {
          "code": "sd_status",
          "value": 1
        },
        {
          "code": "sd_format",
          "value": false
        },
        {
          "code": "motion_timer_setting",
          "value": ""
        },
        {
          "code": "sd_format_state",
          "value": -20000
        },
        {
          "code": "motion_switch",
          "value": true
        },
        {
          "code": "motion_timer_switch",
          "value": true
        },
        {
          "code": "doorbell_active",
          "value": ""
        },
        {
          "code": "record_switch1",
          "value": false
        },
        {
          "code": "wireless_electricity",
          "value": 96
        },
        {
          "code": "wireless_powermode",
          "value": "0"
        },
        {
          "code": "wireless_lowpower",
          "value": 20
        },
        {
          "code": "wireless_awake",
          "value": false
        },
        {
          "code": "record_switch",
          "value": true
        },
        {
          "code": "doorbell_pic",
          "value": ""
        },
        {
          "code": "basic_device_volume",
          "value": 10
        },
        {
          "code": "motion_area_switch",
          "value": false
        },
        {
          "code": "motion_area",
          "value": "{\"num\":1,\"region0\":{\"x\":0,\"y\":0,\"xlen\":100,\"ylen\":100}}"
        },
        {
          "code": "humanoid_filter",
          "value": true
        },
        {
          "code": "alarm_message",
          "value": ""
        },
        {
          "code": "initiative_message",
          "value": "eyJ2IjoiNC4wIiwiZmlsZXMiOlt7ImRhdGEiOiI0Yjk5MzcxNDA2NzdhNzFjMTYwNjljZWIzZTRkYTI3ODllZmRhOTIzMDJhMjAxZWZkMGVkMzU5MGYzYjNlYjZjYzJjMTc3YWRlY2Q2NWRmMmI1NzlmNjczYjdhOTk5Yzc5NjVkOGJlZTFkODczMTdkYTdlYmJmOWIxMzdlYmJkYTAwOGUwMGYwMDExNTQxNmMzYjlhMWI2NzhjZmVjNzUxNzk1ZDc4MTViMWU0ODhjOGFkNmM3ZWExMzkwMTc0MWIiLCJrZXlJZCI6ImRlZmF1bHQiLCJpdiI6ImRmMzg3MGMyNTY1MjYyMTBkNjY2MWE1OWU3MTRiMTU1In1dLCJjbWQiOiJpcGNfdW5jb25uZWN0ZWQiLCJ0eXBlIjoiaW1hZ2UifQ=="
        }
}
[15/01/2024, 19:47:28] [Tuya] [TuyaOpenAPI] Request:
method = get
endpoint = https://openapi.tuyaus.com
path = /v1.0/devices/ebcdd763542554e5c71d9l/specifications
query = undefined
headers = {
  "t": "1705319248329",
  "client_id": "e5cjmt8aaug2e2n89aan",
  "nonce": "7306110b-3959-4b6d-9ab3-bde924e4cd4e",
  "Signature-Headers": "client_id",
  "sign": "F440552CF5AAFE1E1761C07E78DBD7D69B7E5E66AE775E83F5F833F7A33C2CB8",
  "sign_method": "HMAC-SHA256",
  "access_token": "d27bec7281eb45bd62c0aa3598413f9b",
  "lang": "en",
  "dev_lang": "javascript",
  "dev_channel": "homebridge",
  "devVersion": "1.7.0-beta.53"
}
body = null
[15/01/2024, 19:47:29] [Tuya] [TuyaOpenAPI] Response:
path = /v1.0/devices/ebcdd763542554e5c71d9l/specifications
data = {
  "result": {
    "category": "sp",
    "functions": [
      {
        "code": "basic_indicator",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "basic_osd",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "motion_sensitivity",
        "type": "Enum",
        "values": "{\"range\":[\"0\",\"2\"]}"
      },
      {
        "code": "basic_nightvision",
        "type": "Enum",
        "values": "{\"range\":[\"0\",\"1\",\"2\"]}"
      },
      {
        "code": "sd_format",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "motion_timer_setting",
        "type": "String",
        "values": "{\"maxlen\":255}"
      },
      {
        "code": "motion_switch",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "motion_timer_switch",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "record_switch1",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "wireless_lowpower",
        "type": "Integer",
        "values": "{\"unit\":\"\",\"min\":10,\"max\":30,\"scale\":0,\"step\":10}"
      },
      {
        "code": "wireless_awake",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "record_switch",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "basic_device_volume",
        "type": "Integer",
        "values": "{\"unit\":\"\",\"min\":1,\"max\":10,\"scale\":0,\"step\":1}"
      },
      {
        "code": "motion_area_switch",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "motion_area",
        "type": "String",
        "values": "{\"maxlen\":255}"
      },
      {
        "code": "humanoid_filter",
        "type": "Boolean",
        "values": "{}"
      }
    ],
    "status": [
      {
        "code": "basic_indicator",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "basic_osd",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "motion_sensitivity",
        "type": "Enum",
        "values": "{\"range\":[\"0\",\"2\"]}"
      },
      {
        "code": "basic_nightvision",
        "type": "Enum",
        "values": "{\"range\":[\"0\",\"1\",\"2\"]}"
      },
      {
        "code": "sd_storge",
        "type": "String",
        "values": "{\"maxlen\":255}"
      },
      {
        "code": "sd_status",
        "type": "Integer",
        "values": "{\"min\":1,\"max\":5,\"scale\":0,\"step\":1}"
      },
      {
        "code": "sd_format",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "motion_timer_setting",
        "type": "String",
        "values": "{\"maxlen\":255}"
      },
      {
        "code": "movement_detect_pic",
        "type": "Raw",
        "values": "{}"
      },
      {
        "code": "sd_format_state",
        "type": "Integer",
        "values": "{\"min\":-20000,\"max\":200000,\"scale\":0,\"step\":1}"
      },
      {
        "code": "motion_switch",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "motion_timer_switch",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "doorbell_active",
        "type": "String",
        "values": "{\"maxlen\":255}"
      },
      {
        "code": "record_switch1",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "wireless_electricity",
        "type": "Integer",
        "values": "{\"unit\":\"\",\"min\":0,\"max\":100,\"scale\":0,\"step\":1}"
      },
      {
        "code": "wireless_powermode",
        "type": "Enum",
        "values": "{\"range\":[\"0\",\"1\"]}"
      },
      {
        "code": "wireless_lowpower",
        "type": "Integer",
        "values": "{\"unit\":\"\",\"min\":10,\"max\":30,\"scale\":0,\"step\":10}"
      },
      {
        "code": "wireless_awake",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "record_switch",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "doorbell_pic",
        "type": "Raw",
        "values": "{}"
      },
      {
        "code": "basic_device_volume",
        "type": "Integer",
        "values": "{\"unit\":\"\",\"min\":1,\"max\":10,\"scale\":0,\"step\":1}"
      },
      {
        "code": "motion_area_switch",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "motion_area",
        "type": "String",
        "values": "{\"maxlen\":255}"
      },
      {
        "code": "humanoid_filter",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "alarm_message",
        "type": "String",
        "values": "{}"
      },
      {
        "code": "initiative_message",
        "type": "Raw",
        "values": "{}"
      }
    ]
  },
  "success": true,
  "t": 1705319249170,
  "tid": "dc3f3914b39b11ee9ba54e7461b93a02"
[15/01/2024, 19:48:12] [Tuya] Override 'Doorbell' category from 'sp' to 'sp'
[15/01/2024, 19:48:12] [Tuya] Got 53 device(s) and scene(s).
[15/01/2024, 19:48:12] [Tuya] Device list saved at /var/lib/homebridge/persist/TuyaDeviceList.az1567930957818pnANE.json
[15/01/2024, 19:48:12] [Tuya] Adding new accessory: Doorbell
[15/01/2024, 19:48:12] [Tuya] [Doorbell] Override schema {
  code: 'wireless_electricity',
  mode: 'ro',
  type: 'Integer',
  property: { unit: '', min: 0, max: 100, scale: 0, step: 1 }
} => {
  code: 'wireless_electricity',
  mode: 'ro',
  type: 'Integer',
  property: { min: 0, max: 100, scale: 0, step: 1 },
  _hidden: undefined
}
[15/01/2024, 19:48:12] [Tuya] [Doorbell] Override schema { code: 'motion_switch', mode: 'rw', type: 'Boolean', property: {} } => {
  code: 'motion_switch',
  mode: 'rw',
  type: 'Boolean',
  property: {},
  _hidden: undefined
}
[15/01/2024, 19:48:12] [Tuya] [Doorbell] [AccessoryInformation/undefined/StatusActive] Update value: false => true
[15/01/2024, 19:48:12] [Tuya] [Doorbell] [Battery/undefined/BatteryLevel] Update value: 0 => 96
[15/01/2024, 19:48:12] [Tuya] [Doorbell] [Battery/undefined/StatusActive] Update value: false => true
[15/01/2024, 19:48:12] [Tuya] [Doorbell] [Microphone//StatusActive] Update value: false => true
[15/01/2024, 19:48:12] [Tuya] [Doorbell] [CameraRTPStreamManagement/0/StatusActive] Update value: false => true
[15/01/2024, 19:48:12] [Tuya] [Doorbell] [Switch/motion_switch/On] Update value: false => true
[15/01/2024, 19:48:12] [Tuya] [Doorbell] [Switch/motion_switch/StatusActive] Update value: false => true
[15/01/2024, 19:48:12] [Tuya] [Doorbell] [MotionSensor/undefined/StatusActive] Update value: false => true
[15/01/2024, 19:48:12] Doorbell 863D is running on port 33425.
[15/01/2024, 19:48:12] Please add [Doorbell 863D] manually in Home app. Setup Code: 102-66-550

Other Infomations

The camera exposed nicely to HomeKit as expected. However, the motion sensor are not responding to any movement even though its exposed to HomeKit. The doorbell button itself is nowhere to be found, only for a Motion Detection toggle that gets exposed as means to turn on and off motion sensor - which is basically useless.

I don't mind other fancy features, I just want the built-in doorbell button of the camera to be exposed to HomeKit so that I can integrate with existing setup. Screenshot below:

IMG_8500

0x5e commented 5 months ago

Not sure if your doorbell camera works with tuya api, need to confirm when motion event happends, are there any incoming message from homebridge log? if yes, we can confirm the issue is from the plugin side, is able to fix. If no, then it's not supported :(

ahmadnazirafiq commented 5 months ago

Sadly, no motion logs at all even on the Smart Life app. It only sends notification to the app when the doorbell is pressed and when its not answered.

But it comes with a separate RF433 chime unit. Is there any way around it to get it exposed to HomeKit? Maybe if I can get a Sonoff RF433 bridge to expose the signal?