Skip to content
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

Issue with TuYa iH-F8260 support #22312

Closed
vinodmishra opened this issue Apr 25, 2024 · 2 comments
Closed

Issue with TuYa iH-F8260 support #22312

vinodmishra opened this issue Apr 25, 2024 · 2 comments
Labels
problem Something isn't working

Comments

@vinodmishra
Copy link

vinodmishra commented Apr 25, 2024

What happened?

Support was added as part of this issue. #21172
However it was added as a variant for the battery powered version while this device has no battery so Zigbee2mqtt log is full of errors related to ZCL commands

error 2024-04-24 03:19:09Failed to configure '0xb0c7defffe7e90c4', attempt 1 (Error: ZCL command 0xb0c7defffe7e90c4/1 genPowerCfg.read(["batteryVoltage","batteryPercentageRemaining"], {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (Status 'UNSUPPORTED_ATTRIBUTE') at Endpoint.checkStatus (/app/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:319:28) at Endpoint.zclCommand (/app/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:762:22) at Endpoint.read (/app/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:404:24) at Object.configure (/app/node_modules/zigbee-herdsman-converters/src/devices/moes.ts:369:13) at Configure.configure (/app/lib/extension/configure.ts:122:13) at Configure.onMQTTMessage (/app/lib/extension/configure.ts:55:21) at EventEmitter.wrappedCallback (/app/lib/eventBus.ts:174:17))
info 2024-04-24 03:19:09MQTT publish: topic 'zigbee2mqtt/bridge/response/device/configure', payload '{"data":{"id":"0xb0c7defffe7e90c4"},"error":"Failed to configure (ZCL command 0xb0c7defffe7e90c4/1 genPowerCfg.read(["batteryVoltage","batteryPercentageRemaining"], {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (Status 'UNSUPPORTED_ATTRIBUTE'))","status":"error","transaction":"xhv48-1"}'

What did you expect to happen?

No errors to be shown

How to reproduce it (minimal and precise)

Just add this device to zigbee2mqtt and error shows up. To resolve it I am using the external converter at the moment.

Zigbee2MQTT version

1.36.1

Adapter firmware version

20230507

Adapter

Sonoff Zigbee USB Dongle P

Setup

Z2M and HA in containers

Debug log

No response

@vinodmishra vinodmishra added the problem Something isn't working label Apr 25, 2024
@vinodmishra
Copy link
Author

vinodmishra commented Apr 25, 2024

This is the external converter that is working for me

const {} = require('zigbee-herdsman-converters/lib/modernExtend');
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 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 zosung = require('zigbee-herdsman-converters/lib/zosung');
const e = exposes.presets;
const ea = exposes.access;
const fzZosung = zosung.fzZosung;
const tzZosung = zosung.tzZosung;
const ez = zosung.presetsZosung;

const definition = {
    fingerprint: [
        {
            modelID: 'TS1201',
            manufacturerName: '_TZ3290_gnl5a6a5xvql7c2a',
        },
    ],
    model: 'iH-F82600',
    vendor: 'TuYa',
    description: 'Universal smart IR remote control',
        fromZigbee: [
                fzZosung.zosung_send_ir_code_00, fzZosung.zosung_send_ir_code_01             , fzZosung.zosung_send_ir_code_02,
                fzZosung.zosung_send_ir_code_03, fzZosung.zosung_send_ir_code_04             , fzZosung.zosung_send_ir_code_05,
        ],
        toZigbee: [tzZosung.zosung_ir_code_to_send, tzZosung.zosung_learn_ir_cod             e],
    onEvent: tuya.onEventSetTime, // Add this if you are getting no converter fo             r 'commandMcuSyncTime'
    configure: tuya.configureMagicPacket,
    exposes: [ez.learn_ir_code(), ez.learned_ir_code(), ez.ir_code_to_send()],
};

module.exports = definition;

@Koenkk
Copy link
Owner

Koenkk commented Apr 25, 2024

Fixed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
problem Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants