Yeah right?! Like it should work on both, or not work on both… I also encountered another error with a dreambox I recently placed outside in my garden to watch tv on, this one got the same image as my dreambox in my bed room which works 100% with your component… The error thrown is different, it doesn’t throw the http 412 condition failed but another one. The weird thing is that it doesn’t always behave like this, so sometimes I get this error in my log every single minute, and sometimes it just works like it should and doesn’t throw an error. It feels like the error is thrown more often when the dreambox is turned off.
Update for media_player.terras_dreambox fails
Traceback (most recent call last):
File "/home/hass/.homeassistant/custom_components/media_player/enigma.py", line 152, in request_call
return self._opener.open(uri, timeout=self._timeout).read().decode('UTF8')
File "/usr/local/lib/python3.6/urllib/request.py", line 532, in open
response = meth(req, response)
File "/usr/local/lib/python3.6/urllib/request.py", line 642, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/local/lib/python3.6/urllib/request.py", line 570, in error
return self._call_chain(*args)
File "/usr/local/lib/python3.6/urllib/request.py", line 504, in _call_chain
result = func(*args)
File "/usr/local/lib/python3.6/urllib/request.py", line 650, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 400: Bad Request
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 204, in async_update_ha_state
yield from self.async_device_update()
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 327, in async_device_update
yield from self.hass.async_add_job(self.update)
File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/util/__init__.py", line 319, in wrapper
result = method(*args, **kwargs)
File "/home/hass/.homeassistant/custom_components/media_player/enigma.py", line 193, in update
xml = self.request_call('/web/epgservicenow?sRef=' + reference)
File "/home/hass/.homeassistant/custom_components/media_player/enigma.py", line 154, in request_call
_LOGGER.exception("Enigma: [request_call] - Error connecting to remote enigma %s: %s ", self._host, HTTPError.code)
AttributeError: type object 'HTTPError' has no attribute 'code'
If you need any help with finding or installing the right image I can try to help!
Cheers