Thanks for the hints.
The integration provides a media_player and notify platform.
The lovelace card used is the media-control, and it is restricted to the original elements.
The options is two create/develop a lovelace card that extends the media-control original elements.
I have no idea if it is possible to add more actions to the media_player platform, and make them available on the lovelace card.
I will need time to investigate that. Everything is possible, we just need time
Hi,
I didn’t copy anything into custom components. yet discovery allows me to find my enigma. (an entity not an integration)
Is the version found by discovery that of cinzas?
I would have liked not to write in my configuration.yaml the port nor the password. ( if I write them in secret.yaml it doesn’t work )
Yes, the yaml seems unformatted, are you sure it is correct ?
When restarting home-assistant, on the log file, do you see enigma platform being loaded ?
Something like this
2022-02-18 15:08:03 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration **enigma** which has not been tested by Home Assistant. This component might cause s
tability problems, be sure to disable it if you experience issues with Home Assistant
My configuration looks like this (see screenshot).
When restarting HA, I see the following in the logfile and this is the only enigma-related point:
2022-02-18 16:01:08 ERROR (SyncWorker_2) [homeassistant.loader] Error parsing manifest.json file at /config/custom_components/enigma/manifest.json: Expecting value: line 7 column 1 (char 6)
However, it’s quite strange that my other custom components (HACS, HyperHDR) get a warning in the log just as you wrote above. Enigma does NOT (apart from the message above)
The configuration looks good.
Can you restart HA and have a look to the log.
There must be some errors loading the custom_component.
Example from home_assistant.log
2022-04-21 14:18:52 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration enigma which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-04-21 14:20:12 INFO (MainThread) [homeassistant.setup] Setting up enigma
2022-04-21 14:20:12 INFO (MainThread) [custom_components.enigma] Initializing enigma devices
2022-04-21 14:20:12 INFO (MainThread) [homeassistant.setup] Setup of domain enigma took 0.0 seconds
2022-04-21 14:20:12 INFO (MainThread) [homeassistant.components.media_player] Setting up media_player.enigma
2022-04-21 14:20:12 INFO (MainThread) [homeassistant.components.notify] Setting up notify.enigma
I have removed the bouquet and restarted HA I get these errors.
2022-04-25 12:56:06 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-04-25 12:56:18 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 334, in data_received
messages, upgraded, tail = self._request_parser.feed_data(data)
File "aiohttp/_http_parser.pyx", line 551, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadStatusLine: 400, message="Bad status line 'Invalid method encountered'"
2022-04-25 12:56:31 WARNING (MainThread) [homeassistant.setup] Setup of timer is taking over 10 seconds.
2022-04-25 12:56:31 WARNING (MainThread) [homeassistant.components.scene] Setup of scene platform homeassistant is taking over 10 seconds.
2022-04-25 12:56:31 ERROR (MainThread) [custom_components.xiaomi_miot_raw.deps.xiaomi_cloud_new] Timeout while loading MiCloud device list
2022-04-25 12:56:31 WARNING (MainThread) [homeassistant.setup] Setup of input_button is taking over 10 seconds.
2022-04-25 12:56:31 WARNING (MainThread) [homeassistant.setup] Setup of input_number is taking over 10 seconds.
2022-04-25 12:56:31 WARNING (MainThread) [homeassistant.setup] Setup of input_boolean is taking over 10 seconds.
2022-04-25 12:56:31 WARNING (MainThread) [homeassistant.setup] Setup of input_select is taking over 10 seconds.
2022-04-25 12:56:31 WARNING (MainThread) [homeassistant.setup] Setup of input_text is taking over 10 seconds.
2022-04-25 12:56:31 WARNING (MainThread) [homeassistant.setup] Setup of counter is taking over 10 seconds.
2022-04-25 12:56:31 WARNING (MainThread) [homeassistant.setup] Setup of input_datetime is taking over 10 seconds.
2022-04-25 12:56:31 WARNING (MainThread) [homeassistant.setup] Setup of tag is taking over 10 seconds.
2022-04-25 12:56:31 WARNING (MainThread) [homeassistant.setup] Setup of zone is taking over 10 seconds.
2022-04-25 12:56:33 WARNING (MainThread) [homeassistant.config_entries] Config entry 'NINA' for nina integration not ready yet; Retrying in background
2022-04-25 12:56:35 WARNING (MainThread) [homeassistant.config_entries] Config entry '192.168.178.247' for ipp integration not ready yet: Invalid response from API: Error occurred while communicating with IPP server.; Retrying in background
2022-04-25 12:57:00 ERROR (MainThread) [homeassistant.components.media_player] enigma: Error on device update!
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 431, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 735, in async_device_update
await task
File "/config/custom_components/enigma/media_player.py", line 205, in async_update
pwstate = powerstate_soup.e2instandby.renderContents().decode('UTF8')
AttributeError: 'NoneType' object has no attribute 'renderContents'
2022-04-25 12:57:18 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 334, in data_received
messages, upgraded, tail = self._request_parser.feed_data(data)
File "aiohttp/_http_parser.pyx", line 551, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadStatusLine: 400, message="Bad status line 'Invalid method encountered'"
Ok, so you are receiving a HTPP 400 from the enigma box.
aiohttp.http_exceptions.BadStatusLine: 400, message="Bad status line 'Invalid method encountered'"
If you open this link via browser, http://192.168.178.62/web/getservices, using your user and password defined on HA, do you get a xml with the list of services on enigma2 ?
Which satellite box do you own, and which image are you running ?
You have openwebif 1.9 ? Isn’t 1.5 the latest version ?
1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.favourites.tv" ORDER BY bouquet Favourites (TV) 1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.NN2-Streaming-Server-HLS.tv" ORDER BY bouquet NN2-Streaming-Server-HLS 1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.NN2-Streaming-Server-RTSP.tv" ORDER BY bouquet NN2-Streaming-Server-RTSP