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.
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.
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
Hi Everyone
I made a minor update on the component.
Now you can change a channel via channel number.
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
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
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.
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:
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.
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