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

Aperta Adatta ai principianti
#33,847 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
70/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
javascript, typescript
Ambito
embedded-iot

Direzione di ricerca

Inizia con il convertitore esterno inviato e l’importazione zigbee-herdsman-converters/lib/modernExtend, quindi confronta gli attributi e gli endpoint dell’Aqara LED Strip T2 con i convertitori di luce esistenti. Verifica che la definizione inviata esponga le funzionalità previste di accensione/spegnimento, luminosità, temperatura colore e colore, ed esegui i test pertinenti del convertitore una volta identificata la posizione supportata della definizione.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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"]}}}
Lingua principale
TypeScript
Stelle
15.8k
Fork
2.1k
Merge medio
1g 4h
PR unite (30g)
40

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Koenkk/zigbee2mqtt

Tutte le issue di Koenkk/zigbee2mqtt

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.