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

Aqara LED Strip T1 #7201

Merged
merged 20 commits into from Sep 14, 2023
Merged

Aqara LED Strip T1 #7201

merged 20 commits into from Sep 14, 2023

Conversation

ebaauw
Copy link
Collaborator

@ebaauw ebaauw commented Aug 26, 2023

Add initial support for the Aqara LED Strip T1, see #7200.

Aready working:

  • Regular control through state/on, state/bri, state/ct, state/xy, and state/alert;
  • Music sync through state/music_sync;
  • Setting length through config/color/gradient/pixel_count;

Still to do:

  • Dynamic effects through state/effect;
  • Gradients through state/gradient.
  • Somehow the legacy code is still interfering with the DDF.
    • manufacturername is sometimes exposed as "LUMI", even though _Manufacturer Name_ is "Aqara"`;
    • state/effect is exposed, even though it's not included in the DDF.
    • Color Loop Active is being called, even though the LED Strip T1 doesn't support this attribute.
    • Added a check on device type Color Dimmable Light and empty Manufacturer Code, Manufacturer Name, and Model Identifier to prevent state/effect from being exposed. This also stops the polling of Color Loop Active. Somehow, addLightNode() is called way too early, before any of this info has been read and before the Device is created, so I cannot even check for a managed device.
{
  "capabilities": {
    "alerts": [
      "none",
      "select",
      "lselect"
    ],
    "color": {
      "ct": {
        "computes_xy": true,
        "max": 370,
        "min": 153
      },
      "gradient": {
        "pixel_length": 2000
      },
      "modes": [
        "ct",
        "gradient",
        "xy"
      ],
      "xy": {
        "blue": [
          0,
          0
        ],
        "green": [
          0,
          0.9961
        ],
        "red": [
          0.9961,
          0
        ]
      }
    }
  },
  "colorcapabilities": 24,
  "config": {
    "bri": {
      "execute_if_off": true,
      "max": 254,
      "min": 3,
      "on_level": 254,
      "onoff_transitiontime": 4
    },
    "color": {
      "execute_if_off": true,
      "gradient": {
        "pixel_count": 10
      }
    },
    "groups": [],
    "on": {
      "startup": "previous"
    }
  },
  "ctmax": 370,
  "ctmin": 153,
  "etag": "31e4befc2c3cf9819ba7f33d042023ba",
  "hascolor": true,
  "lastannounced": null,
  "lastseen": "2023-09-12T19:17Z",
  "manufacturername": "Aqara",
  "modelid": "lumi.light.acn132",
  "name": "Extended color light 9",
  "state": {
    "alert": "none",
    "bri": 254,
    "colormode": "xy",
    "ct": 250,
    "music_sync": false,
    "on": false,
    "reachable": true,
    "xy": [
      0.3827,
      0.382
    ]
  },
  "swversion": "0.0.0_2627",
  "type": "Extended color light",
  "uniqueid": "54:ef:44:10:00:8c:04:c2-01"
}

@ebaauw ebaauw linked an issue Aug 26, 2023 that may be closed by this pull request
@ebaauw ebaauw requested a review from manup September 11, 2023 20:26
@ebaauw ebaauw marked this pull request as ready for review September 12, 2023 16:01
@ebaauw ebaauw added this to the v2.23.1-beta milestone Sep 12, 2023
Dirty hack to prevent `state/effect` on `lumi.light.acn132`, but `setHaEndpoint()` is invoked before Device is available or _Manufacturer Code_, _Manufacturer Name_, and _Model Identifier_ have been read.
@ebaauw ebaauw merged commit 2cf8059 into dresden-elektronik:master Sep 14, 2023
1 check failed
@ebaauw ebaauw deleted the t1 branch September 14, 2023 18:08
@Cyrille63
Copy link

Is it possible to set strip lenght (without aqara hub) if I add an 1m extension kit ? If yes how ? Thk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Aqara LED Strip T1
2 participants