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 Generic Dual Dimmer #1589

Closed
dkvk opened this issue Feb 1, 2024 · 4 comments
Closed

Request support for Generic Dual Dimmer #1589

dkvk opened this issue Feb 1, 2024 · 4 comments

Comments

@dkvk
Copy link

dkvk commented Feb 1, 2024

Tested and functioning yaml device configuration (not all features)

name: Dual dimmer
primary_entity:
  entity: light
  name: Dimmer 1
  dps:
    - id: 1
      type: boolean
      name: switch
    - id: 2
      name: brightness
      type: integer
      range:
        min: 10
        max: 1000
      mapping:
        - scale: 3.92
secondary_entities:
  - entity: light
    name: Dimmer 2
    dps:
      - id: 7
        type: boolean
        name: switch
      - id: 8
        name: brightness
        type: integer
        range:
          min: 10
          max: 1000
        mapping:
          - scale: 3.92

Information about DPS mappings

{
  "result": {
    "model": {
      "modelId": "0000030rck",
      "services": [
        {
          "actions": [],
          "code": "",
          "description": "",
          "events": [],
          "name": "默认服务",
          "properties": [
            {
              "abilityId": 1,
              "accessMode": "rw",
              "code": "switch_led_1",
              "description": "",
              "extensions": {
                "iconName": "icon-dp_power",
                "attribute": "130"
              },
              "name": "开关1",
              "typeSpec": {
                "type": "bool",
                "typeDefaultValue": false
              }
            },
            {
              "abilityId": 2,
              "accessMode": "rw",
              "code": "bright_value_1",
              "description": "",
              "extensions": {
                "iconName": "icon-dp_half",
                "attribute": "130"
              },
              "name": "亮度值1",
              "typeSpec": {
                "max": 1000,
                "min": 10,
                "scale": 0,
                "step": 1,
                "type": "value",
                "typeDefaultValue": 10
              }
            },
            {
              "abilityId": 3,
              "accessMode": "rw",
              "code": "brightness_min_1",
              "description": "",
              "extensions": {
                "iconName": "icon-liangdu1",
                "attribute": "128"
              },
              "name": "最小亮度1",
              "typeSpec": {
                "max": 1000,
                "min": 10,
                "scale": 0,
                "step": 1,
                "type": "value",
                "typeDefaultValue": 10
              }
            },
            {
              "abilityId": 6,
              "accessMode": "rw",
              "code": "countdown_1",
              "description": "",
              "extensions": {
                "iconName": "icon-dp_time2",
                "attribute": "130"
              },
              "name": "倒计时1",
              "typeSpec": {
                "max": 86400,
                "min": 0,
                "scale": 0,
                "step": 1,
                "type": "value",
                "typeDefaultValue": 0,
                "unit": "s"
              }
            },
            {
              "abilityId": 7,
              "accessMode": "rw",
              "code": "switch_led_2",
              "description": "",
              "extensions": {
                "iconName": "icon-dp_power",
                "attribute": "130"
              },
              "name": "开关2",
              "typeSpec": {
                "type": "bool",
                "typeDefaultValue": false
              }
            },
            {
              "abilityId": 8,
              "accessMode": "rw",
              "code": "bright_value_2",
              "description": "",
              "extensions": {
                "iconName": "icon-dp_half",
                "attribute": "146"
              },
              "name": "亮度值2",
              "typeSpec": {
                "max": 1000,
                "min": 10,
                "scale": 0,
                "step": 1,
                "type": "value",
                "typeDefaultValue": 10
              }
            },
            {
              "abilityId": 9,
              "accessMode": "rw",
              "code": "brightness_min_2",
              "description": "",
              "extensions": {
                "iconName": "icon-liangdu1",
                "attribute": "128"
              },
              "name": "最小亮度2",
              "typeSpec": {
                "max": 1000,
                "min": 10,
                "scale": 0,
                "step": 1,
                "type": "value",
                "typeDefaultValue": 10
              }
            },
            {
              "abilityId": 12,
              "accessMode": "rw",
              "code": "countdown_2",
              "description": "",
              "extensions": {
                "iconName": "icon-dp_time2",
                "attribute": "130"
              },
              "name": "倒计时2",
              "typeSpec": {
                "max": 86400,
                "min": 0,
                "scale": 0,
                "step": 1,
                "type": "value",
                "typeDefaultValue": 0,
                "unit": "s"
              }
            },
            {
              "abilityId": 14,
              "accessMode": "rw",
              "code": "relay_status",
              "description": "",
              "extensions": {
                "iconName": "setting icon-setting",
                "attribute": "128"
              },
              "name": "上电状态记忆",
              "typeSpec": {
                "range": [
                  "off",
                  "on",
                  "memory"
                ],
                "type": "enum",
                "typeDefaultValue": "off"
              }
            }
          ]
        }
      ]
    }
  },
  "success": true,
  "t": 1706729388934,
  "tid": "1902b594c06f11eea28be2dee5a60296"
}

