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

[New device support]: IKUU SISW11 #24450

Open
gerritg77 opened this issue Oct 23, 2024 · 0 comments
Open

[New device support]: IKUU SISW11 #24450

gerritg77 opened this issue Oct 23, 2024 · 0 comments
Labels
new device support New device support request

Comments

@gerritg77
Copy link

Link

https://www.ikuu.com.au/product/inline-switch-compatible-with-momentary-press-2/

Database entry

{"id":37,"type":"Router","ieeeAddr":"0x70ac08fffe18cf84","nwkAddr":48867,"manufId":4098,"manufName":"_TZ3000_hf3jhnf0","powerSource":"Mains (single phase)","modelId":"TS0001","epList":[1,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":256,"inClusterList":[0,3,4,5,6,57344,57345],"outClusterList":[25,10],"clusters":{"genBasic":{"attributes":{"65534":0,"modelId":"TS0001","manufacturerName":"_TZ3000_hf3jhnf0","powerSource":1,"zclVersion":3,"appVersion":76,"stackVersion":0,"hwVersion":1,"dateCode":""}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0xe0798dfffe110ee9","endpointID":1}],"configuredReportings":[],"meta":{}},"242":{"profId":41440,"epId":242,"devId":97,"inClusterList":[],"outClusterList":[33],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":76,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"meta":{"configured":332242049},"lastSeen":1729674000357}

Zigbee2MQTT version

1.40.2

Comments

I tried creating a new device and followed the instructions. The issue I'm having is that the device itself supports connection to physical toggle or momentary switches, but for some reason I could not get these attributes exposed or operating in z2Mqtt. Currently the device is operating like a 'momentary switch' is connected, instead of toggle switch.
IMG_8100
IMG_8099
IMG_8098
IMG_8097
IMG_8096
image
image
image

External definition

const {onOff} = require('zigbee-herdsman-converters/lib/modernExtend');

const definition = {
    zigbeeModel: ['TS0001'],
    model: 'TS0001',
    vendor: '_TZ3000_hf3jhnf0',
    description: 'Automatically generated definition',
    extend: [onOff({"powerOnBehavior":false})],
    meta: {},
};

module.exports = definition;

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

I do not get the option for switch_type (momentary/toggle/etc). I've also tried something like the below, but does not appear to work.

const {onOff} = 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 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: [‘WHD02’],
model: 'TS0101',
vendor: '_TZ3000_hf3jhnf0',
description: 'CUSTOM FILE',
extend: [onOff({"powerOnBehavior":false})],
meta: {
multiendpoint: true,
tuyaDatapoint: [
[107, 'switch_type', tuya.valueConverter.switchType],
],
},
tozigbee: [tz.on_off, tuya.tz.power_on_behavior, tuya.tz.switch_type],
fromzigbee: [fz.on_off, tuya.fz.power_on_behavior, tuya.fz.switch_type],
exposes: [tuya.exposes.switchType()],
};

module.exports = definition;

@gerritg77 gerritg77 added the new device support New device support request label Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new device support New device support request
Projects
None yet
Development

No branches or pull requests

1 participant