Add remote control configuration options to HomeKit integration#34570
Closed
joogps wants to merge 3 commits intohome-assistant:devfrom
joogps:homekit
Closed
Add remote control configuration options to HomeKit integration#34570joogps wants to merge 3 commits intohome-assistant:devfrom joogps:homekit
joogps wants to merge 3 commits intohome-assistant:devfrom
joogps:homekit
Conversation
Member
|
@joogps Ideally the remote integration provides a key map for these instead of having to make the user configure it. |
Contributor
Author
|
Pull request closed because of #34560 changes to bridge configuration |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed change
This pull request expands the capabilities of HomeKit media players (more specifically, TVs), by adding more configuration options to the iOS Control Center widget, which currently only supports play/pause and volume controls. (I know the tests and the docs weren't updated yet. I'll try to work on it tomorrow.)
Example of the iOS Control Center remote. Only the play/pause button and volume control (using the physical volume buttons) work.
Type of change
Example entry for
configuration.yaml:In this case, the user specifies a remote entity with
remote_idand replaces the defaultinfocommand, triggered by theibutton, withhome. When theinfobutton is pressed, then thesend_commandservice will be called withhomeas the value ofcommand. The other key values (they're all defined inconst.py, if you're curious), will remain the default ones.Here, supposing that the TV was integrated with the webOS integration, instead of defining a remote entity (which is currently not supported yet by
webostv), the user defines a script, a service, in this casewebostv.button, to be called when theupkey is pressed.All keys, except for the volume controls, can be remapped. It is possible to define services even if a remote is also specified.
This simpler version, for in case the keys don't need to be remapped, is also accepted:
Additional information
Checklist
black --fast homeassistant tests)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest.requirements_all.txt.Updated by running
python3 -m script.gen_requirements_all..coveragerc.The integration reached or maintains the following Integration Quality Scale: