-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[New device support]: #23268
Comments
this is the external definition of the supported one: const {identify, iasZoneAlarm} = require('zigbee-herdsman-converters/lib/modernExtend'); const definition = { module.exports = definition; |
With the generated external definition, does either |
Thank you for your quick response, alarm_1 changes to true when smoke is detected |
Added! Changes will be available in the dev branch in a few hours from now. |
Thank you very much! |
Link
https://www.zigbee2mqtt.io/devices/TW-S1.html
Database entry
{"id":3,"type":"EndDevice","ieeeAddr":"0x00158d0002f87ccb","nwkAddr":52353,"manufId":4628,"manufName":"iHorn","powerSource":"Battery","modelId":"LH05121","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":1026,"inClusterList":[0,3,1280],"outClusterList":[],"clusters":{"genBasic":{"attributes":{"modelId":"LH05121","manufacturerName":"iHorn","powerSource":3,"zclVersion":1,"appVersion":15,"stackVersion":2,"hwVersion":17,"dateCode":"20170414"}},"ssIasZone":{"attributes":{"iasCieAddr":"0x00124b0029de0963","zoneState":1}}},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":15,"stackVersion":2,"hwVersion":17,"dateCode":"20170414","zclVersion":1,"interviewCompleted":true,"meta":{},"lastSeen":1720169981439}
Comments
i have several konke smoke detectors, where 1 is supported by z2m and identify as:
Apparaat type
EndDevice
Zigbee model
3AFE010104020028
Zigbee Fabrikant
Konke
Omschrijving
Photoelectric smoke detector
Fabrikant
Konke
Model
TW-S1
and several others which are not supported, i bought these first and the voice is in chinese, the internals and exterior looks identical but this identifies as:
Apparaat type
EndDevice
Zigbee model
LH05121
Zigbee Fabrikant
iHorn
Ondersteuningsstatus
Niet ondersteund (how_to_add_support)
Firmware build date
20170414
but the exposed stuff isn't the same as the english spoken (supported one). external converter worked until version 1.36 after the updates, i can't get it to work like the supported one.
when i press generate they generate the same external converter,
but the supported one works like intended like my old converter:
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 e = exposes.presets;
const ea = exposes.access;
const definition = {
zigbeeModel: ['LH05121'], // The model ID from: Device with modelID 'lumi.sens' is not supported.
model: 'LH05121', // Vendor model number, look on the device for a model number
vendor: 'Konke', // Vendor of the device (only used for documentation and startup logging)
description: 'Konke smoke detector', // Description of the device, copy from vendor site. (only used for documentation and startup logging)
fromZigbee: [fz.ias_smoke_alarm_1],
toZigbee: [],
exposes: [e.smoke(), e.battery_low()], // <-- this will define which fields will be exposed in the definition message to configure a front end (e.g. the z2m frontend, Home Assistant, Domoticz)
};
module.exports = definition;
I tried so many converters i could but failed and don't understand why the same device from the same seller has differences. I tried the original bridge to ota, but that didn't work either:
https://zigbee.blakadder.com/Konke_KK-SA-H03.html
External definition
The text was updated successfully, but these errors were encountered: