-
-
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
[Feature request]: Zigbee Fingerbot Additional Options #18011
Comments
Maybe this helps?
|
I did some Zigbee sniffing and compiled this list as well:
|
Tried this code by following the docs but couldn't get anywhere :( 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 tuya = require('zigbee-herdsman-converters/lib/tuya')
const definition = {
// Since a lot of TuYa devices use the same modelID, but use different datapoints
// it's necessary to provide a fingerprint instead of a zigbeeModel
fingerprint: [
{
// The model ID from: Device with modelID 'TS0601' is not supported
// You may need to add \u0000 at the end of the name in some cases
modelID: 'TS0001_1',
// The manufacturer name from: Device with modelID 'TS0601' is not supported.
manufacturerName: '_TZ3210_dse8ogfy',
},
],
zigbeeModel: ['TS0001'],
model: 'TS0001_1',
vendor: 'Adaprox',
description: 'White Zigbee FingerBot plus',
fromZigbee: [tuya.fz.datapoints],
toZigbee: [tuya.tz.datapoints],
configure: tuya.configureMagicPacket,
exposes: [
// Here you should put all functionality that your device exposes
e.battery(),
e.enum('101', ea.STATE_SET, ['Click', 'Switch', 'Program']),
e.boolean('107', ea.STATE_SET),
e.enum('104', ea.STATE_SET, ['up_on', 'up_off']),
e.percent('102', ea.STATE_SET),
e.percent('106', ea.STATE_SET),
e.value('103', ea.STATE_SET, {min: 0, max: 10, unit: 's'}),
e.enum('1', ea.STATE_SET, ['On', 'Off']),
],
meta: {
// All datapoints go in here
tuyaDatapoints: [
[101, 'mode', tuya.converters.enum({0: 'Click', 1: 'Switch', 2: 'Program'})],
[107, 'touch_control', tuya.converters.boolean],
[104, 'reverse', tuya.converters.enum({0: 'up_on', 1: 'up_off'})],
[102, 'down_movement', tuya.converters.percent],
[106, 'up_movement', tuya.converters.percent],
[103, 'sustain_time', tuya.converters.value({min: 0, max: 10, unit: 's'})],
[1, 'switch', tuya.converters.enum({1: 'On', 0: 'Off'})],
[105, 'battery', tuya.converters.value({min: 0, max: 100})],
],
},
}
module.exports = definition |
Instead of e.g. |
I get this error:
|
This should be fixed after Koenkk/zigbee-herdsman-converters#5883 is merged. |
Awesome, thank you! |
@didi789 update to dev/edge version https://www.zigbee2mqtt.io/advanced/more/switch-to-dev-branch.html |
What does up_on and up_off mean in this case, sorry maybe it's obvious to everyone but for reverse up_on and up_off don't make sense to me. |
Is your feature request related to a problem? Please describe
The zigbee fingerbot only has limited options such as:
Switch on/off and power_on_behaviour
Describe the solution you'd like
add support for more options such as:
Describe alternatives you've considered
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered: