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

update Legrand #3832

Merged
merged 3 commits into from
Feb 6, 2022
Merged

update Legrand #3832

merged 3 commits into from
Feb 6, 2022

Conversation

EXP-Carthage
Copy link
Contributor

@EXP-Carthage EXP-Carthage commented Feb 6, 2022

  • Add Legrand 067772.
  • Remove unnecessary spaces and comments.
  • Refactoring legrand_device_mode.
  • Change exposes.enum('device_mode') to exposes.binary('device_mode') for Legrand 064882.
  • Removal of legrand_settingEnableDimmer because duplication of legrand_deviceMode.
  • Fix led_when_on, permanent_led: did not show their status.

Legrand 067772 database :

{
  "id": 4,
  "type": "Router",
  "ieeeAddr": "0x0004740000132502",
  "nwkAddr": 4728,
  "manufId": 4129,
  "manufName": " Legrand\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000",
  "powerSource": "Mains (single phase)",
  "modelId": " NLIS - Double light switch\u0000\u0000\u0000\u0000",
  "epList": [
    1,
    2,
    242
  ],
  "endpoints": {
    "1": {
      "profId": 260,
      "epId": 1,
      "devId": 256,
      "inClusterList": [
        3,
        4,
        5,
        15,
        6,
        0,
        64513
      ],
      "outClusterList": [
        5,
        0,
        64513,
        25
      ],
      "clusters": {
        "genBasic": {
          "attributes": {
            "modelId": " NLIS - Double light switch\u0000\u0000\u0000\u0000",
            "manufacturerName": " Legrand\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000",
            "powerSource": 1,
            "zclVersion": 2,
            "appVersion": 0,
            "stackVersion": 66,
            "hwVersion": 1,
            "dateCode": " \u000020210927\u0000\u0000\u0000\u0000\u0000",
            "swBuildId": "000d"
          }
        },
        "genOnOff": {
          "attributes": {
            "onOff": 0
          }
        },
        "manuSpecificUbisysDimmerSetup": {
          "attributes": {
            "2": 0
          }
        }
      },
      "binds": [
        {
          "cluster": 6,
          "type": "endpoint",
          "deviceIeeeAddress": "0x00212effff07d6c3",
          "endpointID": 1
        }
      ],
      "configuredReportings": [],
      "meta": {}
    },
    "2": {
      "profId": 260,
      "epId": 2,
      "devId": 256,
      "inClusterList": [
        3,
        4,
        5,
        15,
        6
      ],
      "outClusterList": [
        5
      ],
      "clusters": {
        "genOnOff": {
          "attributes": {
            "onOff": 0
          }
        }
      },
      "binds": [
        {
          "cluster": 6,
          "type": "endpoint",
          "deviceIeeeAddress": "0x00212effff07d6c3",
          "endpointID": 1
        }
      ],
      "configuredReportings": [],
      "meta": {}
    },
    "242": {
      "profId": 41440,
      "epId": 242,
      "devId": 102,
      "inClusterList": [
        33
      ],
      "outClusterList": [
        33
      ],
      "clusters": {},
      "binds": [],
      "configuredReportings": [],
      "meta": {}
    }
  },
  "appVersion": 0,
  "stackVersion": 66,
  "hwVersion": 1,
  "dateCode": " \u000020210927\u0000\u0000\u0000\u0000\u0000",
  "swBuildId": "000d",
  "zclVersion": 2,
  "interviewCompleted": true,
  "meta": {
    "configured": 2052383256
  },
  "lastSeen": 1644141938667,
  "defaultSendRequestWhen": "immediate"
}

* Remove unnecessary spaces and comments
* Refactoring `legrand_device_mode`
* Change `exposes.enum('device_mode')` to `exposes.binary('device_mode')` for Legrand 064882
* Removal of `legrand_settingEnableDimmer`: duplication of `legrand_deviceMode`
* Fix `led_when_on`, `permanent_led`: did not show their status
@Koenkk Koenkk merged commit 53f0a8a into Koenkk:master Feb 6, 2022
@EXP-Carthage EXP-Carthage deleted the update-legrand branch February 6, 2022 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants