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 Luminance Motion sensor #3019

Open
kymap010 opened this issue Feb 28, 2025 · 1 comment
Open

Request support for Luminance Motion sensor #3019

kymap010 opened this issue Feb 28, 2025 · 1 comment
Labels
config provided Config included by reporter log provided Log of dps has been provided, though it is short of full info, so some guessing is needed new device Unsupported device

Comments

@kymap010
Copy link

kymap010 commented Feb 28, 2025

Log message

2025-02-28 12:09:14.007 WARNING (MainThread) [custom_components.tuya_local.config_flow] Device matches luminance_motion_sensor with quality of 83%. DPS: {"updated_at": 1740719347.9199598, "1": "none", "4": 100, "9": "high", "10": "60S", "12": 3179, "102": 60}

Product ID

3towulqd

Product Name

Luminance Motion sensor

DPS information

{
  "result": {
    "properties": [
      {
        "code": "pir_state",
        "custom_name": "",
        "dp_id": 1,
        "time": 1740717549009,
        "type": "enum",
        "value": "none"
      },
      {
        "code": "battery_percentage",
        "custom_name": "",
        "dp_id": 4,
        "time": 1740715884310,
        "type": "value",
        "value": 100
      },
      {
        "code": "pir_sensitivity",
        "custom_name": "",
        "dp_id": 9,
        "time": 1740715856813,
        "type": "enum",
        "value": "high"
      },
      {
        "code": "pir_time",
        "custom_name": "",
        "dp_id": 10,
        "time": 1740717433450,
        "type": "enum",
        "value": "60S"
      },
      {
        "code": "illuminance_value",
        "custom_name": "",
        "dp_id": 12,
        "time": 1740717549853,
        "type": "value",
        "value": 3179
      },
      {
        "code": "interval_time",
        "custom_name": "",
        "dp_id": 102,
        "time": 1740715856054,
        "type": "value",
        "value": 60
      }
    ]
  },
  "success": true,
  "t": 1740719047870,
  "tid": "7080629ef59111efbb1e5e27f1fe0fe0"
}

Information about how the device functions

"product_id": "3towulqd",
"product_name": "Luminance Motion sensor",
"category": "pir",
"category_name": "Motion Detector",
"model": "ZG-204L",
"brand" : none

https://aliexpress.ru/item/1005004095233195.html?sku_id=12000028017055693

Image

Works correctly after adding new yaml configuration file based on moes_motionsensor_light.yaml

name: Luminance Motion sensor
products:
  - id: 3towulqd
    manufacturer: none
    model: ZG-204L
entities:
  - entity: binary_sensor
    name: Motion detected
    class: motion
    dps:
      - id: 1
        type: string
        name: sensor
        mapping:
          - dps_val: none
            value: false
          - dps_val: pir
            value: true
  - entity: sensor
    name: Current luminance
    class: illuminance
    dps:
      - id: 12
        type: integer
        name: sensor
        unit: lx
        class: measurement
  - entity: sensor
    name: Battery Level
    class: battery
    dps:
      - id: 4
        type: integer
        name: sensor
        unit: "%"
  - entity: select
    name: Sensitivity
    icon: "mdi:human-greeting-proximity"
    category: config
    dps:
      - id: 9
        name: option
        type: string
        mapping:
          - dps_val: "low"
            value: "Low"
          - dps_val: "middle"
            value: "Medium"
          - dps_val: "high"
            value: "High"
  - entity: select
    name: Keep time
    icon: "mdi:camera-timer"
    category: config
    dps:
      - id: 10
        name: option
        type: string
        mapping:
          - dps_val: "10S"
            value: "10"
          - dps_val: "30S"
            value: "30"
          - dps_val: "60S"
            value: "60"
          - dps_val: "120S"
            value: "120"
@kymap010 kymap010 added the new device Unsupported device label Feb 28, 2025
@make-all make-all added config provided Config included by reporter log provided Log of dps has been provided, though it is short of full info, so some guessing is needed labels Feb 28, 2025
@make-all make-all moved this to 📋 Backlog in Tuya Local Feb 28, 2025
@leruetkins
Copy link

I have the same device and I also ask for support for the light level. It is the cheapest and good for automation.

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 log provided Log of dps has been provided, though it is short of full info, so some guessing is needed new device Unsupported device
Projects
Status: 📋 Backlog
Development

No branches or pull requests

3 participants