Koenkk / zigbee2mqtt

Zigbee 🐝 to MQTT bridge 🌉, get rid of your proprietary Zigbee bridges 🔨
https://www.zigbee2mqtt.io
GNU General Public License v3.0
11.57k stars 1.63k forks source link

Aqara T1 Smart Ceiling Light #21574

Open KuliKul opened 5 months ago

KuliKul commented 5 months ago

Link

https://www.aqara.cn/-Ceiling-Light-T1M_overview

Database entry

{"id":7,"type":"Router","ieeeAddr":"0x54ef4410008f0e17","nwkAddr":28925,"manufId":4447,"manufName":"LUMI","powerSource":"Battery","modelId":"lumi.light.acn031","epList":[1,2],"endpoints":{"1":{"epId":1,"inClusterList":[],"outClusterList":[],"clusters":{"genBasic":{"attributes":{"61440":1,"modelId":"lumi.light.acn031","appVersion":26}},"manuSpecificLumi":{"attributes":{"128":{"type":"Buffer","data":[1,16,0,23,14,143,0,16,68,239,84,253,112,0,0,0,0,1]},"223":{"type":"Buffer","data":[22,33,2,0,23,33,0,0,12,33,3,0,24,33,0,0]},"229":{"type":"Buffer","data":[2,0,2,0,0,36,141,56,213,5,103]},"247":{"type":"Buffer","data":[117,32,254,115,35,153,153,204,76]},"65522":{"type":"Buffer","data":[170,117,19,132,9,65,7,65,0,15,12,35,1,1,0,2,10,35,8,0,12,100,11,32,2]}}}},"binds":[],"configuredReportings":[],"meta":{}},"2":{"epId":2,"inClusterList":[],"outClusterList":[],"clusters":{"lightingColorCtrl":{"attributes":{"245":40959232,"currentX":19660,"currentY":39321}}},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":26,"interviewCompleted":true,"meta":{"configured":88764544},"lastSeen":1708874171751}

Comments

I tried the add new unsupported devices, added successfully but cannot control it. The respond for everytime I try to control it as No converter available for 'state' ("").

The js file as below:

External definition

const {} = require('zigbee-herdsman-converters/lib/modernExtend');
// Add the lines below
const fz = require('zigbee-herdsman-converters/converters/fromZigbee');
const tz = require('zigbee-herdsman-converters/converters/toZigbee');
const exposes = require('zigbee-herdsman-converters/lib/exposes');
const reporting = require('zigbee-herdsman-converters/lib/reporting');
const extend = require('zigbee-herdsman-converters/lib/extend');
const ota = require('zigbee-herdsman-converters/lib/ota');
const tuya = require('zigbee-herdsman-converters/lib/tuya');
const {} = require('zigbee-herdsman-converters/lib/tuya');
const utils = require('zigbee-herdsman-converters/lib/utils');
const globalStore = require('zigbee-herdsman-converters/lib/store');
const e = exposes.presets;
const ea = exposes.access;

const definition = {
    zigbeeModel: ['lumi.light.acn031'],
    model: 'HCXDD11LM',
    vendor: 'Aqara',
    description: 'Aqara Ceiling Lamp T1',
    fromZigbee: [], // We will add this later
    toZigbee: [], // Should be empty, unless device can be controlled (e.g. lights, switches).
    extend: extend.light_onoff_brightness_colortemp_color(),
};

module.exports = definition;
Koenkk commented 5 months ago

Could you try with the generated external converter instead?

tomknocke commented 5 months ago

Had anybody success with that device? Actually i do not own that light, but seems to very interesting to get one in case it will be supported. Thanks

TooBri commented 4 months ago

Could you try with the generated external converter instead?

const {deviceEndpoints, light} = require('zigbee-herdsman-converters/lib/modernExtend');

const definition = { zigbeeModel: ['lumi.light.acn032'], model: 'lumi.light.acn032', vendor: 'Aqara', description: 'Automatically generated definition', extend: [deviceEndpoints({"endpoints":{"1":1,"2":2}}), light({"colorTemp":{"range":[153,370]}}), light({"colorTemp":{"range":[153,370]},"color":true})], meta: {"multiEndpoint":true}, };

module.exports = definition;

mtbhomer commented 4 months ago

I wondered if anybody succeeded in adding this device? After adding the device I don't see the button "generate external definition" as was suggested by @Koenkk

I'm happy to help out with testing definitions of this device.

corvis commented 3 months ago

Most likely the support for this device was added by this PR https://github.com/Koenkk/zigbee-herdsman-converters/pull/7203

mtbhomer commented 3 months ago

Nice, both the normal light and RGB are both working in the latest version!