[External Converter]: lumi.models.4447_6212 from Aqara

Open Beginner friendly
#33,847 3 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
70/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Domain
embedded-iot

Research direction

Start with the submitted external converter and the zigbee-herdsman-converters/lib/modernExtend import, then compare the Aqara LED Strip T2 attributes and endpoints with existing light converters. Verify that the submitted definition exposes the expected on/off, brightness, color-temperature, and color features, and run the relevant converter tests once the supported definition location is identified.

Written by the indexing model from the issue text.

Description

external converter
Link

https://www.aqara.com/en/product/led-strip-t2/

Database entry

{"id":96,"type":"Router","ieeeAddr":"0x54ef4410018b1cd0","nwkAddr":38804,"manufId":4447,"manufName":"Aqara","powerSource":"DC Source","modelId":"lumi.models.4447_6212","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":258,"inClusterList":[64707,64705,5,4,3,0,768,8,6,64527,64706,64704],"outClusterList":[25,10],"clusters":{"genBasic":{"attributes":{"modelId":"lumi.models.4447_6212","manufacturerName":"Aqara","powerSource":4,"zclVersion":3,"appVersion":35,"stackVersion":27,"hwVersion":1,"dateCode":"20261106"}},"lightingColorCtrl":{"attributes":{"colorCapabilities":25,"colorTempPhysicalMin":111,"colorTempPhysicalMax":500,"colorMode":2,"currentX":9830,"currentY":3932,"colorTemperature":250,"startUpColorTemperature":250}},"genOnOff":{"attributes":{"startUpOnOff":255,"onOff":0}},"genLevelCtrl":{"attributes":{"currentLevel":51}}},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":35,"stackVersion":27,"hwVersion":1,"dateCode":"20261106","zclVersion":3,"interviewCompleted":true,"interviewState":"SUCCESSFUL","meta":{"configured":"0.0.0"},"lastSeen":1795859326179}

Zigbee2MQTT version

2.14.3 (unknown)

External converter
import * as m from 'zigbee-herdsman-converters/lib/modernExtend';

export default {
    zigbeeModel: ['lumi.models.4447_6212'],
    model: 'LS-L05E',
    vendor: 'Aqara',
    description: 'LED Strip T2',
    extend: [m.identify(), m.light({"colorTemp":{"range":[111,500]},"color":{"modes":["xy","hs"]}})],
};
What does/doesn't work with the external definition?

{
"description": "LED Strip T2",
"exposes": [
{
"access": 2,
"category": "config",
"description": "Initiate device identification",
"label": "Identify",
"name": "identify",
"property": "identify",
"type": "enum",
"values": [
"identify"
]
},
{
"features": [
{
"access": 7,
"description": "On/off state of this light",
"label": "State",
"name": "state",
"property": "state",
"type": "binary",
"value_off": "OFF",
"value_on": "ON",
"value_toggle": "TOGGLE"
},
{
"access": 7,
"description": "Brightness of this light",
"label": "Brightness",
"name": "brightness",
"property": "brightness",
"type": "numeric",
"value_max": 254,
"value_min": 0
},
{
"access": 7,
"description": "Color temperature of this light",
"label": "Color temp",
"name": "color_temp",
"presets": [
{
"description": "Coolest temperature supported",
"name": "coolest",
"value": 111
},
{
"description": "Cool temperature (250 mireds / 4000 Kelvin)",
"name": "cool",
"value": 250
},
{
"description": "Neutral temperature (370 mireds / 2700 Kelvin)",
"name": "neutral",
"value": 370
},
{
"description": "Warm temperature (454 mireds / 2200 Kelvin)",
"name": "warm",
"value": 454
},
{
"description": "Warmest temperature supported",
"name": "warmest",
"value": 500
}
],
"property": "color_temp",
"type": "numeric",
"unit": "mired",
"value_max": 500,
"value_min": 111
},
{
"access": 7,
"description": "Color temperature after cold power on of this light",
"label": "Color temp startup",
"name": "color_temp_startup",
"presets": [
{
"description": "Coolest temperature supported",
"name": "coolest",
"value": 111
},
{
"description": "Cool temperature (250 mireds / 4000 Kelvin)",
"name": "cool",
"value": 250
},
{
"description": "Neutral temperature (370 mireds / 2700 Kelvin)",
"name": "neutral",
"value": 370
},
{
"description": "Warm temperature (454 mireds / 2200 Kelvin)",
"name": "warm",
"value": 454
},
{
"description": "Warmest temperature supported",
"name": "warmest",
"value": 500
},
{
"description": "Restore previous color_temp on cold power on",
"name": "previous",
"value": 65535
}
],
"property": "color_temp_startup",
"type": "numeric",
"unit": "mired",
"value_max": 500,
"value_min": 111
},
{
"access": 7,
"description": "Color of this light in the CIE 1931 color space (x/y)",
"features": [
{
"access": 7,
"label": "X",
"name": "x",
"property": "x",
"type": "numeric"
},
{
"access": 7,
"label": "Y",
"name": "y",
"property": "y",
"type": "numeric"
}
],
"label": "Color (X/Y)",
"name": "color_xy",
"property": "color",
"type": "composite"
},
{
"access": 7,
"description": "Color of this light expressed as hue/saturation",
"features": [
{
"access": 7,
"label": "Hue",
"name": "hue",
"property": "hue",
"type": "numeric"
},
{
"access": 7,
"label": "Saturation",
"name": "saturation",
"property": "saturation",
"type": "numeric"
}
],
"label": "Color (HS)",
"name": "color_hs",
"property": "color",
"type": "composite"
}
],
"type": "light"
},
{
"access": 2,
"description": "Triggers an effect on the light (e.g. make light blink for a few seconds)",
"label": "Effect",
"name": "effect",
"property": "effect",
"type": "enum",
"values": [
"blink",
"breathe",
"okay",
"channel_change",
"finish_effect",
"stop_effect",
"colorloop",
"stop_colorloop"
]
},
{
"access": 7,
"category": "config",
"description": "Controls the behavior when the device is powered on after power loss",
"label": "Power-on behavior",
"name": "power_on_behavior",
"property": "power_on_behavior",
"type": "enum",
"values": [
"off",
"on",
"toggle",
"previous"
]
},
{
"access": 1,
"category": "diagnostic",
"description": "Link quality (signal strength)",
"label": "Linkquality",
"name": "linkquality",
"property": "linkquality",
"type": "numeric",
"unit": "lqi",
"value_max": 255,
"value_min": 0
}
],
"model": "LS-L05E",
"options": [
{
"access": 2,
"description": "Sets the duration of the identification procedure in seconds (i.e., how long the device would flash).The value ranges from 1 to 30 seconds (default: 3).",
"label": "Identify timeout",
"name": "identify_timeout",
"property": "identify_timeout",
"type": "numeric",
"value_max": 30,
"value_min": 1
},
{
"access": 2,
"description": "Controls the transition time (in seconds) of on/off, brightness, color temperature (if applicable) and color (if applicable) changes. Defaults to 0 (no transition).",
"label": "Transition",
"name": "transition",
"property": "transition",
"type": "numeric",
"value_min": 0,
"value_step": 0.1
},
{
"access": 2,
"description": "When enabled colors will be synced, e.g. if the light supports both color x/y and color temperature a conversion from color x/y to color temperature will be done when setting the x/y color (default true).",
"label": "Color sync",
"name": "color_sync",
"property": "color_sync",
"type": "binary",
"value_off": false,
"value_on": true
},
{
"access": 2,
"description": "State actions will also be published as 'action' when true (default false).",
"label": "State action",
"name": "state_action",
"property": "state_action",
"type": "binary",
"value_off": false,
"value_on": true
}
],
"source": "external",
"supports_ota": false,
"vendor": "Aqara",
"version": "0.0.0"
}

Notes

software_build_id: undefined
date_code: 20261106
endpoints:

{"1":{"clusters":{"input":["64707","64705","genScenes","genGroups","genIdentify","genBasic","lightingColorCtrl","genLevelCtrl","genOnOff","64527","64706","64704"],"output":["genOta","genTime"]}}}
Dominant language
TypeScript
Stars
15.9k
Forks
2.1k
Avg merge
12h 11m
Merged PRs (30d)
32

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Koenkk/zigbee2mqtt

All issues in Koenkk/zigbee2mqtt

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.