Product ID

{
  "result": [
    {
      "active_time": 1679946058,
      "bind_space_id": "54893883",
      "category": "tgkg",
      "create_time": 1651088690,
      "custom_name": "Vardagsrum+TV-rum Takspots ",
      "icon": "smart/icon/ay1557732337155Hg1cl/8d2b9fe1073fbeba108be8ba641ab143.png",
      "id": "bf94d86c5d15f219f2jlsp",
      "ip": "158.174.203.249",
      "is_online": true,
      "lat": "59.3000",
      "local_key": "4d93375b28fdab19",
      "lon": "18.1800",
      "model": "9917037 , 9919037 ",
      "name": "Dimmer Switch  4",
      "product_id": "isstlkzmlurfcc6e",
      "product_name": "WiFi/BLE  Dimmer module two ways",
      "sub": false,
      "time_zone": "+02:00",
      "update_time": 1706738047,
      "uuid": "38d89e6e39c77b95"
    }
  ],
  "success": true,
  "t": 1706815504052,
  "tid": "99a3d334c13711ee8ab25e6e64f35834"
}

Information about how the device functions

Dimmer Module 2 Way
image

@dkvk dkvk added the new device Unsupported device label Feb 1, 2024
@make-all make-all added the config provided Config included by reporter label Feb 1, 2024
@dkvk
Copy link
Author

dkvk commented Sep 9, 2024

Can I work on this to make it go towards merge?

@make-all
Copy link
Owner

make-all commented Sep 9, 2024

If you had provided a log in the section labelled Log in the template instead of modifying it to present your own config, it would be easier for me to evaluate, and thus been prioritised. Since the last release managed to clear the higher quality submissions, the backlog will now get some attention, but providing logs will still bump this to the front.

@dkvk
Copy link
Author

dkvk commented Sep 9, 2024

Ok, I did a test on one of the devices and got this:

2024-09-09 12:00:41.249 WARNING (MainThread) [custom_components.tuya_local.config_flow] Device matches wf520d_wifi_dual_touch_dimmer with quality of 67%. DPS: {"updated_at": 1725883237.4295418, "1": false, "2": 404, "3": 10, "6": 0, "7": false, "8": 540, "9": 10, "12": 0, "14": "memory"}

Do you think that is enough?
I could probably work it out myself, but I need some support. The provided configuration is simplified to make it work with the device.

@make-all make-all added the full_info All info needed was provided label Sep 9, 2024
make-all added a commit that referenced this issue Sep 11, 2024
@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 full_info All info needed was provided labels Sep 11, 2024
@dkvk
Copy link
Author

dkvk commented Sep 13, 2024

Thanks, I have tried this new config out and it works perfect

@dkvk dkvk closed this as completed Sep 13, 2024
@make-all make-all reopened this Sep 14, 2024
@make-all make-all removed the awaiting confirmation Wating for confirmation the issue is solved label Sep 14, 2024
@make-all make-all removed new device Unsupported device unreleased Will be in next release labels Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants