KEMBAR78
[New device support]: H&T sensor seen as bulb lamp · Issue #28855 · Koenkk/zigbee2mqtt · GitHub
Skip to content

[New device support]: H&T sensor seen as bulb lamp #28855

@Claudio1L

Description

@Claudio1L

Link

https://it.aliexpress.com/item/1005008749718628.html?spm=a2g0o.order_list.order_list_main.5.6dee3696SGQjVK&gatewayAdapt=glo2ita

Database entry

{"id":134,"type":"EndDevice","ieeeAddr":"0xa4c13841faa2cf5b","nwkAddr":20080,"manufId":4417,"manufName":"TELINK","powerSource":"Battery","modelId":"TLSR82xx","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":770,"inClusterList":[0,3,32,1026,1029,1],"outClusterList":[25],"clusters":{"genBasic":{"attributes":{"appVersion":0,"hwVersion":0}},"genPollCtrl":{"attributes":{"checkinInterval":14400}}},"binds":[{"cluster":32,"type":"endpoint","deviceIeeeAddress":"0x90395efffeb24806","endpointID":1}],"configuredReportings":[],"meta":{}}},"appVersion":0,"stackVersion":2,"hwVersion":0,"zclVersion":3,"interviewCompleted":true,"interviewState":"SUCCESSFUL","meta":{"configured":332242049},"lastSeen":1759511719758,"checkinInterval":3600}

Zigbee2MQTT version

2.6.2

Comments

Just bought 4 of those sensors and are seen as lamp like that:
https://www.zigbee2mqtt.io/devices/33951_33948.html#awox-33951%252F33948

Image
Image
Image
Image
Image

External definition


upper window

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

export default {
    zigbeeModel: ['TLSR82xx'],
    model: 'TLSR82xx',
    vendor: 'TELINK',
    description: 'Automatically generated definition',
    extend: [m.temperature(), m.humidity(), m.battery()],
    meta: {},
};

lower window

{
"description": "LED white",
"exposes": [
{
"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
}
],
"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"
]
},
{
"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
}
],
"icon": "device_icons/bab0db100ff714bea06c80784872af19.png",
"model": "33951/33948",
"options": [
{
"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
},
{
"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": "native",
"supports_ota": false,
"vendor": "AwoX"
}

What does/doesn't work with the external definition?

seen as lamp, so temperature, humidity and battery are not exposed

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions