Enigma2 receivers integration

Does anybody still uses the Enigma notify function? I mean since Enigma2 wet official in HA its notify function was never introduced. Custom component now does not work or am I missing something?

Hi

I still did not update HA, but yes, the new enigma2 component from HA does not support notification.

I will keep using my component :slight_smile:

@fbradyirl: will you have a look on to it ?

Feel free to open a PR and add notify. It is not something I have ever used on enigma2.

Guys I would have opened anything even PR would I have know what that actually its :slight_smile: I am no coder but if you want me to open some sort of a ticket, just give me a hint what to do. I would very much like to have the Enigma notify function back and would appreciate anyone who cane help.

Hi all, maybe anyone can help me out, I am trying to set lights in living room on green if I am watching soccer on TV, so if source is i. e. “Sky Sport”, how to get this workin?

{{ state_attr('media_player.NAME, 'source') }}
should return the source value which has the channel name in it

1 Like

ok got it, but how to define the target sources?

Not quite sure what you mean - but if you find and look at the mediaplayer in the states area of the developer tools, you should be able to see everything, e.g. media_description and media_series_title both contain the programme name. If you’re after the channel names themselves, look in source_list

1 Like

for me works this:

  • id: sport led green
    alias: sport led green
    trigger:
    platform: template
    value_template: “{{ is_state_attr(‘media_player.vu_uno_4k’, ‘source’, ‘TVN TURBO HD - Zakup kontrolowany’) }}”
    action:
    • data:
      color_name: green
      brightness_pct: 80
      entity_id: light.led_tv
      service: light.turn_on

but the name of channel is TVN TURBO only, how to set like TVN TURBO, with stars “name of channel” ?

volume_level: 0.55
is_volume_muted: false
media_content_id: nSport+ - Telesprzedaż
media_content_type: tvshow
media_title: nSport+ - Telesprzedaż
source: nSport+ - Telesprzedaż
source_list: TVP 1 HD,TVP 2 HD,TVP INFO HD,TVP Polonia,TVN HD,TVN 24 HD,TVP HD,TVN TURBO HD,KINO POLSKA HD,TVP Rozrywka,TV4 HD,Polsat HD,CANAL+ HD,CANAL+ FAMILY HD,CANAL+ FILM HD,CANAL+ SPORT HD,CANAL+ SPORT 2 HD,

source is source: nSport+ - Telesprzedaż, not only channel name

Could be worth testing using truncate, .e.g

{{state_attr('media_player.vuduo2','source')|truncate(8,false,'',0)}}

Returns me BBC ONE whether it’s BBC ONE, or BBC ONE HD (I think :smiley:)

But its a little ‘interesting’ how it works, so test it in the template part of the developer tools to make sure you get it right first.

value_template: "{{ state_attr('media_player.vu_uno_4k', 'source')[:6] == 'ELEVEN' }}"

this one works :slight_smile:

I have been using this integration for a while and it was working great. However for some reason it seems to have broken.

I get the following in the logs. It appears that for some reason single quotation marks are being appended to the URL causing it to fail.

If I run the URL in a browser manually without the ‘’ then it works fine.

Has anyone else seen this?

Update for media_player.vu_solo2 fails
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 261, in async_update_ha_state
    await self.async_device_update()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 441, in async_device_update
    await self.hass.async_add_executor_job(self.update)
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/util/__init__.py", line 240, in wrapper
    result = method(*args, **kwargs)
  File "/config/custom_components/enigma/media_player.py", line 211, in update
    xml = self.request_call('/web/epgservicenow?sRef=' + reference)
  File "/config/custom_components/enigma/media_player.py", line 160, in request_call
    return self._opener.open(uri, timeout=self._timeout).read()
  File "/usr/local/lib/python3.7/urllib/request.py", line 525, in open
    response = self._open(req, data)
  File "/usr/local/lib/python3.7/urllib/request.py", line 543, in _open
    '_open', req)
  File "/usr/local/lib/python3.7/urllib/request.py", line 503, in _call_chain
    result = func(*args)
  File "/usr/local/lib/python3.7/urllib/request.py", line 1345, in http_open
    return self.do_open(http.client.HTTPConnection, req)
  File "/usr/local/lib/python3.7/urllib/request.py", line 1317, in do_open
    encode_chunked=req.has_header('Transfer-encoding'))
  File "/usr/local/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/local/lib/python3.7/http/client.py", line 1255, in _send_request
    self.putrequest(method, url, **skips)
  File "/usr/local/lib/python3.7/http/client.py", line 1117, in putrequest
    raise InvalidURL(f"URL can't contain control characters. {url!r} "
http.client.InvalidURL: URL can't contain control characters. '/web/epgservicenow?sRef=1:0:19:510E:80F:2:11A0000:0:0:0::ITV Tyne Tees HD' (found at least ' ')

All updates and still runs properly :slight_smile:

1 Like

Anyone have a way to stream from Enigma 2 directly to a Chromecast using homeasistant?

Hi,

I have problem with the picon and and the screenshot too.
Have Zgemma H7S with openatv 6.3.
If I setup Openwebif port : 33555 and use root and password No picon and no screenshot at all.
If I change back the port to 80 and disable the root/password for streaming it is working good.
How can I setup to use custom port and use root/password for streaming? Please help.

edit: the port not problem, make some test.
only the user password enabling for streaming the problem, trying download the picture but nothing. If disable it is working perfect.

Hello,

who to pute a name for see room and leaving?

if i pute this ont configuratio

media_player:
  - platform: enigma2
    host: 192.168.1.28
    name: 'Salon' (tried without ' ' and saame result )
  - platform: enigma2
    host: 192.168.1.3

first enigma2 don’t work : Entitty not avaible: media_player.enigma2_media_player_2

if i change the name on card is work but when i reboot some times names is inverted :frowning:

thanks for yout help

try this:

enigma:
devices:
- host: x.x.x.x
name: name1
username: root
password: pass
picon: screenshot
- host: x.x.x.x
name: name2
username: root
password: pass
picon: screenshot

Hello, thanks for your help is work, my problem is using integrate enigma and not this plugin :wink:

thansks


upload to custom_components

Did someone also run the enigma2 box with the google home speaker?

Turn on the TV.
Zapp to RTL
Increase or decrease volume