-
-
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
Ubisys D1 - Input raw configuration doesn't get accepted #11536
Comments
@felixstorm Would you be able to detect where I'm going wrong? |
@wb441 Sorry for not answering any earlier - I am quite busy at the moment. I had already taken a quick look at your issue when you opened it, but unfortunately there is nothing that catches my eyes with it. The fact that it mentions "Philips" is completely fine AFAIR - the same numerical cluster id gets used by multiple vendors (that`s ok with the ZigBee standard) and when receiving the frame zigbee-herdsman does not yet know about the device details, so it takes the first cluster name that matches the numerical id. This is also ok for us in this situation as the frame contents are still dumped correctly and we only want to have the data in the logs to be able to manually verify that everything worked out fine. But to get back to your problem: Generally configuring ubisys inputs should work or at least did work for me a few weeks ago, but unfortunately I do not really have a setup at hand to reproduce your exact issue. Things that come to my mind that you could try:
Felix |
Embarassingly, input**_a**ctions was indeed the problem.
Once again z2m works brilliantly and I was the issue ;-) |
@wb441 No problem - I'm glad that it works now! |
What happened?
Goal = the two inputs control the dimmable load of the D1. Its documentation shows that it is very similar to Ubisys C4.
There are two ways, with pre-defined templates and with raw configuration.
Here is a link to a case where someone sent a raw configuration to C4 see this link
Now for D1:
This is a raw configuration which is valid for D1, which was used in a Deconz implementation. It can be found at this thread.
I translated this configuration (perhaps here already I made a mistake?) to zigbee2mqtt/D1/set
`
{
"configure_device_setup": {
"input_configurations": [0, 0],
"inputActions": [
[ 0, 13, 2, 8, 0, 4, 254, 1, 0],
[ 0, 3, 2, 8, 0, 4, 54, 1, 0],
[ 1, 13, 2, 8, 0, 4, 54, 1, 0],
[ 1, 3, 2, 8, 0, 4, 0, 1, 0]
}
`
When reading back the configuration with zigbee2mqtt/D1/get/configure_device_setup, the configuration is still the original.
Also, I get this information which doesn't seem to be blocking but is weird nonetheless.
Warning ubisys: Device setup read for 'D1': {"0":[0,0]} Debug Received Zigbee message from 'D1', type 'readResponse', cluster 'manuSpecificPhilips', data '
In conclusion, the raw configuration is not accepted nor rejected.
What did you expect to happen?
I assume (dangerous, I know :-) ) that either
The configuration is tested working, but the example I based it on is a hex stream all after each other. Based on the example on the C4, I need to convert the values to decimals, but perhaps I'm doing it wrong
This is the base: Link
It is constructed as follows
`
This is what I converted it to:
`zigbee2mqtt/D1/set
{
"configure_device_setup": {
"input_configurations": [0, 0],
"inputActions": [
[ 0, 13, 2, 8, 0, 4, 254, 1, 0],
[ 0, 3, 2, 8, 0, 4, 54, 1, 0],
[ 1, 13, 2, 8, 0, 4, 54, 1, 0],
[ 1, 3, 2, 8, 0, 4, 0, 1, 0]
}
`
Thank you very much for any help.
Perhaps @felixstorm you are the genius which can shed some light here?
How to reproduce it (minimal and precise)
No response
Zigbee2MQTT version
1.22.1
Adapter firmware version
20190608
Adapter
Electrolama Zig-a-zig-ah
Debug log
Debug Received MQTT message on 'zigbee2mqtt/D1/set' with data '{ "configure_device_setup": { "input_configurations": [0, 0], "inputActions": [ [ 0, 13, 2, 8, 0, 4, 254, 1, 0], [ 0, 3, 2, 8, 0, 4, 54, 1, 0], [ 1, 13, 2, 8, 0, 4, 54, 1, 0], [ 1, 3, 2, 8, 0, 4, 0, 1, 0] ] } }'
Debug Publishing 'set' 'configure_device_setup' to 'D1' Submitted
Debug Received Zigbee message from 'D1', type 'readResponse', cluster 'manuSpecificPhilips', data '{"0":[0,0]}' from endpoint 232 with groupID 0 Weird that it's mentioning Philips
Debug No converter available for 'D1' with cluster 'manuSpecificPhilips' and type 'readResponse' and data '{"0":[0,0]}'
Warning ubisys: Device setup read for 'D1': {"0":[0,0]}
Debug Received Zigbee message from 'D1', type 'readResponse', cluster 'manuSpecificPhilips', data '{"1":[{"data":[0,13,2,6,0,1],"type":"Buffer"},{"data":[0,3,2,6,0,0],"type":"Buffer"},{"data":[1,13,2,6,0,1],"type":"Buffer"},{"data":[1,3,2,6,0,0],"type":"Buffer"}]}' from endpoint 232 with groupID 0
Debug No converter available for 'D1' with cluster 'manuSpecificPhilips' and type 'readResponse' and data '{"1":[{"data":[0,13,2,6,0,1],"type":"Buffer"},{"data":[0,3,2,6,0,0],"type":"Buffer"},{"data":[1,13,2,6,0,1],"type":"Buffer"},{"data":[1,3,2,6,0,0],"type":"Buffer"}]}' No converter, wonder why
Warning ubisys: Device setup read for 'D1': {"1":[{"type":"Buffer","data":[0,13,2,6,0,1]},{"type":"Buffer","data":[0,3,2,6,0,0]},{"type":"Buffer","data":[1,13,2,6,0,1]},{"type":"Buffer","data":[1,3,2,6,0,0]}]} Change wasn't successful
The text was updated successfully, but these errors were encountered: