Skip to content

Instantly share code, notes, and snippets.

@kerkerj
Created November 3, 2024 07:00
Show Gist options
  • Save kerkerj/d622be77b499119e49c8270797678c4f to your computer and use it in GitHub Desktop.
Save kerkerj/d622be77b499119e49c8270797678c4f to your computer and use it in GitHub Desktop.
VISO VZ-SS1 Zigbee Wireless Scene Switch 1 button
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