Enigma2 receivers integration

Check if you can open the link (http://box.ip/web/getservices) from your computer.
Change box.ip with the respective internal ip of the box.

Please use http and not https.
If it works, then it should work with the custom_component.
Try also changing the password to “dreambox” and use root/dreambox to connect and let me know if it works.
Or, for instance, without password

@cinzas Thanks for making this. I installed this, but i have a few “problems”.

I don’t have the 2 buttons to switch channels. Not realy important, but the play/pause button doesn’t function also.
image

The other “problem” i have. The plugin can load my picons. But my reciever has a bit of problems with that. I personly think its the problem of multi things are asking for the picons. Because the picon will be used for the epg and the lcd screen and your plugin. And when i set the settings to picon, i do get the picon by your plugin, but on my lcd screen its keeping the last picon.

So my question is, can i change the directory of the picon in your plugin some how. So i could place the picons for you plugin in a special directory on the HDD of the reciever, so i can also see the picon on my display.

HA: 2021.1.4
Reciever: VU+ Duo2
Openwebif: 1.3.9
Reciever software: Openpli 7.3

Hi @Alfagek

To change the channel/volume you need to open the card - click on the 3 dots.
image

Unfortunately, the way the integration works, everything is loaded from the tv box, and it is not relying in any external/internal storage for retrieving the picons/Screenshots from the box.

I could understand you problem if you had a legacy or a very cheap box, but I can see you have a VU+ Duo2, which is a very reliable one :slight_smile:
I am using a Gigablue and a old Dreambox with more than 5k channels, and I do not have any lag issues.

The picon images rely on a folder in your box, and the EPG and the box itself read the picon from that folder.
My component also get’s it via http, from the webinterface component. It should not cause any issues at all.

Where are you storing the picons in your box?
Are you storing them with the channel reference as the name ? (e.g.: 1_0_1_326_2F_36_FFFF0000_0_0_0.png)

Have you tried using the screenshot to see if it works ?

PS: Technically, what you are asking could be implemented, and you will have to keep a picon directory somewhere else where HA could access, but that requires a lots of changes on the plugin :frowning:

Thanks for the reply @cinzas.

The volume and channel I know. But on your screen shots I see a left and right button and the power button. I only have a power button there and the play/pause button. And that play/pause button don’t work.

About the picon, it works. I did also have them called like the “service name”. And they are installed on the hdd. In the /picon/ and also /hdd/picon/.

But if I use the picon setup in your plugin, I get problems with showing the picon on my lcd screen off my duo2. It’s only on the lcd screen what give the problem. It’s feed by linux4lcd. If I set picon in your plugin to screenshot the problem is over. So that’s why I think there is a problem with the ask for the picon because it’s used for webif/lcd/your plugin.

That’s why I did asked if it was possible to change the directory in your plugin. So I read your commit, it’s possible, but a lot off changes. So no problem :wink:.

If I don’t ask, it’s never possible. Thanks

Hello everyone, the component works correctly, I wanted to know if it is possible to change the channel, increase or decrease the volume, etc. through the Google Home Mini.

Hi

I never added to the documentation, but yes.
For the volume, as it is seen as a media player. “Hey google set Dreambox volume to 10%” and it will change the volume.
Obviously, replace Dreambox to the name you give to your box.

To change the channels, it is not directly possible. But you can do it via IFTT as explained in this post

I did it, and it works if I say “Hey google change to channel 3”, and it will change.

Hello,
I am looking for an integration for my original Dreambox DM900 with DreamOS installed. I am not able to install OpenWebIf (no deb-package, just ipkg / not compatible).

Isn’t there a HA-solution to use the DM-firmware? I don’t want to use other firmwares like OpenATV, OpenPLI and so in.

Any ideas?

Thank you

Hi,

I have problem with the picon and and the screenshot too.
Have Zgemma H7S with openatv 6.4
If in openwebif enabling user/password authentication for streaming, trying download the picon/screenshot but nothing. If disable it is working good.
Is it possible to show picon with user/password authentication enabled for streaming?

after the update of ha to version 2021.2.3 the integration with enigma2 decoders no longer works. The decoders are always off and the history is no longer available. I will try to remove and reconfigure them

Hi @Herr.Vorragend

Unfortunately, no, this plugin relies entirely on OpenWebif :frowning:
In my opinion, I definitely recommend an upgrade from DreamOS to OpenATV :slight_smile:
I’ve tried many images in the past, and OpenATV (and PLI) are the ones I use now.
And all those bring OpenWebif

1 Like

Hi @spider7611

I’m running openatv 6.4 in my main receiver.
With below config:

devices:
  - host: 192.168.1.20
    port: 80
    name: Gigablue
    picon: picon
    timeout: 20
    username: root
    password: !secret enigma_password

And streaming enabled with authentication (last option below- Sim = Yes)
Screenshot from 2021-02-17 16-32-48

I have picons/screenhot working.
Screenshot from 2021-02-17 16-34-21

Can you share the logs (if a error is thrown) from your home-assistant.log ?

Hi @cannos88

Please restart HA and let it runs all the updates.
Restart afterwards (having your enigma powered on) and check it.

I run that version and I do not have any problems

Hi,

Here my 2 config tryed both of them with same result (no picon):

media_player:
  - platform: enigma2
    host: 192.168.1.104
    port: 33444
    use_channel_icon: true
    username: !secret zgem_user
    password: !secret zgem_pass
    name: ZgemmaH7S
enigma: 
  devices:
    - host: 192.168.1.104
      port: 33444
      name: ZgemmaH7S
      timeout: 20
      username: !secret zgem_user
      password: !secret zgem_pass
      picon: picon

Get this error in the log but I think thats why because after 23:00 go to deep sleep the box.

Logger: openwebif.api
Source: /usr/local/lib/python3.8/site-packages/openwebif/api.py:634
First occurred: 6:58:19 (872 occurrences)
Last logged: 8:10:54

There was a connection error calling http://192.168.1.104:33444/api/statusinfo Please check the network connection to the Enigma2 box is ok and enable debug logging in Enigma2 if required. Error: HTTPConnectionPool(host='192.168.1.104', port=33444): Max retries exceeded with url: /api/statusinfo (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc56c03f6d0>: Failed to establish a new connection: [Errno 113] Host is unreachable'))
There was a connection error calling http://192.168.1.105:80/api/statusinfo Please check the network connection to the Enigma2 box is ok and enable debug logging in Enigma2 if required. Error: HTTPConnectionPool(host='192.168.1.105', port=80): Max retries exceeded with url: /api/statusinfo (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc56bf0cc70>: Failed to establish a new connection: [Errno 113] Host is unreachable'))
There was a connection error calling http://192.168.1.104:33444/api/statusinfo Please check the network connection to the Enigma2 box is ok and enable debug logging in Enigma2 if required. Error: HTTPConnectionPool(host='192.168.1.104', port=33444): Max retries exceeded with url: /api/statusinfo (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc527f89a90>: Failed to establish a new connection: [Errno 113] Host is unreachable'))
There was a connection error calling http://192.168.1.105:80/api/statusinfo Please check the network connection to the Enigma2 box is ok and enable debug logging in Enigma2 if required. Error: HTTPConnectionPool(host='192.168.1.105', port=80): Max retries exceeded with url: /api/statusinfo (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc540c708e0>: Failed to establish a new connection: [Errno 113] Host is unreachable'))
There was a connection error calling http://192.168.1.104:33444/api/statusinfo Please check the network connection to the Enigma2 box is ok and enable debug logging in Enigma2 if required. Error: HTTPConnectionPool(host='192.168.1.104', port=33444): Max retries exceeded with url: /api/statusinfo (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc540c709a0>: Failed to establish a new connection: [Errno 113] Host is unreachable'))

I have 2 box, the second one only get the strem from the first one and there the picon working good. There the port is 80 and http authentication disable.

- platform: enigma2
    host: 192.168.1.105
    port: 80
    use_channel_icon: true
    username: !secret zgem_user
    password: !secret zgem_pass
    name: ZgemmaH2H

EDIT: If I disable “HTTP authentication” then it is working good, but I need this http authentication if I want to stream from outside lan. So no solution for this?

EDIT2: Today look in the log and see this warning. This error came after enabled “HTTP authentication”:

Logger: homeassistant.components.media_player
Source: components/media_player/__init__.py:907
Integration: Médialejátszó (documentation, issues)
First occurred: 2021. február 18. 19:04:54 (4 occurrences)
Last logged: 2021. február 18. 20:46:04

Error retrieving proxied image from http://192.168.1.104:33444/picon/tv2hd.png
Error retrieving proxied image from http://192.168.1.104:33444/picon/dunahd.png
Error retrieving proxied image from http://192.168.1.104:33444/picon/historyhd.png
Error retrieving proxied image from http://192.168.1.104:33444/picon/natgeohd.png

EDIT3: Now turn on the box and see 2 channels picons what I tried yesterdey when the “HTTP authentication” was disabled. But the others icons not working. If change another channel get this error in the log:
* Error retrieving proxied image from http://192.168.1.104:33444/picon/animalplanethd.png
If I use this: http://192.168.1.104:33444/picon/animalplanethd.png in the google chrome after log in see the picon. Don’t know where is the problem.
EDIT4: After HA restart that 2 picon gone too so they was in the chache.

Hi @spider7611

Sorry for the late reply.
I think you are confusing two components here.
My component is a custom component with some more features than the standard one.


media_player:
  - platform: enigma2
    host: 192.168.1.104
    port: 33444
    use_channel_icon: true
    username: !secret zgem_user
    password: !secret zgem_pass
    name: ZgemmaH7S

In this configuration you are using the standard platform (enigma2) from home assistant.
Just use mine so I can understand what is happening, like this:

enigma: 
  devices:
    - host: 192.168.1.104
      port: 33444
      name: ZgemmaH7S
      timeout: 20
      username: !secret zgem_user
      password: !secret zgem_pass
      picon: picon

Add both enigma as I described and then share the logs to see if there is any error message.
You can also enable debug and filter it.

The error you show on EDIT2 is from the standard component.
To enable logs

logger:
  default: critical
  logs:
    custom_components.enigma: debug

Thanks

Ok, no problem. Tried it and with this setup no icon at all. With the standard platform on the second box have icon, but with yours no icon.

enigma: 
  devices:
    - host: 192.168.1.104
      port: 33444
      name: ZgemmaH7S
      timeout: 20
      username: !secret zgem_user
      password: !secret zgem_pass
      picon: picon
    - host: 192.168.1.105
      port: 80
      name: ZgemmaH2H
      timeout: 20
      username: !secret zgem_user
      password: !secret zgem_pass
      picon: picon

The log show this:

2021-02-25 13:24:05 DEBUG (MainThread) [custom_components.enigma] Enigma: [update] - Powerstate for host 192.168.1.104 = 
false	
2021-02-25 13:24:05 DEBUG (MainThread) [custom_components.enigma] Enigma: [request_call] - Call request http://192.168.1.104:33444/web/subservices 
2021-02-25 13:24:05 DEBUG (MainThread) [custom_components.enigma] Enigma: [update] - Powerstate for host 192.168.1.105 = 
false	
2021-02-25 13:24:05 DEBUG (MainThread) [custom_components.enigma] Enigma: [request_call] - Call request http://192.168.1.105:80/web/subservices 
2021-02-25 13:24:05 DEBUG (MainThread) [custom_components.enigma] Enigma: [request_call] - Call request http://192.168.1.104:33444/web/epgservicenow?sRef=1:0:19:6A6:11:601:FFFF0000:0:0:0: 
2021-02-25 13:24:05 DEBUG (MainThread) [custom_components.enigma] Enigma: [request_call] - Call request http://192.168.1.105:80/web/epgservicenow?sRef=1:0:19:6A6:11:601:FFFF0000:0:0:0: 
2021-02-25 13:24:05 DEBUG (MainThread) [custom_components.enigma] Enigma: [update] - Eventtitle for host 192.168.1.104 = A világ egy terített asztal
2021-02-25 13:24:05 DEBUG (MainThread) [custom_components.enigma] Enigma: [request_call] - Call request http://192.168.1.104:33444/web/vol 
2021-02-25 13:24:05 DEBUG (MainThread) [custom_components.enigma] Enigma: [update] - Volume for host 192.168.1.104 = 100
2021-02-25 13:24:05 DEBUG (MainThread) [custom_components.enigma] Enigma: [update] - Is host 192.168.1.104 muted = False
2021-02-25 13:24:05 DEBUG (MainThread) [custom_components.enigma] Enigma: [media_image_url] - http://root:[email protected]:33444/picon/1_0_19_6A6_11_601_FFFF0000_0_0_0.png
2021-02-25 13:24:05 DEBUG (MainThread) [custom_components.enigma] Enigma: [update] - Eventtitle for host 192.168.1.105 = A világ egy terített asztal
2021-02-25 13:24:05 DEBUG (MainThread) [custom_components.enigma] Enigma: [request_call] - Call request http://192.168.1.105:80/web/vol 
2021-02-25 13:24:05 DEBUG (MainThread) [custom_components.enigma] Enigma: [update] - Volume for host 192.168.1.105 = 100
2021-02-25 13:24:05 DEBUG (MainThread) [custom_components.enigma] Enigma: [update] - Is host 192.168.1.105 muted = False
2021-02-25 13:24:05 DEBUG (MainThread) [custom_components.enigma] Enigma: [media_image_url] - http://root:[email protected]:80/picon/1_0_19_6A6_11_601_FFFF0000_0_0_0.png
2021-02-25 13:24:15 DEBUG (MainThread) [custom_components.enigma] Enigma: [update] - request for host 192.168.1.104 (ZgemmaH7S)
2021-02-25 13:24:15 DEBUG (MainThread) [custom_components.enigma] Enigma: [request_call] - Call request http://192.168.1.104:33444/web/powerstate 
2021-02-25 13:24:15 DEBUG (MainThread) [custom_components.enigma] Enigma: [update] - request for host 192.168.1.105 (ZgemmaH2H)
2021-02-25 13:24:15 DEBUG (MainThread) [custom_components.enigma] Enigma: [request_call] - Call request http://192.168.1.105:80/web/powerstate 
2021-02-25 13:24:15 DEBUG (MainThread) [custom_components.enigma] Enigma: [update] - Powerstate for host 192.168.1.104 = 
false	
2021-02-25 13:24:15 DEBUG (MainThread) [custom_components.enigma] Enigma: [request_call] - Call request http://192.168.1.104:33444/web/subservices 
2021-02-25 13:24:15 DEBUG (MainThread) [custom_components.enigma] Enigma: [update] - Powerstate for host 192.168.1.105 = 
false	
2021-02-25 13:24:15 DEBUG (MainThread) [custom_components.enigma] Enigma: [request_call] - Call request http://192.168.1.105:80/web/subservices 
2021-02-25 13:24:15 DEBUG (MainThread) [custom_components.enigma] Enigma: [request_call] - Call request http://192.168.1.104:33444/web/epgservicenow?sRef=1:0:19:6A6:11:601:FFFF0000:0:0:0: 
2021-02-25 13:24:15 DEBUG (MainThread) [custom_components.enigma] Enigma: [request_call] - Call request http://192.168.1.105:80/web/epgservicenow?sRef=1:0:19:6A6:11:601:FFFF0000:0:0:0: 
2021-02-25 13:24:15 DEBUG (MainThread) [custom_components.enigma] Enigma: [update] - Eventtitle for host 192.168.1.104 = A világ egy terített asztal
2021-02-25 13:24:15 DEBUG (MainThread) [custom_components.enigma] Enigma: [request_call] - Call request http://192.168.1.104:33444/web/vol 
2021-02-25 13:24:15 DEBUG (MainThread) [custom_components.enigma] Enigma: [update] - Volume for host 192.168.1.104 = 100
2021-02-25 13:24:15 DEBUG (MainThread) [custom_components.enigma] Enigma: [update] - Is host 192.168.1.104 muted = False
2021-02-25 13:24:15 DEBUG (MainThread) [custom_components.enigma] Enigma: [media_image_url] - http://root:[email protected]:33444/picon/1_0_19_6A6_11_601_FFFF0000_0_0_0.png
2021-02-25 13:24:15 DEBUG (MainThread) [custom_components.enigma] Enigma: [update] - Eventtitle for host 192.168.1.105 = A világ egy terített asztal
2021-02-25 13:24:15 DEBUG (MainThread) [custom_components.enigma] Enigma: [request_call] - Call request http://192.168.1.105:80/web/vol 
2021-02-25 13:24:15 DEBUG (MainThread) [custom_components.enigma] Enigma: [update] - Volume for host 192.168.1.105 = 100
2021-02-25 13:24:15 DEBUG (MainThread) [custom_components.enigma] Enigma: [update] - Is host 192.168.1.105 muted = False
Logger: homeassistant.components.media_player
Source: components/media_player/__init__.py:907
Integration: Médialejátszó (documentation, issues)
First occurred: 14:09:44 (2 occurrences)
Last logged: 14:11:44

Error retrieving proxied image from http://root:[email protected]:33444/picon/1_0_11_519_D_601_FFFF0000_0_0_0.png
Error retrieving proxied image from http://root:[email protected]:80/picon/1_0_19_CB_2_601_FFFF0000_0_0_0.png

I can see there the image_url requests.

2021-02-25 13:24:05 DEBUG (MainThread) [custom_components.enigma] Enigma: [media_image_url] - http://root:[email protected]:80/picon/1_0_19_6A6_11_601_FFFF0000_0_0_0.png

Can you open the url from the broser in your lan ?
Replace xxxx by the password :slight_smile:

Can’t open it. Get this error in the browser:

No Such Resource

File not found.

You’re saying that if you disable authentication, then it works ?
Please disable it, and share that exact same line [media_image_url] from the log file.

And open it on the browser.

Disable it and not working with your confing.

2021-02-25 15:09:52 DEBUG (MainThread) [custom_components.enigma] Enigma: [media_image_url] - http://root:[email protected]:33444/picon/1_0_19_CB_2_601_FFFF0000_0_0_0.png

Get the same error in the browser.

No Such Resource

File not found.

With the standard platform working good only when disable “HTTP authentication”

You are using authentication (root/xxxx)
Can you remove authentication ?

Is the picon showing in the webinterface if you login via browser ?