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 Zigbee wall-switch with motion sensor #3029

Open
lemeshovich opened this issue Mar 2, 2025 · 1 comment
Open

Request support for Zigbee wall-switch with motion sensor #3029

lemeshovich opened this issue Mar 2, 2025 · 1 comment
Labels
config provided Config included by reporter full_info All info needed was provided new device Unsupported device

Comments

@lemeshovich
Copy link

lemeshovich commented Mar 2, 2025

Log message

[custom_components.tuya_local.config_flow] Device matches bcom_intercom_camera with quality of 36%. DPS: {"updated_at": 1740924265.9286208, "1": "none", "2": 10, "4": 600, "101": false, "102": false, "110": 5, "111": false, "112": "memory", "113": "off", "114": 60, "115": "off"}

Product ID

s7rsrtbg

Product Name

Sensor switch(2ch) / 人体感应开关2CH

DPS information

{
  "modelId": "e1kmt5vg",
  "services": [
    {
      "actions": [],
      "code": "",
      "description": "",
      "events": [],
      "name": "",
      "properties": [
        {
          "abilityId": 1,
          "accessMode": "ro",
          "code": "presence_state",
          "description": "",
          "extensions": {
            "iconName": "icon-renxingyidong",
            "scope": "",
            "attribute": "1664"
          },
          "name": "感应状态",
          "typeSpec": {
            "type": "enum",
            "range": [
              "none",
              "presence"
            ]
          }
        },
        {
          "abilityId": 2,
          "accessMode": "rw",
          "code": "sensitivity",
          "description": "",
          "extensions": {
            "iconName": "icon-dp_mode",
            "scope": "",
            "attribute": "1152"
          },
          "name": "触发灵敏度",
          "typeSpec": {
            "type": "value",
            "max": 19,
            "min": 0,
            "scale": 0,
            "step": 1,
            "unit": ""
          }
        },
        {
          "abilityId": 4,
          "accessMode": "rw",
          "code": "far_detection",
          "description": "",
          "extensions": {
            "iconName": "icon-gongneng",
            "scope": "",
            "attribute": "1024"
          },
          "name": "检测距离",
          "typeSpec": {
            "type": "value",
            "max": 1000,
            "min": 0,
            "scale": 0,
            "step": 1,
            "unit": "cm"
          }
        },
        {
          "abilityId": 101,
          "accessMode": "rw",
          "code": "switch_1",
          "description": "",
          "extensions": {
            "iconName": "icon-dp_power2",
            "attribute": "4101"
          },
          "name": "开关1",
          "typeSpec": {
            "type": "bool"
          }
        },
        {
          "abilityId": 102,
          "accessMode": "rw",
          "code": "switch_2",
          "description": "",
          "extensions": {
            "iconName": "icon-dp_power2",
            "attribute": "4101"
          },
          "name": "开关2",
          "typeSpec": {
            "type": "bool"
          }
        },
        {
          "abilityId": 103,
          "accessMode": "rw",
          "code": "countdown_1",
          "description": "",
          "extensions": {
            "iconName": "icon-dp_time2",
            "scope": "",
            "attribute": "4096"
          },
          "name": "开关1倒计时",
          "typeSpec": {
            "type": "value",
            "max": 43200,
            "min": 0,
            "scale": 0,
            "step": 1,
            "unit": "s"
          }
        },
        {
          "abilityId": 104,
          "accessMode": "rw",
          "code": "countdown_2",
          "description": "",
          "extensions": {
            "iconName": "icon-dp_time2",
            "attribute": "4096"
          },
          "name": "开关2倒计时",
          "typeSpec": {
            "type": "value",
            "max": 43200,
            "min": 0,
            "scale": 0,
            "step": 1,
            "unit": "s"
          }
        },
        {
          "abilityId": 107,
          "accessMode": "wr",
          "code": "all_on",
          "description": "",
          "name": "全开",
          "typeSpec": {
            "type": "bool"
          }
        },
        {
          "abilityId": 108,
          "accessMode": "wr",
          "code": "switch_trigger",
          "description": "",
          "name": "开关反转",
          "typeSpec": {
            "type": "enum",
            "range": [
              "ch1",
              "ch2"
            ]
          }
        },
        {
          "abilityId": 109,
          "accessMode": "wr",
          "code": "all_off",
          "description": "",
          "name": "全关",
          "typeSpec": {
            "type": "bool"
          }
        },
        {
          "abilityId": 110,
          "accessMode": "rw",
          "code": "bright_sensitivity",
          "description": "",
          "name": "保持灵敏度",
          "typeSpec": {
            "type": "value",
            "max": 10,
            "min": 0,
            "scale": 0,
            "step": 1,
            "unit": "x"
          }
        },
        {
          "abilityId": 111,
          "accessMode": "rw",
          "code": "backlight_switch",
          "description": "",
          "name": "背光开关",
          "typeSpec": {
            "type": "bool"
          }
        },
        {
          "abilityId": 112,
          "accessMode": "rw",
          "code": "relay_status",
          "description": "",
          "name": "上电状态设置",
          "typeSpec": {
            "type": "enum",
            "range": [
              "off",
              "on",
              "memory"
            ]
          }
        },
        {
          "abilityId": 113,
          "accessMode": "rw",
          "code": "h_on",
          "description": "",
          "extensions": {
            "scope": ""
          },
          "name": "有人开灯",
          "typeSpec": {
            "type": "enum",
            "range": [
              "off",
              "all",
              "ch1",
              "ch2"
            ]
          }
        },
        {
          "abilityId": 114,
          "accessMode": "rw",
          "code": "pir_delay",
          "description": "",
          "name": "有人保持时间",
          "typeSpec": {
            "type": "value",
            "max": 28800,
            "min": 5,
            "scale": 0,
            "step": 1,
            "unit": "s"
          }
        },
        {
          "abilityId": 115,
          "accessMode": "rw",
          "code": "h_off",
          "description": "",
          "extensions": {
            "scope": ""
          },
          "name": "无人关灯",
          "typeSpec": {
            "type": "enum",
            "range": [
              "off",
              "all",
              "ch1",
              "ch2"
            ]
          }
        }
      ]
    }
  ]
}

