It would be great if Home Assistent would implement support for the Horizon TV Box which the Dutch television provider Ziggo uses. With no coding experience at all, I am not able to create such an addon myself, however, I have found this extension for openHAB which is able to control the box. Futhermore there seems to be a php script that allows Domoticz users to interface with their Horizon Box.
Would someone be able to create such an add-on for hass ?
Hi b10m, apologies for the delayed response. The first link does not appear to be working for my box, which is the SMT-G7400 XEN. Please find the XML files attached to this post, with the personal identifiers altered of course ;).
No worries, I was struggling with the insane mediabox myself (it likes to screw up existing networks ) What I found though, was that the only reason to get the āstateā (on/off) is through the first link. And this fails if you havenāt setup the āmediabibliotheekā bit (I didnāt do it, lost it too). In your setup you āthuisnetworkā again, then go all the way through the āmediabibliotheekā stuff and allow others to pull data from the device. After that (if it doesnāt kill your network), the DeviceDescription.xml is available.
Since itās such a huge mess, I need a lot of testers before I will submit this component to home-assistant (you can run it in your local directory, donāt worry). Right now, I seem to be able to turn off/on, pause/unpause and switch channels through python, so there is some progress
Could you give this code a go? ziggo_mediabox_xl.py
Add it in your home assistant directory under custom_components/media_player/ after that, add this yaml to your config:
It alive, awesome! Play/Pause is not visible in the GUI however, although it does seem to be part of the python file?
Thank you so much for this component! As mentioned by Cripplin below, a lot of people will be very happy with this addition to Home Assistant. Just discussed your component with a colleague who is a major HASS fanboy who couldnāt wait to try it out tonight!
Sorry for the ungrateful response earlier, got distracted yesterday evening as IKEA just pushed an update to enable homekit on Tradfri, requiring the tedious task of using pytradfri to uncover the homekit pin codeā¦
Getting 3 items you have been waiting for on one evening (iOS 11.1, Homekit on tradfri without HASS & homebridge as a middleman, and this component) had me all worked up!
I can confirm that it works too! Got the same case that Play/Pause is not visible in the media player in the GUI, but when I select the service of pausing or playing the mediabox it works like expected!
Something else I encountered is that sometimes the mediabox just freezes and doesnāt respond to anything, even the remote. Only a power reset resolves the freezing and than it works again. Some weeks earlier I also tinkered a bit with the python library āEinderā, but I never managed to integrate it with Home Assistant consistently. At first I got it to work but then I somehow broke it and never got it to work again. Anyhow while I was tinkering with āEinderā I encountered the same freezes with the mediabox. Eventually I figured that these freezes were caused by not closing the session correctly with the mediabox when sending actions, and when repeatedly turned on/off the mediabox would freeze because of all the open sessions with my RPi. I donāt know if thatās the case right know but I thought it would not hurt by sharing my experience with the Ziggo mediabox .
Thank you very much for this component! I think many Home Assistant users from the Netherlands will be vary happy with this integration! I would be eager to help you with developing or testing this component.
The missing Play/Pause button is probably due to the fact that we canāt determine whether the box is playing, idling or paused. I could (by default) assume it is playing, and set the state to paused when the event was called through hass, but this will mess things up as soon as you use the regular remote.
Iām planning to use this solely for turning the device on/off by other scripts and use play/pause switch channel commands with the snips component (voice control) so Iām not missing it in the GUI much.
I just started with HA and like to add the device. I tried adding it through the python in this post and directly through hassio. HA canāt seem to find anything. Logs only shows a warning saying it takes more than 10 sec to setup a media player but I believe thatās my LG TV.
Her is my configuration part:
media_player:
- platform: webostv
host: 192.168.192.29
name: TV
turn_on_action:
service: wake_on_lan.send_magic_packet
data:
mac: 3C:CD:93:D5:6E:9B
- platform: ziggo_mediabox_xl
host: 192.168.192.2
name: Horizon
Is there an obvious error maybe. I just canāt seem to figure it out.
Is not working for me.
Mediabox state is not in sync with HA. Can turn on/off the unit via HA, but unit state is powered off when it is powered on. pressing power in HA to turn off, turnes off the box. Because it is Off in HA no commands are possible.
can telnet port 5900 just fine, only DeviceDescription.xml cannot be retrieved via http. There is a description1.xml on port 29153. Perhaps there are some diffences in mediaboxes?