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

Unify behaviour regarding virtual remotes and add query parameter #11

Merged
merged 4 commits into from
Sep 22, 2023

Conversation

ultrah
Copy link
Collaborator

@ultrah ultrah commented Feb 10, 2018

Previously devicelist.cgi and statelist.cgi handled virtual remotes differently. devicelist.cgi ommited these channels based on the type of the device, statelist.cgi used the name of the device to achieve the same, which yielded inconsitent behaviour. Now the device type is used in both scripts. This breaks the possiblity to receive the workaround to receive the virtual remote in statelist.cgi by renaming the device.

Therefore this also adds a query parameter show_remote to both scripts to reliably receive the virtual remote channels.

Previously devicelist.cgi and statelist.cgi handled virtual remotes differently. devicelist.cgi ommited these channels based on the type of the device, statelist.cgi used the name of the device to achieve the same, which yielded inconsitent behaviour. Now the device type is used in both scripts. This breaks the possiblity to receive the workaround to receive the virtual remote in statelist.cgi by renaming the device.

Therefore this also adds a query parameter show_remote to both scripts to reliably receive the virtual remote channels.
@ultrah ultrah requested a review from Monty1979 February 10, 2018 11:42
@ultrah
Copy link
Collaborator Author

ultrah commented Feb 10, 2018

As mentioned in the commit, this is a breaking change, but I would argue that it's the cleanest solution going forward. Existing apps can adapt to the change based on the version number

@Wookbert
Copy link

@jens-maus Mind to merge this? Would solve our „problems“ discussed here.

@jens-maus jens-maus changed the base branch from master to v2 September 22, 2023 12:25
@jens-maus jens-maus requested review from jens-maus and removed request for Monty1979 September 22, 2023 12:26
ultrah and others added 3 commits September 22, 2023 14:53
Previously devicelist.cgi and statelist.cgi handled virtual remotes differently. devicelist.cgi ommited these channels based on the type of the device, statelist.cgi used the name of the device to achieve the same, which yielded inconsitent behaviour. Now the device type is used in both scripts. This breaks the possiblity to receive the workaround to receive the virtual remote in statelist.cgi by renaming the device.

Therefore this also adds a query parameter show_remote to both scripts to reliably receive the virtual remote channels.
@jens-maus jens-maus merged commit 3ba2736 into homematic-community:v2 Sep 22, 2023
@jens-maus jens-maus removed their request for review October 14, 2023 14:32
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.

3 participants