Skip to content

Aqara LED Strip T1 - #7201

Merged
ebaauw merged 20 commits into
dresden-elektronik:masterfrom
ebaauw:t1
Sep 14, 2023
Merged

ebaauw merged 20 commits into
dresden-elektronik:masterfrom
ebaauw:t1

Conversation

@ebaauw

@ebaauw ebaauw commented Aug 26, 2023 •

Copy link
Copy Markdown
Collaborator

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
@ebaauw
ebaauw deleted the t1 branch September 14, 2023 18:08
@Cyrille63

Copy link
Copy Markdown

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

@ebaauw ebaauw mentioned this pull request Aug 20, 2024
1 task done
@Sumd84

Sumd84 commented Feb 26, 2025 •

Copy link
Copy Markdown

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

Using the API, through "config/color/gradient/pixel_count" you can change the number of segments of the LED strip.

The value corresponds to the number of 20cm segments. The value is 10 by default, corresponding to the 2m starter kit.
The value only affects RGB LEDs. Warm and Cold white Leds are independent of the parameter.

On the DeconzGUI, select the Led Strip and look for the parameter "Segments" at address 0x051B in the Lumi Specific section.

Sumd84 added a commit to Sumd84/deconz-rest-plugin that referenced this pull request Mar 19, 2025
* Update general.xml
Additional attributes for Aqara LED Strip T1:
- Music Sync Effect
- Music Sync Sensitivity

* Update resource.cpp/.h
Additional resource for Aqara LED Strip T1:
- RStateMusicSyncEffect
- RStateMusicSyncSensitivity

* Create state_music_sync_effect_item.json
* Create state_music_sync_sensitivity_item.json

* Update lumi_light_acn132.json
Add 2 attributs for music sync control:
- "state/music_sync_effect"
- "state/music_sync_sensitivity"
Sumd84 added a commit to Sumd84/deconz-rest-plugin that referenced this pull request Mar 19, 2025
* Update resource.cpp/.h
Add "segments" attributs for Aqara LED Strip T1, in replacement of pixel_count:
- RConfigColorGradientSegments

* Create config_color_gradient_segments_item.json

* Update lumi_light_acn132.json
rename attribut for segments configuration:
- "config/color/gradient/pixel_count" into "config/color/gradient/segments"
Sumd84 added a commit to Sumd84/deconz-rest-plugin that referenced this pull request Mar 19, 2025
Credit to Zigbee2MQTT project (https://github.com/Koenkk/zigbee-herdsman-converters),
on which I gathered the new attributes.

The Aqara LED Strip T1 provides 7 preset effects available via lumi.specific cluster:
- Attribut 0x051F: Selection of one of the 7 preset effects
- Attribut 0x0520: Set the speed of the selected preset effect

* Update resource.cpp/.h
Add new attributes for Aqara LED Strip T1:
- RStatePresetEffect
- RStatePresetSpeed

* Create state_preset_effect_item.json
* Create state_preset_speed_item.json

* Update lumi_light_acn132.json
Add attributes for preset effects controle:
- "state/preset_effect"
- "state/preset_speed"
Sumd84 added a commit to Sumd84/deconz-rest-plugin that referenced this pull request Mar 27, 2025
Credit to Zigbee2MQTT project (https://github.com/Koenkk/zigbee-herdsman-converters),
on which I gathered the new attributes for preset effects control.

Add control of preset effect.
Add full control of music sync by adding effect and sensitivity.
Slight refactor of the length configuration by using Segments in place of PixelCount.

* Update general.xml
The Aqara LED Strip T1 provides 7 preset effects available via lumi.specific cluster:
- Attribut 0x051F: Selection of one of the 7 preset effects
- Attribut 0x0520: Set the speed of the selected preset effect

* Update resource.cpp/.h
Add new attributes for Aqara LED Strip T1 music sync and preset effect control:
- RStateMusicSyncEffect = "state/music_sync_effect"
- RStateMusicSyncSensitivity = "state/music_sync_sensitivity"
- RStatePresetEffect = "state/preset_effect"
- RStatePresetSpeed = "state/preset_speed"
- RConfigColorGradientSegments = "config/color/gradient/segments"

* Update lumi_light_acn132.json
Add attributes for music sync and preset effects control:
- "state/music_sync_effect"
- "state/music_sync_sensitivity"
- "state/preset_effect"
- "state/preset_speed"
Rename "config/color/gradient/pixel_count" into "config/color/gradient/segments"

* Create state_music_sync_effect_item.json
* Create state_music_sync_sensitivity_item.json
* Create state_preset_effect_item.json
* Create state_preset_speed_item.json
* Create config_color_gradient_segments_item.json
Sumd84 added a commit to Sumd84/deconz-rest-plugin that referenced this pull request Apr 7, 2025
Add control of preset effect.
Add full control of music sync by adding effect and sensitivity.
Slight refactor of the length configuration by using Segments in place of PixelCount.

* Update rest_lights.cpp
Add handling of the following attributs:
- RStateMusicSyncEffect ("state/music_sync_effect")
- RStateMusicSyncSensitivity "state/music_sync_sensitivity")
- RStatePresetEffect  "state/preset_effect")
- RStatePresetSpeed ("state/preset_speed")
- RConfigColorGradientSegments ("config/color/gradient/segments")
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

3 participants