Skip to content
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

Issues binding groups to button #156

Open
geelenbert opened this issue Nov 7, 2022 · 6 comments
Open

Issues binding groups to button #156

geelenbert opened this issue Nov 7, 2022 · 6 comments

Comments

@geelenbert
Copy link

I'm having troubles with binding a group to a switch.

My hardware is the SonOff ZBMini device.

Loading the provided example works as expected:
image

When using the Switch input (P08/Input2) the relay latches.
Using Z2MQTT i can bind a group to endpint 2 on/off. When the relay is switched onor off, the light group is also turned on and off.

What i want to achieve is:
Directly bind groups to a button and use the toggle command to toggle the binded group, without the local relay.
The relay should be controlled externaly trough zigbee.
image

Using this configuration, i'm unable to bind a group to "input 3".

is there something wrong with my configuration, of should this work as discribed ?

@geelenbert geelenbert changed the title Troubles binding groups Issues binding groups to button Nov 7, 2022
@geelenbert
Copy link
Author

I don't want to be rude, but is there anyone who can help me to understand if it is possible what i would like to achieve ?

@ptvoinfo
Copy link
Owner

ptvoinfo commented Dec 7, 2022

@geelenbert
I'm sorry about the delay with my answer. Binding to a group works as expected. I've tested it with Zigbee2MQTT.

@geelenbert
Copy link
Author

@ptvoinfo no problem, thanks for the reply.

But can you maybee explain the expected behaviour of the Bind command function?
Should this work on any input independend of the output?

From my testing it appears that binding only works on outputs ?

Would you be able to confirm the expected behavior of the following configuration:
image

Input 1 would be used for configuring the device (factory reset etc...)

Output 2 would be an independent controllable output trough zigbee, not effected by any local buttons.

Input 4 would be able to bind to a group (using z2mqtt).
When clicking the button, a toggle command would be send to the binded group.
Long push, Double and tripple clicking would not send a toggle command, but would send the event to the multi_input cluster.

Additional, this is a configuration for a Sonoff ZBMINI

@ptvoinfo
Copy link
Owner

ptvoinfo commented Dec 7, 2022

There are two parties in binding. One party sends a command (Input) and another party receives a command (Output).

  1. Add some outputs to a group.
  2. Bind an input to this group.

In this case, the input will send a command to a coordinator, that will distribute this command to all receivers (group members).

A device that sends commands may not belong to a group.

But in your case, you may send a command from Input 4, and at the same time add Output 2 to a group that receives commands from Input 2.

I hope, I've described it clearly :).

@geelenbert
Copy link
Author

@ptvoinfo Using the configuration above results in these clusters:
Screenshot 2022-12-07 at 21 21 15

Screenshot 2022-12-07 at 21 23 01

Cluster 4 does not give the option to bind to anything.

Is this a configuration error on my side, or is there a bug somewhere ?

@povlhp
Copy link

povlhp commented Jan 12, 2024

We need genOnOff in an output cluster. How is this done ? This is needed to bind switch to light to run independent of z2m.

ptvoinfo pushed a commit that referenced this issue Sep 30, 2024
[-][All chips] Reporting of ADC value (raw) was fixed.
[-][All chips] Manual reading of the UART sensor analog value did not work (#309).
[-][All chips] The firmware no longer returns an error when the higher-level system tries to set the periodic report interval while this function is disabled in the configuration. It simply ignores it quietly.
[+][All chips] Added binding capability to a group when the PTVO device is the command source (#156).
[*][CC2530] HC-SR04 sensor is now unavailable in the router mode.
[-][Configurator] The "Disable periodic On/Off reports" option was not saved  (#310).
[-][Configurator] Configuration for outputs 8-16 was not loaded correctly from the file.
[*][Configurator] Other minor improvements.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants