Comments (10)
Hi @kirovilya is this your mentioned device?
dresden-elektronik/deconz-rest-plugin#1666
from zigbee-herdsman.
@tb-killa yes
from zigbee-herdsman.
some handlers for this cluster and device https://github.com/monninn82/SmartThingsPublic-Backup/blob/master/devicetypes/smartthings/zigbee-scene-keypad.src/zigbee-scene-keypad.groovy#L61
from zigbee-herdsman.
I think we can use dummy-cluster for this case:
cluster23: {
ID: 23,
attributes: {},
commands: {},
commandsResponse: {},
},
from zigbee-herdsman.
Yes, but also commands and attributes have to be added otherwise it has no use.
from zigbee-herdsman.
This is only necessary to eliminate parsing errors. We already have similar clusters without attributes and commands https://github.com/Koenkk/zigbee-herdsman/blob/master/src/zcl/definition/cluster.ts#L3457
Processing data can be handled like a buffer.
from zigbee-herdsman.
So the idea is to parse the raw buffer in zigbee-herdsman-converters?
from zigbee-herdsman.
@Koenkk yes
orvibo_raw: {
cluster: 'cluster23',
type: 'raw',
convert: (model, msg, publish, options) => {
// 25,0,8,3,0,0 - click btn 1
// 25,0,8,3,0,2 - hold btn 1
// 25,0,8,3,0,3 - release btn 1
// 25,0,8,11,0,0 - click btn 2
// 25,0,8,11,0,2 - hold btn 2
// 25,0,8,11,0,3 - release btn 2
// 25,0,8,7,0,0 - click btn 3
// 25,0,8,7,0,2 - hold btn 3
// 25,0,8,7,0,3 - release btn 3
// 25,0,8,15,0,0 - click btn 4
// 25,0,8,15,0,2 - hold btn 4
// 25,0,8,15,0,3 - release btn 4
// TODO: do not know how to get to use 5,6,7,8 buttons
const btn_lookup = {
3: 'btn_1',
11: 'btn_2',
7: 'btn_3',
15: 'btn_4',
},
act_lookup = {
0: 'click',
2: 'hold',
3: 'release',
},
button = btn_lookup[msg.data[3]],
action = act_lookup[msg.data[5]];
if (button && action) {
return {[button]: action};
}
},
},
from zigbee-herdsman.
Instead of having to define an empty cluster, zigbee-herdsman will now expose the cluster ID instead (as a number). So adding it to clusters.ts
is not needed anymore.
Your converter should then use a number instead of string:
orvibo_raw: {
cluster: 23, // <--- cluster number
type: 'raw',
convert: (model, msg, publish, options) => {
// 25,0,8,3,0,0 - click btn 1
// 25,0,8,3,0,2 - hold btn 1
// 25,0,8,3,0,3 - release btn 1
// 25,0,8,11,0,0 - click btn 2
// 25,0,8,11,0,2 - hold btn 2
// 25,0,8,11,0,3 - release btn 2
// 25,0,8,7,0,0 - click btn 3
// 25,0,8,7,0,2 - hold btn 3
// 25,0,8,7,0,3 - release btn 3
// 25,0,8,15,0,0 - click btn 4
// 25,0,8,15,0,2 - hold btn 4
// 25,0,8,15,0,3 - release btn 4
// TODO: do not know how to get to use 5,6,7,8 buttons
const btn_lookup = {
3: 'btn_1',
11: 'btn_2',
7: 'btn_3',
15: 'btn_4',
},
act_lookup = {
0: 'click',
2: 'hold',
3: 'release',
},
button = btn_lookup[msg.data[3]],
action = act_lookup[msg.data[5]];
if (button && action) {
return {[button]: action};
}
},
},
from zigbee-herdsman.
Ok. thank you
from zigbee-herdsman.
Related Issues (20)
- Ember driver : Error while parsing received frame, status=NO_RX_SPACE. HOT 1
- Ember driver: SET "APS_UNICAST_MESSAGE_COUNT" TO "32" with status=ERROR_OUT_OF_MEMORY. HOT 1
- State of ZiGate support HOT 17
- [Cluster Type] Align cluster definition for 'name' attribute HOT 1
- Silabs Zigbee EmberZNet 8.0.0.0 (and Silicon Labs Gecko SDK 5.0.0.0) announced and to be released in Q3 2024 HOT 1
- zStack Parsing Error & Manufacturer Custom Command reported multiple times HOT 1
- Custom cluster support HOT 2
- The readme docu link leads to 502 HOT 2
- Issue with serialport v12 and node > v20.2.0 HOT 1
- Get strange error in latest z2m with the latest zigbee-herdsman HOT 6
- [Task] ZCL definition update HOT 4
- Want better endpoint.writeStructured() HOT 3
- Z2M 1.35.2 stops with "Adapter disconnected, stopping" after few minutes of uptime (Sonoff-E / EZSP v12 / FW 7.3.2.0 build 212) HOT 3
- Load additional manufacturer-specific clusters from device converter HOT 4
- [Proposal] Removal of "forever" Permit Join HOT 11
- Adapters hardware flow control issues HOT 30
- Ikea Motion Sensor E1525/E1745 not updating properly HOT 6
- proposal: deprecation of legacy clicks HOT 1
- Move special readResponse out of zhc/src/index.ts (fixes legrand pairing issues) HOT 8
- Changes to payload when sending zclData to a device breaks iobroker.zigbee function
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zigbee-herdsman.