Home Assistant LG Horizon integration for Ziggo Next Mini

Using the Home Assistant LG Horizon integration in Remote 3 delivers two screens.
The first screen is media widget of what is currently playing.
The second screen, which pops up when you press four squares at the bottom of the media widget, is called Apps and a scrollable list of the TV Channels.

When I use this integration in an activity and build a User Interface I can select the Media Widget from Home Assistant., but then I get only the first screen of the widget without the four squares.

How do I get the second screen with all the TV Channels?

Hello Aruit. Not sure if this is a usefull answer, but I am using the same integration “LGHorizon via Hass” on the remote3 for the Ziggo Next Mediabox. You can add the mediaplayer to the remote as a media widget, as you did. There are a few functions that come with the “LG Horizon via Hass” mediaplayer that you then can add to the remote as a button function. Very usefull functions like “switch on”, “switch off” (to replace the standard power toggle of the Mediabox) and a button to select the input source to program all the TV channels on the remote. Hope this helps.

Thank you for your reaction JonO.

Yes, I have seen that these few functions are selectable in the Activities & macros tab, but you cannot select these in the entities tab, because this entity has no other settings.

That is why I made an activity Ziggo, because in this activity I can select these few functions and map them on buttons or use them in an user interface.

My question had to do with the following:
In the Entity you get two screens. The first screen is the mediaplayer and the second screen is a scrollable list of buttons of all TV Channels. In the Activity you can select only the mediaplayer, but not the screen with the scrollable list of buttons of all TV Channels.
So how can I get this second screen of the Entity also in the Activity.

Another question is: how can I add the other buttons of the Ziggo remote to this Activity?
Buttons: MediaTopMenu, Guide, TV, ArrowUp, ArrowLeft, Enter, ArrowRight, ArrowDown, Escape, ContextMenu, MediaRecord, ChannelUp, ChannelDown, MediaRewind, MediaPlayPause, MediaForward, Numbers.

Hello Aruit,

Sorry, I do not have an answer on your question about the two screens.

The other buttons like “Guide” you can add to the remote using a script in Hass, i.e.

sequence:
  - action: lghorizon.remote_key_press
    metadata: {}
    data:
      entity_id: media_player.mediabox
      remote_key: Guide
alias: Guide
description: ""

I did the same to control Music Assistant via the Remote3.

The script entity can be easily send to the remote using the HACS integration from Jack Powell.

Not sure if it is the best way to do it, but for me this works fine.

1 Like

Hello JonO,

Again many thanks for your hints!

Can I put all button in one script file or do I need to make a seperate script file for each button?

Greetings,
Anton de Ruiter

I used one script per button as the name of the script becomes the name of the entity in the UC HomeAssistant integration. I started the names of the scripts with R3-, i.e. “R3-Guide”.

Hello JonO,

I have made all the scripts voor all the buttons.

I have in Home Assistant the integrations HACS, LG Horizon & Unfolded Circle.

But how do I get the scripts selectable in the Web Configurator of the Remote 3?

Hello Aruit,

Just click the cogwheel in the Unfolded Circle integration in Hass and choose “configure entities to share with Remote 3”. Select your scripts and press “submit”. Make sure the tickbox is ticked. After that you will find your script entities in your Hass integration on the Remote.

1 Like

Hello JonO,

Thank you very much, you have helped me wonderfull!

With all your help I have managed to import all the buttons of my Ziggo Next Mini remote with scripts in Home Assistant and with the Unfolded Circle integration in the Remote 3.

Thanks again!

Kind regards,
Anton

Thanks to Uc, Hass, Jack and Rudolf. They made this all possible. Enjoy!

1 Like

Another related question.

I am making a user interface page for the TV Channels.
For the Channels with a single number (0-9) it is simple the command is Press R3-Ziggo-0 till R3-Ziggo-9. But for the Channels with multiple numbers (10-999) a command should be two our three number te press.
How can I implement this?

Does it have the command “command sequence”? If yes this might be one way as a sequence 8,9 for channel 89. Perhaps you have to play with delay. If everythings fails a macro would be the last option.

Ralf

1 Like

Thank you Ralf for this hint.

I could not find the command sequence, but I can create several macro’s, with a sequence of pressing two or three numbers. That is working, only that are a lot of macros for every number between 10 and 999.

I created around 75 for Android TV because there is also no sequence.

Ralf

The mediaplayer from the LGHorizon integration in Hass is available in UC with a command called “input source”. If you select this command in a button command in an activity it shows a dropdown box with all available TV channels which you can then select. In an activity it also shows other commands that come with the mediaplayer, also digits i.e. , when assigning a command to a button.

1 Like

I have tried the command "input source” and that works.
So, I do not have to make all these macros!