Information about how the device functions

It's a two-gang no-neutral wire Zigbee wall switch with built-in motion sensor.

Images

Image
Image
Image
Image

It would also be cool if it were possible to implement the logic of double taps and/or long presses on keys for triggers of alternative actions (there are no such built-in functions)

@lemeshovich lemeshovich added the new device Unsupported device label Mar 2, 2025
@make-all make-all added the full_info All info needed was provided label Mar 2, 2025
@make-all make-all moved this to 🔖 Ready in Tuya Local Mar 2, 2025
@lemeshovich
Copy link
Author

@make-all

name: "Sensor switch(2ch)"
products:
  - id: "e1kmt5vg"
    manufacturer: "Shenzhen Haihao Electronic"
    model: "HZ-Smart-sensor"
entities:
  - entity: binary_sensor
    name: Presence State
    dps:
      - id: 1
        type: string
        name: sensor
        mapping:
          - dps_val: none
            value: false
            icon: "mdi:motion-sensor-off"
          - dps_val: presence
            value: true
            icon: "mdi:human-handsdown"
          - dps_val: move
            value: true
            icon: "mdi:walk"

  - entity: number
    name: "Trigger Sensitivity"
    dps:
      - id: 2
        type: integer
        name: value
        range:
          min: 0
          max: 19
        step: 1

  - entity: number
    name: "Detection Distance"
    dps:
      - id: 4
        type: integer
        name: value
        range:
          min: 0
          max: 1000
        step: 1
        unit: "cm"

  - entity: switch
    name: "Switch 1"
    dps:
      - id: 101
        type: boolean
        name: switch

  - entity: switch
    name: "Switch 2"
    dps:
      - id: 102
        type: boolean
        name: switch

  - entity: number
    name: "Maintain Sensitivity"
    dps:
      - id: 110
        type: integer
        name: value
        range:
          min: 0
          max: 10
        step: 1
        unit: "x"

  - entity: switch
    name: "Backlight Switch"
    dps:
      - id: 111
        type: boolean
        name: switch

  - entity: select
    name: "Power State Setting"
    dps:
      - id: 112
        type: string
        name: option
        mapping:
          - dps_val: "off"
            value: "Off"
          - dps_val: "on"
            value: "On"
          - dps_val: "memory"
            value: "Memory"

  - entity: select
    name: "Light On When Occupied"
    dps:
      - id: 113
        type: string
        name: option
        mapping:
          - dps_val: "off"
            value: "Off"
          - dps_val: "all"
            value: "All"
          - dps_val: "ch1"
            value: "Channel 1"
          - dps_val: "ch2"
            value: "Channel 2"

  - entity: number
    name: "Occupancy Hold Time"
    dps:
      - id: 114
        type: integer
        name: value
        range:
          min: 5
          max: 28800
        step: 1
        unit: "s"

  - entity: select
    name: "Light Off When Unoccupied"
    dps:
      - id: 115
        type: string
        name: option
        mapping:
          - dps_val: "off"
            value: "Off"
          - dps_val: "all"
            value: "All"
          - dps_val: "ch1"
            value: "Channel 1"
          - dps_val: "ch2"
            value: "Channel 2"

@make-all make-all added the config provided Config included by reporter label Mar 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
config provided Config included by reporter full_info All info needed was provided new device Unsupported device
Projects
Status: 🔖 Ready
Development

No branches or pull requests

2 participants