Enigma2 receivers integration

I fixed local media playing bug and I added multiple bouquet support. You can install from here, or wait until it will be merged by cinzas.

2 Likes

Hi @madrian

Excellent work.
Let me try that on my installation, against my 3 distinct enigma boxes.
If all is working properly (which I believe is), I will merge.

I will later take a look of what is needed to submit this as a component to HA.
I believe some code cleanup is also needed (and documentation)

Thanks for sharing

Nice, thanks. :slightly_smiling_face:

Thanks to @madrian I’ve commited the changes today.
You can now choose your bouquet in the configuration file.

Just improved (i guess) a little bit the way to check the bouquet reference.
Goto http://box.ip/web/getservices and check the string you need to copy

It’s explained on the README.

I will now check what’s need to propose the custom component to a component.

Thanks

4 Likes

Hi Everyone

I made a minor update on the component.
Now you can change a channel via channel number.
6
Call the service media_player.play_media
Arguments:
"entity_id": “your_enigma2_id”
“media_content_id”: “your_channel_number”
“media_content_type”: "not_used_set_to_null"

Now play with it and share your configs :slight_smile:
You can set to with channel the box should change whenever you turn it on, or at a specified time, etc.

I will work on the proposal of the enigma2 component

Find it in the usual place https://github.com/cinzas/homeassistant-enigma-player

1 Like

Nice, thank you. :slight_smile:

So … some new commits, nothing changed, only code cleanup.

I’m new to git, but I think I managed to do it and placed my first pull request to ha.

https://github.com/cinzas/home-assistant/pull/1

hi, I just tested it with my environment but it looks a little bit strange and no screenshot is shown as like the example. I’m using Vuzero with VTI image 13.0.12 with OpenWebif 1.2.8.

media_player:

  • platform: enigma
    host: 192.168.1.67
    port: 80
    name: vuzero
    icon: mdi:satellite-variant
    timeout: 20
    username: root
    password: geheim
    bouquet: ‘1:7:1:0:0:0:0:0:0:0:FROM BOUQUET “userbouquet.favourites.tv” ORDER BY bouquet’

because of new user restriction as a second post:
2018-11-09%2011_04_49-Home%20Assistant

Hi

Can you see the picons when you access directly to the OpenwebIf page?
Are the picons stored in the /picon folder in the enigma2 box ?
If not create a symlink from /picon to the picon folder

no, but im fine without channel logo. Want to see what is running as the example e.g. with a screenshot.

“no, but im fine without channel logo. Want to see what is running as the example e.g. with a screenshot.”

Nice idea.

My suggestion for showing image:

  • show screenshot
  • show screenshot if no picons available
  • show picons
  • empty

It should be totally possible and would be a very nice feature. We can grab screenshot: /grab?format=jpg

You’re right.
I’ll look around. I know it is possible to grab a screenshot.

you can grab screenshot:

grab -dp /tmp/screenshot.jpg

Nope, must be invoked remotely. It is possible. I’m just thinking that this is requested every 10 seconds by default, and maybe it is not a good idea.

Did anyone faced the box lagging ?

@cinzas thank you so much enigma addon.

I would like to use my default bouquet . This was automatically created by Open-VIX and maintains the channel numbers for freesat here in the UK. So my bouquet contains lots of blanks in the list as well as bouquet markers . So the source list from the HA media player is a huge list of mainly blank entries . Is it possible to ignore a blank entry in the bouquet. See the following from the OpenWebif bouquet editor

100 blank entries then

and so on

Ok, pull request has been done and code as passed all tests.

https://travis-ci.org/cinzas/home-assistant

As I wrote we can grab screenshot easily:

http://192.168.1.99/grab?format=jpg

Lag? I think no problem. We can easily stream anything from our boxes, without any problem, then grabbing screenshot every xx minutes should not make any problem.

Ok, let me see if the pull request is accepted,

Then we can have a entry in the config display=picon or display=screenshot.
And based on the choice it will show what the user wants (picon by default).

Not difficult to implement, will try that later.

Hi guys

It’s done. I just released a new version of the platform.
There is a new variable that can be added to the configuration

picon = picon

or

picon = screenshot

Default is to grab from picon.
If defined picon=screenshot will grab a new screenshot when channel is changed.

Had to investigate a little bit, becase using grab?format=jpg will work only when loading. Because the request is always the same, the image won’t be refresh by HA.
I decided to grab screenshot with a width of 720, png format and added the channel reference as a parameter (which is ignored by enigma).

With this implementation it is working as desired (i guess)

I will update my pull request accordingly

Thanks

1 Like