-
Notifications
You must be signed in to change notification settings - Fork 503
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
TS004F _TZ3000_4fjiwweb #6031
Comments
As there has not been any response in 21 days, this issue has been automatically marked as stale. At OP: Please either close this issue or keep it active It will be closed in 7 days if no further activity occurs. |
Also have this device, by default recognize as a switch and a light (no effects). Will be great if it can be supported. |
It's a battery switch ? Else can you share the DDF skeleton for I finish it ? |
Here you have the procedure to create a DDF https://github.com/dresden-elektronik/deconz-rest-plugin/wiki/DDF-cheat-sheet You can finish it yourself, you will see it s realy easy, but on my side I need a starting point to avoid typo (and you a base to replace the file) . some part can be autofilled
Share the DDF (the file contain and copy/paste the third tab. |
{ |
Arf, lol, have just see what kind of device it's, not a simple switch ^^
For the moment have put a bind only for the cluster on/off so the setlevel will probably don't work (I think it's the rotation) Can you try this DDF, then on deconz / help / debug view, enable flag "info", "info_l2" and use the device, you will have error message like this one
Can you try wich one commands are working (if you have the error message it mean it can work, if you don't have the error message we miss a binding) |
Button push
Rotation clockwise(one step):
Rotation counterclockwise(one step):
The rotation payload is different depending on the direction and number of steps in one rotation. For example, if I rotate the knob pretty fast for several steps in one action the payload could be "006D0300". Steps here I mean kinda mechanical feedback during rotation. The rotation is not completely smooth, it has small tactile bumps. I hope it is clear what I mean. |
Sorry didn’t have time to test it this week. I wonder if you can also try “rotate while holding button”? It is also a valid button combination for this dimmer (to change the ambiance of the light). |
It seem fine. In the same folder you have found the DDF (the "devices" folder) you have a file called button_maps.json
Yep but unfortunately, the basic ZHAswitch only return value like X00Y, need to create a special sensor like for the cube if you want to use the "force used" for the rotation. And as the cluster 0x0008 is working, I think you can remove the the part for the 0x0006
But we will see at the end, can need it to prevent broadcast request or to use the group feature for direct bind. |
Double click
push(hold) and rotate clockwise(1 STEP)
push(hold) and rotate counterclockwise(1 STEP)
Again payload depends on the direction and how many "bumps" are done during one continuous rotation.
Looks like it is not a force(how fast I rotate), but a number of steps done in one rotation. If this number is not delivered, then it means for example that to deem lights by several levels you need to pause after each rotation. Because when I rotate the knob continuously it produces one event in the log instead of multiple. |
With last features
But the problem is the same all third app wait for a X00Y return, I don't have idea to exploit the "step number" I m waiting a return from dev discord, but one of you know how to use zigbee group ? This device can probalby be used to make a direct bind with the remote and a light device (that support it, and a device that can use level and color control) |
I updated DDF file and added to the button_maps.json file. |
Here is my scenario: |
If you add the dimmer (light) into the same group as the lights you want to control, the dimmer will only control those lights instead of all lights. Just a workaround and how I use the dimmer at this moment. But yes there is no event occurred outside of deCONz (such as homebridge-hue) |
@tomky Thank you, it works! |
But you don't have the state/buttonevent updated with the button value ? This value need to be updated according to value used in the last json.
Ok so it mean we need to disable the broadcast.
This DDF will enable the "special remote group" and make all bind to this group, so all other light will stop react (if I m right ofc) |
@Smanar API section for the switch and for the dimmer:
The value is |
Are you sure using the good DDF ? I have removed the "Dimmer switch", mine create only "ZHASwitch", only "sensor" entry, no "light". If it s still not working, can you share some logs when using it ? with "info" "info_l2" and "ddf", can use a screen capture. |
I deleted the devices and added it again. I still see 2 devices in Phoscon APP, but events are propagated properly under
|
But "light" haven't state/buttonevent ? It s the "sensor" entry that have this field from your previous c/c. You are looking event in phoscon or openHAB ? What is your deconz version ? The code part that prevent useless "light" entry creation is just some month old. |
The JSON piece above is from Phoscon help/api page. |
Ok so you have a recent version, there is definitively a problem. When you have deleted the device, you have do that using phoscon ? |
{
"config": {
"battery": 0,
"group": "20000",
"on": true,
"reachable": true
},
"etag": "622453a41a2b0f100202c34f507e6ad5",
"lastannounced": "2022-06-06T05:33:31Z",
"lastseen": "2022-06-06T16:20Z",
"manufacturername": "_TZ3000_4fjiwweb",
"mode": 1,
"modelid": "TS004F",
"name": "viktor_bed_switch",
"state": {
"buttonevent": 2002,
"lastupdated": "2022-06-05T22:12:19.010"
},
"type": "ZHASwitch",
"uniqueid": "84:ba:20:ff:fe:8d:5c:1a-01-1000"
} {
"etag": "622453a41a2b0f100202c34f507e6ad5",
"hascolor": false,
"lastannounced": "2022-06-06T05:33:31Z",
"lastseen": "2022-06-06T16:20Z",
"manufacturername": "_TZ3000_4fjiwweb",
"modelid": "TS004F",
"name": "viktor_bed_dimmer",
"state": {
"alert": "none",
"on": false,
"reachable": true
},
"swversion": null,
"type": "Dimmer switch",
"uniqueid": "84:ba:20:ff:fe:8d:5c:1a-01"
} |
Ok so both entries are new and used, recent lastannounced/lastseen But we can see the "buttonevent" is now updated in the "sensor", so openHAB is able to see then too. You are sure not having 2 time a DDF for the same device ? |
|
As there has not been any response in 21 days, this issue has been automatically marked as stale. At OP: Please either close this issue or keep it active It will be closed in 7 days if no further activity occurs. |
So, will this one be supported officially in next release? |
There's no PR yet, so nope. Not even sure if it is tested yet. |
There is a problem ATM on some device, the legacy code is too fast and you have the sensor entry created by the DDF and the light one created by the legacy code. |
Don't know is this is useful... Present as light and sensor (switch)
When using the knob, the log gives results like
|
@jjansen85 If it work like that, I can make the PR waiting for the code be updated to block the "light" ressource ? |
I think you are correct. First I added without DDF. Then I added this DDF:
and added this to the
|
Arf, missed ^^.
If the DDF is finished, you just need to add it. |
I've just tested the DDF, looks like this is yet another Tuya f*ck the standards device ;) By default the device sends to the group 0x0000, this can only be changed by using the Group Cluster / Add Group command. Note: With the current deCONZ version there is wrongly a light resource added for the device and the 0xfff0 "group0" is applied, hence it did send to that group, controlling all lights. Locally I'm working on the fix so that DDF devices don't create bogus devices not in the DDF file. So this brings the todo that we need an alternative way to apply our "auto" groups via Group Cluster instead of bindings, I need to think about this a bit more.. this isn't the only device which requires it :/ As workaround we could just leave group 0x0000 as configured one and ditch the Another side note, I also joined and sniffed the smart knob to the Lidl gateway, where it shows up properly. They don't do any bindings or group configuration so it keeps sending to group 0x0000. But a test automation to control a light didn't work there either 🤔 |
Mean it can work using bind
And with don't using
Because yes, have thoses issues on others devices too, and if I have understand, it can be worse if the code don't create the useless "light " entry ? |
The binding is ignored :) so we can leave it out. The main problem is the incorrect creation of the light resource (fixed in a upcoming PR). By only joining the device without creating bindings or adding to a group, it defaults to send to group 0x0000, which is okay and the button map works. The only missing part is the configuration of a different group, so the switch can work without the gateway being online. |
Device
Screenshots
Basic
Identify
Alarms
Device Temperature
Groups
Scenes
On/Off
Level Control
Color Control
Simple Metering
Diagnostics
Other clusters that are not mentioned above
Power Configuration
The text was updated successfully, but these errors were encountered: