rc125
Fevereiro 27, 2024, 2:08am
1
Comprei esse interruptor mas o home assitant nao identifica as luzes depois que conecta
TS0601 by _TZE204_aagrxlbd
quantos dispositivos você tem no ZHA? já cogitou experimentar o zigbee2mqtt? Ele possui mais compatibilidade de dispositivos que o ZHA.
Comprei destes também e estou com dongle da sonoff, neste mesmo modelo TS0601, também não acha as teclas no ZigBee2Mqtt.
rc125
Março 18, 2024, 1:43pm
4
Consegui fazer funcionar no ZHA criando um Custom Quirk
Pra fazer é simples:
1 - Vai no arquivo configuration.yaml do HA
2 - Coloca uma nova configuração:
zha:
custom_quirks_path: /config/custom_zha_quirks/
3 - Cria a pasta custom_zha_quirks
4 - Coloca o arquivo ts0601_switch.py (https://github.com/zigpy/zha-device-handlers/blob/dev/zhaquirks/tuya/ts0601_switch.py )
5 - Adiciona o modelo como mostra na imagem
Depois disso migrei para o zigbee2mqtt devido a incompatibilidade de um sensor de presença da Moes.
No zigbee2mqtt ele identificou normal conforme o print
1 curtida
edsoudi
Fevereiro 4, 2025, 6:09pm
5
Turma, vocês conseguiam conectar? O arquivo em questão não funcionou para mim. Meu modelo é o mesmo de teclas físicas, porém outro código (TS0601 by _TZE204_unsxl4ir). Não funciona nem no ZHA e nem no z2mqtt (aponta como não suportado).
Walber
Fevereiro 4, 2025, 8:04pm
6
edsoudi:
_TZE204_unsxl4ir
Tenta usar esse conversor trocando _TZE204_aagrxlbd por _TZE204_unsxl4ir
abertos 02:17PM - 28 Feb 24 UTC
fechados 04:58PM - 29 Feb 24 UTC
I bought a light switch ( 4 gang) of brazilian brand NovaDigital. This device sh… ows unsupported in z2m.
The model looks like a zemismart TB26-4: https://www.zigbee2mqtt.io/devices/TB26-4.html
I was able to add the device creating a converter. I copied the exposes in this case and it works: https://github.com/Koenkk/zigbee2mqtt/issues/20944
Below is the code created:
```javascript
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: ['TS0601'],
model: 'TS0601',
vendor: '_TZE204_aagrxlbd',
description: 'Light Switch',
fromZigbee: [tuya.fz.datapoints],
toZigbee: [tuya.tz.datapoints],
//onEvent: tuya.onEventSetTime, // Add this if you are getting no converter for 'commandMcuSyncTime'
configure: tuya.configureMagicPacket,
exposes: [
// Here you should put all functionality that your device exposes
tuya.exposes.switch().withEndpoint('l1'),
tuya.exposes.switch().withEndpoint('l2'),
tuya.exposes.switch().withEndpoint('l3'),
tuya.exposes.switch().withEndpoint('l4'),
],
endpoint: (device) => {
return {'l1': 1, 'l2': 1, 'l3': 1, 'l4': 1};
},
meta: {
// All datapoints go in here
multiEndpoint: true,
tuyaDatapoints: [
[1, 'state_l1', tuya.valueConverter.onOff],
[2, 'state_l2', tuya.valueConverter.onOff],
[3, 'state_l3', tuya.valueConverter.onOff],
[4, 'state_l4', tuya.valueConverter.onOff],
],
},
};
module.exports = definition;
```
Sorry, I'm a noob to this code issue. With this information, is it possible to add the code to z2m for the next updates?
**I tried create a pull request, but i received validation error**
Thanks!
Se funcionar, vai nesse tópico e pede para inclui o novo modelo