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

Add support for group_filter option on z2m server blocks #13

Merged
merged 1 commit into from
Aug 24, 2024

Conversation

chrivers
Copy link
Owner

Bifrost presents z2m groups as Rooms, but users might not want to present every single group in bifrost.

To support this, add "group_prefix" option to z2m server blocks, like so:

...
z2m:
  myserver:
    url: ws://10.10.0.102:8080
    # Group prefix [optional!]
    #
    # If you specify this parameter, *only* groups with this prefix
    # will be visible from this z2m server. The prefix will be removed.
    #
    # So with a group_filter of "bifrost_", the group "bifrost_kitchen"
    # will be available as "kitchen", but the group "living_room" will
    # be hidden instead.
    group_filter: bifrost_

@chrivers chrivers force-pushed the chrivers/group-filters branch from d76cb0c to 89c6089 Compare August 24, 2024 11:40
@chrivers
Copy link
Owner Author

Implements idea mentioned by @joeblack2k in #6

@chrivers chrivers merged commit 0110963 into master Aug 24, 2024
2 checks passed
@chrivers chrivers deleted the chrivers/group-filters branch August 24, 2024 11:44
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

Successfully merging this pull request may close these issues.

None yet

1 participant