Created
November 3, 2024 07:00
-
-
Save kerkerj/a9fbfcc810edc63a7ba2a32bd0dbb9ce to your computer and use it in GitHub Desktop.
VISO VZ-SS1 Zigbee Wireless Scene Switch 1 button
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const exposes = require('zigbee-herdsman-converters/lib/exposes'); | |
const fz = require('zigbee-herdsman-converters/converters/fromZigbee'); | |
const tuya = require('zigbee-herdsman-converters/lib/tuya'); | |
const e = exposes.presets; | |
// ref: | |
// Neo Smart https://github.com/Koenkk/zigbee-herdsman-converters/blob/854080d81c3fd622d2a6a15b5435193ecad8af68/src/devices/immax.ts#L257-L267 | |
const definition = { | |
fingerprint: [ | |
{ | |
modelID: 'TS004F', | |
manufacturerName: '_TZ3000_9dh0aauu', | |
}, | |
], | |
model: 'VZ-SS1', | |
vendor: 'VIZO', | |
description: 'VIZO Zigbee Wireless Scene Switch 1 button', | |
fromZigbee: [fz.battery, tuya.fz.on_off_action], | |
toZigbee: [], | |
configure: tuya.configureMagicPacket, | |
exposes: [e.battery(), e.action(['single', 'double', 'hold'])], | |
}; | |
module.exports = definition; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For those who bought VIZO Zigbee 情境單按鍵開關, and would like to use it in Home Assistant w/ zigbee2mqtt:
Here is the ts code you may need to create in z2m folder (if you find that z2m can not recognize the devices).
Just follow the step 2 and 3 in this official tutorial to let z2m recognize the device.
I will create a PR later if I have free time, or feel free to take this to make a pull request