I would appreciate integration of vu+ linux media player (see http://www.vuplus.de/)
Thanks!
This can be done with the Webinterface API for Enigma2 receivers. This will also work for all Enigma2 based receivers such as Dreambox, Golden Interstar, VU+,β¦
You mean like this?
Hi guys,
Is anyone working or already been able to implement enigma2.
like this yes!
Feel free to test.
Add the file to: /home/homeassistant/.homeassistant/custom_components/media_player/
enigma.py
Add this to your config file:
media_player:
thanks, i have installed it, but there is an error.
[Errorlog]
17-01-23 17:28:18 custom_components.media_player.enigma: PO ZADANI HESLA:
17-01-23 17:28:18 custom_components.media_player.enigma: HODNOTA PWSTATE: head: invalid option β β1β
17-01-23 17:28:19 custom_components.media_player.enigma: PO ZADANI PWSTATE: BusyBox v1.23.2 (2016-03-25 16:32:47 CET) multi-call binary.
17-01-23 17:28:19 custom_components.media_player.enigma: HODNOTA NAME: head: invalid option β β1β
17-01-23 17:28:19 custom_components.media_player.enigma: PO ZADANI MODEL: BusyBox v1.23.2 (2016-03-25 16:32:47 CET) multi-call binary.
17-01-23 17:28:19 custom_components.media_player.enigma: HODNOTA SOURCE: head: invalid option β β1β
17-01-23 17:28:20 custom_components.media_player.enigma: PO ZADANI SOURCE: BusyBox v1.23.2 (2016-03-25 16:32:47 CET) multi-call binary.
17-01-23 17:28:20 custom_components.media_player.enigma: HODNOTA REFERENCE: head: invalid option β β1β
17-01-23 17:28:20 custom_components.media_player.enigma: PO ZADANI REFERENCE: BusyBox v1.23.2 (2016-03-25 16:32:47 CET) multi-call binary.
17-01-23 17:28:20 custom_components.media_player.enigma: HODNOTA EVENT TITLE: head: invalid option β β1β
17-01-23 17:28:21 custom_components.media_player.enigma: PO ZADANI EVENTTITLE: BusyBox v1.23.2 (2016-03-25 16:32:47 CET) multi-call binary.
17-01-23 17:28:21 homeassistant.components.media_player: Error while setting up platform enigma
File β/home/pi/.homeassistant/custom_components/media_player/enigma.pyβ, line 74, in setup_platform
if enigma.update():
File β/home/pi/.homeassistant/custom_components/media_player/enigma.pyβ, line 230, in update
and why did you use telnet?
webrequests can be done locally or?
wget -q -O - http://< ip_from_satbox >/web/powerstate | awk -F β[<>]β β/e2instandby/{print $3}β | head -1β
greets,
muggle
Whatβs model of Enigma2 SAT do you have?
As I can see, it is using BusyBox v1.23.2 and maybe thats the problem.
Try to login with telnet and use this command:
wget -q -O - http://127.0.0.1/web/powerstate | awk -F β[<>]β β/e2instandby/{print $3}β
VU+ SoloΒ²
root@vusolo2:~# wget -q -O - http://127.0.0.1/web/powerstate | awk -F β[<>]β β/e2instandby/β | head
true
root@vusolo2:~# wget -q -O - http://127.0.0.1/web/powerstate | awk -F β[<>]β β/e2instandby/{print $3}β
empty output
P.S. Iβm not python guru. If you can help with local web-request, feel free to modify the file.
try this: wget -q -O - http://127.0.0.1/web/powerstate | awk -F β[<>]β β/e2instandby/β | tail
root@vusolo2:~# wget -q -O - http://127.0.0.1/web/powerstate | awk -F β[<>]β β/e2instandby/β | tail
< e2instandby >
true < /e2instandby >
iβm also not a python guru
what have to be the value of this request? so i can test it myself
This: wget -q -O - http://127.0.0.1/web/powerstate
will give the full XML of powerstate
You need to parse the: true (if enigma is in standby, or false if not)
All the other command vice-versa.
Post please the full XML
<?xml version="1.0" encoding="UTF-8"?>< e2powerstate>
< e2instandby>
true < /e2instandby>
< /e2powerstate>
wget -q -O - http://127.0.0.1/web/powerstate | awk -F β[<>]β β/e2instandby/{print $1}β >> Result:
empty line
true
with:
wget -q -O - http://127.0.0.1/web/powerstate | awk -F β[<>]β β/e2instandby/{print $1}β | tail -n 1
true
so i thing, thats the correct line
YES, or this:
wget -q -O - http://127.0.0.1/web/powerstate | awk -F β[<>]β β//e2instandby/{print $1}β
i will change all the lines and give it a new try
Check all the full XML and correct awk. Good luck
now its starting and the media_player card is shown.
_CMD_PWSTATE = βwget -q -O - http://127.0.0.1/web/powerstate | awk -F β[<>]β β//e2instandby/{print $1}ββ
_CMD_Q_MODEL = βwget -q -O - http://127.0.0.1/web/about | awk -F β[<>]β β//e2model/{print $3}ββ
_CMD_Q_SOURCE = βwget -q -O - http://127.0.0.1/web/subservices | awk -F β[<>]β β//e2servicename/{print $3}ββ
_CMD_Q_SERVICEREFERENCE = βwget -q -O - http://127.0.0.1/web/subservices | awk -F β[<>]β β//e2servicereference/{print $3}ββ
_CMD_Q_EVENTTITLE_BEGIN = βwget -q -O - http://127.0.0.1/web/epgservicenow?sRef=β
_CMD_Q_EVENTTITLE_END = " | awk -F β[<>]β β//e2eventtitle/{print $3}β"
_CMD_Q_VOLUME = βwget -q -O - http://127.0.0.1/web/vol | awk -F β[<>]β β//e2current/{print $3}ββ
_CMD_Q_MUTE = βwget -q -O - http://127.0.0.1/web/vol | awk -F β[<>]β β//e2ismuted/{print $3}ββ
_CMD_C_VOLUME = βwget -q -O - http://127.0.0.1/web/vol?set=setβ
_CMD_C_MUTE = βwget -q -O - http://127.0.0.1/web/vol?set=muteβ
_CMD_C_POWEROFF = βwget -q -O - http://127.0.0.1/web/powerstate?newstate=5β
_CMD_C_POWERON = βwget -q -O - http://127.0.0.1/web/powerstate?newstate=4β
thank you very much for sharing