Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request support for TD8 Doorbell with Camera and Siren #1812

Open
OsaedYahya opened this issue Apr 10, 2024 · 1 comment
Open

Request support for TD8 Doorbell with Camera and Siren #1812

OsaedYahya opened this issue Apr 10, 2024 · 1 comment
Labels
awaiting confirmation Wating for confirmation the issue is solved new device Unsupported device unreleased Will be in next release

Comments

@OsaedYahya
Copy link

OsaedYahya commented Apr 10, 2024

Thank you for this amazing product, I've tried to implement this item but it has some issues or missing configurations

Information about DPS mappings

{
"name": "Doorbell",
"id": "xxxxxxxxxx",
"key": "xxxxxxxxxx",
"mac": "xxxxxxxxxx",
"uuid": "xxxxxxxxxx",
"category": "sp",
"product_name": "Security Camera ",
"product_id": "wih9ybttb42lxb1q",
"biz_type": 18,
"model": "TD8",
"sub": false,
"icon": "https://images.tuyaeu.com/smart/icon/ay1514518688842pfRoq/82e25092f20b785f1cdc4556f488f1be.png",
"mapping": {
"101": {
"code": "basic_indicator",
"type": "Boolean",
"values": {}
},
"103": {
"code": "basic_flip",
"type": "Boolean",
"values": {}
},
"109": {
"code": "sd_storge",
"type": "String",
"values": "{"maxlen":255}"
},
"110": {
"code": "sd_status",
"type": "Integer",
"values": {
"min": 1,
"max": 5,
"scale": 0,
"step": 1
}
},
"111": {
"code": "sd_format",
"type": "Boolean",
"values": {}
},
"115": {
"code": "movement_detect_pic",
"type": "Raw",
"values": {}
},
"117": {
"code": "sd_format_state",
"type": "Integer",
"values": {
"min": -20000,
"max": 200000,
"scale": 0,
"step": 1
}
},
"126": {
"code": "battery_report_cap",
"type": "Integer",
"values": {
"min": 0,
"max": 15,
"scale": 0,
"step": 1
}
},
"136": {
"code": "doorbell_active",
"type": "String",
"values": "{"maxlen":255}"
},
"145": {
"code": "wireless_electricity",
"type": "Integer",
"values": {
"min": 0,
"max": 100,
"scale": 0,
"step": 1
}
},
"146": {
"code": "wireless_powermode",
"type": "Enum",
"values": {
"range": [
"0",
"1"
]
}
},
"147": {
"code": "wireless_lowpower",
"type": "Integer",
"values": {
"min": 10,
"max": 50,
"scale": 0,
"step": 1
}
},
"149": {
"code": "wireless_awake",
"type": "Boolean",
"values": {}
},
"152": {
"code": "pir_switch",
"type": "Enum",
"values": {
"range": [
"0",
"1",
"2",
"3"
]
}
},
"154": {
"code": "doorbell_pic",
"type": "Raw",
"values": {}
},
"159": {
"code": "siren_switch",
"type": "Boolean",
"values": {}
},
"160": {
"code": "basic_device_volume",
"type": "Integer",
"values": {
"min": 1,
"max": 10,
"scale": 0,
"step": 1
}
},
"170": {
"code": "humanoid_filter",
"type": "Boolean",
"values": {}
},
"185": {
"code": "alarm_message",
"type": "String",
"values": "{}"
}
}
}

Product ID

wih9ybttb42lxb1q

This is what I currently have as a new device

name: TD8 Doorbell
products:
  - id: wih9ybttb42lxb1q
    name: Security Camera
primary_entity:
  entity: camera
  dps:
    - id: 115
      name: snapshot
      type: base64
      optional: true
    - id: 134
      name: motion_enable
      type: boolean
    - id: 150
      name: record
      type: boolean
    - id: 101
      type: boolean
      name: basic_indicator
      optional: true
    - id: 159
      type: boolean
      name: siren_switch
      optional: true
secondary_entities:
  - entity: light
    name: Indicator
    category: config
    icon: "mdi:led-on"
    dps:
      - id: 101
        type: boolean
        name: basic_indicator
        optional: true
  - entity: switch
    name: Flip image
    icon: "mdi:flip-horizontal"
    category: config
    dps:
      - id: 103
        type: boolean
        name: basic_flip
        optional: true
  - entity: sensor
    name: SD capacity
    category: diagnostic
    dps:
      - id: 109
        type: string
        name: sd_storge
        optional: true
  - entity: sensor
    name: SD status
    category: diagnostic
    dps:
      - id: 110
        type: integer
        name: sd_status
        optional: true
  - entity: button
    name: SD format
    category: config
    icon: "mdi:micro-sd"
    dps:
      - id: 111
        type: boolean
        name: sd_format
        optional: true
  - entity: sensor
    name: SD format state
    category: diagnostic
    dps:
      - id: 117
        type: integer
        name: sd_format_state
        optional: true
  - entity: button
    category: config
    dps:
      - id: 159
        type: boolean
        name: siren_switch
        optional: true

it's showing the camera and the siren switch works but is there no way to detect ringing? (it's supported in the app)

@OsaedYahya OsaedYahya added the new device Unsupported device label Apr 10, 2024
@OsaedYahya OsaedYahya changed the title Request support for Doorbell with Camera and Siren Request support for TD8 Doorbell with Camera and Siren Apr 10, 2024
@make-all make-all added the config provided Config included by reporter label Apr 10, 2024
@make-all
Copy link
Owner

I have expanded this config, but because you did not include log messages, it probably isn't the best it could be. Also, since the dps info is not the complete info from the QueryThingsDataModel cloud API call, it is missing descriptions - the main thing missing is the explanation of pir_switch, so I did not try to implement that, but others may also have useful info to clarify their use also..

make-all added a commit that referenced this issue Sep 30, 2024
- add translation_key `wake` for binary sensor, to indicate Awake/Sleep states.

Issue #1812
@make-all make-all added awaiting confirmation Wating for confirmation the issue is solved unreleased Will be in next release and removed config provided Config included by reporter labels Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting confirmation Wating for confirmation the issue is solved new device Unsupported device unreleased Will be in next release
Projects
Status: ✅ Done
Development

No branches or pull requests

2 participants