-
-
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]: Device - model 'TS011F' and manufacturer name '_TZ3000_3zofvcaa' #11483
Comments
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days |
Any chance to have this device officially supported on next version of Zigbee2mqtt ? |
Could you check if the controlling of endpoints is fixed by changing the Change const firstEndpoint = device.getEndpoint(1);
await reporting.bind(firstEndpoint, coordinatorEndpoint, ['genOnOff']); to const firstEndpoint = device.getEndpoint(1);
await firstEndpoint.read('genBasic', ['manufacturerName', 'zclVersion', 'appVersion', 'modelId', 'powerSource', 0xfffe]);
await reporting.bind(firstEndpoint, coordinatorEndpoint, ['genOnOff']); |
Dear Koen,
I just tested it and now it works correctly ! Now it is possible to control
the four plugs independently !!!!
One question: In the original application there is an additional switch
that turns on and turns off all the four plugs simultaneously. Is it
possible to also add this feature ? Do you know how to do it ?
Thank you very much,
Geraldo
Em sáb., 26 de mar. de 2022 às 10:44, Koen Kanters ***@***.***>
escreveu:
… Could you check if the controlling of endpoints is fixed by changing the
configure() like this?
Change
const firstEndpoint = device.getEndpoint(1);await reporting.bind(firstEndpoint, coordinatorEndpoint, ['genOnOff']);
to
const firstEndpoint = device.getEndpoint(1);await firstEndpoint.read('genBasic', ['manufacturerName', 'zclVersion', 'appVersion', 'modelId', 'powerSource', 0xfffe]);await reporting.bind(firstEndpoint, coordinatorEndpoint, ['genOnOff']);
—
Reply to this email directly, view it on GitHub
<#11483 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AVB7IK2RXONLCDBPH6SXR3LVB4IDRANCNFSM5OZJYAUA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Added it (so it will be supported in the next z2m release)
For this you would have to sniff the command when doing this via the TuYa bridge (https://www.zigbee2mqtt.io/advanced/zigbee/04_sniff_zigbee_traffic.html#with-cc2531). Alternatively you could put all the endpoints in 1 group and control the group. |
Just for future reference, this is being called as |
@Koenkk, there is a missing configuration on this device: childLock I tried with this external_converter and it works like a charm:
Can you please add this to the branch? Thanks! |
@rodrigogbs done! |
You're amazing @Koenkk , thank you! |
Link
https://pt.aliexpress.com/item/1005003822349807.html?gatewayAdapt=glo2bra&spm=a2g0o.order_list.0.0.21efcaa4zLrmXD
Database entry
{"id":22,"type":"Router","ieeeAddr":"0xa4c138255c04d0df","nwkAddr":4238,"manufId":4417,"manufName":"_TZ3000_3zofvcaa","powerSource":"Mains (single phase)","modelId":"TS011F","epList":[1,2,242,3,4],"endpoints":{"1":{"profId":260,"epId":1,"devId":266,"inClusterList":[3,4,5,6,57344,57345,0],"outClusterList":[25,10],"clusters":{"genBasic":{"attributes":{"stackVersion":0,"dateCode":""}},"genOnOff":{"attributes":{"20480":1,"32768":0,"onOff":1,"onTime":0,"offWaitTime":0,"tuyaBacklightMode":1,"moesStartUpOnOff":1}},"manuSpecificTuya_3":{"attributes":{"53264":1,"switchType":0}}},"binds":[],"configuredReportings":[],"meta":{}},"2":{"profId":260,"epId":2,"devId":266,"inClusterList":[4,5,6,57345],"outClusterList":[],"clusters":{"genOnOff":{"attributes":{"onOff":1,"onTime":0,"offWaitTime":0}},"manuSpecificTuya_3":{"attributes":{"53264":1}}},"binds":[],"configuredReportings":[],"meta":{}},"3":{"profId":260,"epId":3,"devId":266,"inClusterList":[4,5,6,57345],"outClusterList":[],"clusters":{"genOnOff":{"attributes":{"onOff":1,"onTime":0,"offWaitTime":0}},"manuSpecificTuya_3":{"attributes":{"53264":1}}},"binds":[],"configuredReportings":[],"meta":{}},"4":{"profId":260,"epId":4,"devId":266,"inClusterList":[4,5,6,57345],"outClusterList":[],"clusters":{"genOnOff":{"attributes":{"onOff":1,"onTime":0,"offWaitTime":0}},"manuSpecificTuya_3":{"attributes":{"53264":1}}},"binds":[],"configuredReportings":[],"meta":{}},"242":{"profId":41440,"epId":242,"devId":97,"inClusterList":[],"outClusterList":[33],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":67,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"meta":{},"lastSeen":1645221345670,"defaultSendRequestWhen":"immediate"}
Comments
Hello,
I've got a TS011F _TZ3000_3zofvcaa zemismat wall outlet TB242-ZB that is not supported. According the description, it is possible to control the 2 power plugs and the 2 usb plugs but there is no energy measuring feature.
I coded a converter based on the instructions 'how to support new devices' but Iit doesn´t work perfectly. By using the converter Zigbee2mqtt identifies all the 4 channels but if you select a channel and send a turn or a turn off command all the 4 channels are affected. Question: is it possible to fix this ?
Is it also possible to add it officially to zigbee2mqtt ?
Thank you.
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 e = exposes.presets;
const ea = exposes.access;
const definition = {
fingerprint: [
{
modelID: 'TS011F',
manufacturerName: '_TZ3000_3zofvcaa'
}
],
model: 'TS011F_2_gang_2_usb_wall',
vendor: 'TuYa',
description: '2 gang 2 usb wall outlet',
toZigbee: extend.switch().toZigbee.concat([tz.moes_power_on_behavior, tz.tuya_backlight_mode]),
fromZigbee: extend.switch().fromZigbee.concat([fz.moes_power_on_behavior, fz.tuya_backlight_mode]),
exposes: [
e.switch().withEndpoint('l1'),
e.switch().withEndpoint('l2'),
e.switch().withEndpoint('l3'),
e.switch().withEndpoint('l4'),
exposes.enum('power_on_behavior', ea.ALL, ['on', 'off', 'previous']),
exposes.enum('backlight_mode', ea.ALL, ['LOW', 'MEDIUM', 'HIGH']),
],
endpoint: () => {
return {'l1': 1, 'l2': 2, 'l3': 3, 'l4': 4};
},
meta: {multiEndpoint: true},
configure: async (device, coordinatorEndpoint) => {
const firstEndpoint = device.getEndpoint(1);
await reporting.bind(firstEndpoint, coordinatorEndpoint, ['genOnOff']);
await reporting.onOff(firstEndpoint);
};
module.exports = definition;
Supported color modes
No response
Color temperature range
No response
The text was updated successfully, but these errors were encountered: