Koenkk / zigbee2mqtt

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

[New device support]: 1 gang switch _TZE600_ibfoajdt #20439

Closed gkozien closed 4 weeks ago

gkozien commented 8 months ago

Link

https://pl.aliexpress.com/item/4000369677580.html?spm=a2g0o.order_list.order_list_main.5.7aa71c247M4WHG&gatewayAdapt=glo2pol

Database entry

{"id":7,"type":"Router","ieeeAddr":"0xa4c138e3bb0469b9","nwkAddr":2968,"manufId":4107,"manufName":"_TZE600_ibfoajdt","powerSource":"Mains (single phase)","modelId":"TS0105","epList":[1,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":81,"inClusterList":[0,3,61184,10],"outClusterList":[25],"clusters":{"genBasic":{"attributes":{"modelId":"TS0105","manufacturerName":"_TZE600_ibfoajdt","powerSource":1,"zclVersion":3,"appVersion":0,"stackVersion":2,"hwVersion":0,"swBuildId":"0122052017"}}},"binds":[],"configuredReportings":[],"meta":{}},"242":{"profId":41440,"epId":242,"devId":97,"inClusterList":[],"outClusterList":[33],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":0,"stackVersion":2,"hwVersion":0,"swBuildId":"0122052017","zclVersion":3,"interviewCompleted":true,"meta":{},"lastSeen":1703928654862,"defaultSendRequestWhen":"immediate"}

Comments

After adding custom .js file as explained on page, and adding new configuration to yaml file and restart of zibee2mqtt It was always throwing same log stating that device is not supprted: Debug 2023-12-30 10:32:23Received Zigbee message from '0xa4c138e3bb0469b9', type 'commandMcuSyncTime', cluster 'manuSpecificTuya', data '{"payloadSize":186}' from endpoint 1 with groupID null Warning 2023-12-30 10:32:23Received message from unsupported device with Zigbee model 'TS0105' and manufacturer name '_TZE600_ibfoajdt'

Info 2023-12-30 09:38:32Successfully interviewed '0xa4c138e3bb0469b9', device has successfully been paired Warning 2023-12-30 09:38:32Device '0xa4c138e3bb0469b9' with Zigbee model 'TS0105' and manufacturer name '_TZE600_ibfoajdt' is NOT supported, please follow https://www.zigbee2mqtt.io/advanced/support-new-devices/01_support_new_devices.html Info 2023-12-30 09:38:32MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"definition":null,"friendly_name":"0xa4c138e3bb0469b9","ieee_address":"0xa4c138e3bb0469b9","status":"successful","supported":false},"type":"device_interview"}' Info 2023-12-30 09:38:32MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"interview_successful","meta":{"friendly_name":"0xa4c138e3bb0469b9","supported":false},"type":"pairing"}' Warning 2023-12-30 09:38:33Received message from unsupported device with Zigbee model 'TS0105' and manufacturer name '_TZE600_ibfoajdt' Warning 2023-12-30 09:38:33Please see: https://www.zigbee2mqtt.io/advanced/support-new-devices/01_support_new_devices.html

External 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 extend = require('zigbee-herdsman-converters/lib/extend');
const ota = require('zigbee-herdsman-converters/lib/ota');
const tuya = 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 = {
    fingerprint: [
        {
            modelID: 'TS0105',
            manufacturerName: '_TZE600_ibfoajdt',
        },
    ],
    model: 'TS0105_new',
    vendor: 'TuYa',
    description: '1 gang switch',
    extend: extend.switch(),
    exposes: [e.switch().withEndpoint('l1').setAccess('state', ea.STATE_SET)],
    fromZigbee: [fz.ignore_basic_report, fz.tuya_switch],
    toZigbee: [tz.tuya_switch_state],
    meta: {multiEndpoint: true},
    endpoint: (device) => {
        // Endpoint selection is made in tuya_switch_state
        return {'l1': 1};
    },
};

module.exports = definition;

Supported color modes

No response

Color temperature range

No response

github-actions[bot] commented 2 months ago

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 30 days