- Notifications
You must be signed in to change notification settings - Fork0
Cannot activate all sources#12
-
Hello community I have successfully written a driver that handles most of the functions. Volume, mute, and some sources work well. eg I can select Line IN and NetRadio without any problem. Did it so: But now I would like to be able to select the HDMI A B C and cannot do this: Thank you for all helpful inputs. |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 1 comment 2 replies
-
Hi, So video "sources" are not stored as sources like audio sources. Instead look at To see an example of this you can look at the Home Assistant code here:https://github.com/bang-olufsen/bangolufsen-hacs/blob/53e63181ca8ebd1743fc72609dc22855ce4135e7/custom_components/bangolufsen/media_player.py#L448 Kind regards. |
BetaWas this translation helpful?Give feedback.
All reactions
-
Sorry, only now get to continue. That means I send POST /api/v1/remote/id/trigger HTTP/1.1 right? What does the "id" look like for HDMI1 on a Theater? If you can give an example that would help me a lot. Thanks! Marc |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Sorry for the late reply, here is an example of switching HDMI input. from GET /api/v1/remote you get a key, value map of RemoteMenuItem values. An example of this is: {"0cce0072-55fd-4abb-b5a2-aa4cad606f53": {"actionList": [ {"contentId":"tv://hdmi_3","type":"triggerContent" } ],"available":true,"content": {"categories": ["hdmi" ],"contentUri":"tv://hdmi_3","label":"HDMI C","source": {"value":"tv" } },"disabled":false,"dynamicList":"none","fixed":false,"id":"0cce0072-55fd-4abb-b5a2-aa4cad606f53","label":"HDMI C","parentMenuItemId":"1a873cf6-0881-43f4-8ec7-4ff9cb9b7cf2" },} To trigger this item (HDMI C / HDMI 3) I would use the curl --request POST \ --url http://0.0.0.0/api/v1/remote/0cce0072-55fd-4abb-b5a2-aa4cad606f53/trigger \ --header'Accept: application/json' \ --header'Content-Type: application/json' Don't hesitate for any clarifications or other questions. Kind regards. |
BetaWas this translation helpful?Give feedback.