What’s on the file /config/custom_components/enigma.py?
It seems the file has HTML content.
Did you copy the right files from github?
What’s on the file /config/custom_components/enigma.py?
It seems the file has HTML content.
Did you copy the right files from github?
Yes, everything like the tutorial on git.
If you’re copy/pasting, do it from the raw view of the file
https://raw.githubusercontent.com/cinzas/homeassistant-enigma-player/master/enigma.py
Hi, thanks for raw link.
Now I havent errors when verify the configuration, but the player doestn appears into home app…
Its strange beacuse i havent this problems with apple tv and plex media player.
So, you should download all the files and place it in the right place.
Download the 3 raw files, not the HTML version
You should now have the following structure
custom_components/enigma.py
custom_components/media_player/enigma.py
custom_components/notify/enigma.py
If yes, restart HA and share your logfile (upload it to http://pastebin.com)
Thanks
Yes, I’ve the structure like you say.
Here is the log:
2018-11-29 12:51:13 INFO (MainThread) [homeassistant.components.http.view] Serving /states to 192.168.1.214 (auth: False)
2018-11-29 12:51:13 INFO (MainThread) [homeassistant.components.http.view] Serving /api/websocket to 192.168.1.214 (auth: False)
2018-11-29 12:51:14 INFO (MainThread) [homeassistant.components.http.view] Serving /auth/token to 192.168.1.214 (auth: False)
2018-11-29 12:51:15 INFO (MainThread) [homeassistant.components.http.view] Serving /api/websocket to 192.168.1.214 (auth: False)
2018-11-29 12:51:24 INFO (MainThread) [homeassistant.components.http.view] Serving /api/config/core/check_config to 192.168.1.214 (auth: True)
2018-11-29 12:51:24 ERROR (SyncWorker_6) [homeassistant.util.yaml] YAML file /config/automations.yaml contains duplicate key “service”. Check lines 17 and 19.
2018-11-29 12:51:25 ERROR (SyncWorker_6) [homeassistant.util.yaml] YAML file /config/automations.yaml contains duplicate key “entity_id”. Check lines 18 and 20.
2018-11-29 12:51:25 ERROR (SyncWorker_6) [homeassistant.util.yaml] YAML file /config/automations.yaml contains duplicate key “service”. Check lines 19 and 21.
2018-11-29 12:51:25 ERROR (SyncWorker_6) [homeassistant.util.yaml] YAML file /config/automations.yaml contains duplicate key “entity_id”. Check lines 20 and 22.
2018-11-29 12:51:26 ERROR (SyncWorker_17) [homeassistant.util.yaml] YAML file /config/automations.yaml contains duplicate key “service”. Check lines 17 and 19.
2018-11-29 12:51:26 ERROR (SyncWorker_17) [homeassistant.util.yaml] YAML file /config/automations.yaml contains duplicate key “entity_id”. Check lines 18 and 20.
2018-11-29 12:51:26 ERROR (SyncWorker_17) [homeassistant.util.yaml] YAML file /config/automations.yaml contains duplicate key “service”. Check lines 19 and 21.
2018-11-29 12:51:26 ERROR (SyncWorker_17) [homeassistant.util.yaml] YAML file /config/automations.yaml contains duplicate key “entity_id”. Check lines 20 and 22.
2018-11-29 12:51:26 INFO (MainThread) [homeassistant.components.websocket_api.http.connection.140426238678296] Connection closed by client
2018-11-29 12:51:26 INFO (MainThread) [homeassistant.components.websocket_api.http.connection.140426237641896] Connection closed by client
2018-11-29 12:51:26 INFO (SyncWorker_1) [pyhap.accessory_driver] Stopping accessory Home Assistant Bridge on address 192.168.1.50, port 51827.
2018-11-29 12:51:27 INFO (SyncWorker_1) [pyhap.hap_server] Stopping HAP server
2018-11-29 12:51:27 INFO (SyncWorker_5) [pyhap.accessory_driver] Closed the event loop
Home Assistant attempting to restart.
Restarting Home Assistant
Config directory: /config
2018-11-29 12:51:28 ERROR (SyncWorker_0) [homeassistant.util.yaml] YAML file /config/automations.yaml contains duplicate key “service”. Check lines 17 and 19.
2018-11-29 12:51:28 ERROR (SyncWorker_0) [homeassistant.util.yaml] YAML file /config/automations.yaml contains duplicate key “entity_id”. Check lines 18 and 20.
2018-11-29 12:51:28 ERROR (SyncWorker_0) [homeassistant.util.yaml] YAML file /config/automations.yaml contains duplicate key “service”. Check lines 19 and 21.
2018-11-29 12:51:28 ERROR (SyncWorker_0) [homeassistant.util.yaml] YAML file /config/automations.yaml contains duplicate key “entity_id”. Check lines 20 and 22.
2018-11-29 12:51:28 INFO (MainThread) [homeassistant.loader] Loaded websocket_api from homeassistant.components.websocket_api
2018-11-29 12:51:28 INFO (MainThread) [homeassistant.bootstrap] Home Assistant core initialized
2018-11-29 12:51:28 INFO (MainThread) [homeassistant.loader] Loaded frontend from homeassistant.components.frontend
2018-11-29 12:51:28 INFO (MainThread) [homeassistant.loader] Loaded api from homeassistant.components.api
2018-11-29 12:51:28 INFO (MainThread) [homeassistant.loader] Loaded http from homeassistant.components.http
2018-11-29 12:51:28 INFO (MainThread) [homeassistant.loader] Loaded system_log from homeassistant.components.system_log
2018-11-29 12:51:28 INFO (MainThread) [homeassistant.loader] Loaded auth from homeassistant.components.auth
2018-11-29 12:51:28 INFO (MainThread) [homeassistant.loader] Loaded onboarding from homeassistant.components.onboarding
2018-11-29 12:51:28 INFO (MainThread) [homeassistant.loader] Loaded lovelace from homeassistant.components.lovelace
2018-11-29 12:51:28 INFO (MainThread) [homeassistant.loader] Loaded introduction from homeassistant.components.introduction
2018-11-29 12:51:28 INFO (MainThread) [homeassistant.setup] Setting up introduction
2018-11-29 12:51:28 INFO (MainThread) [homeassistant.components.introduction]
Hello, and welcome to Home Assistant!
We’ll hope that we can make all your dreams come true.
Here are some resources to get started:
2018-11-29 12:51:28 INFO (MainThread) [homeassistant.loader] Loaded persistent_notification from homeassistant.components.persistent_notification
2018-11-29 12:51:28 INFO (MainThread) [homeassistant.setup] Setup of domain introduction took 0.0 seconds.
2018-11-29 12:51:28 INFO (MainThread) [homeassistant.loader] Loaded history from homeassistant.components.history
2018-11-29 12:51:28 INFO (MainThread) [homeassistant.loader] Loaded recorder from homeassistant.components.recorder
2018-11-29 12:51:28 INFO (MainThread) [homeassistant.setup] Setting up lovelace
2018-11-29 12:51:28 INFO (MainThread) [homeassistant.setup] Setup of domain lovelace took 0.0 seconds.
2018-11-29 12:51:28 INFO (MainThread) [homeassistant.setup] Setting up http
2018-11-29 12:51:28 INFO (MainThread) [homeassistant.setup] Setup of domain http took 0.0 seconds.
2018-11-29 12:51:28 INFO (MainThread) [homeassistant.setup] Setting up recorder
2018-11-29 12:51:28 INFO (MainThread) [homeassistant.setup] Setting up api
2018-11-29 12:51:28 INFO (MainThread) [homeassistant.setup] Setting up websocket_api
2018-11-29 12:51:28 INFO (MainThread) [homeassistant.setup] Setup of domain websocket_api took 0.0 seconds.
2018-11-29 12:51:28 INFO (MainThread) [homeassistant.setup] Setting up system_log
2018-11-29 12:51:28 INFO (MainThread) [homeassistant.setup] Setup of domain system_log took 0.0 seconds.
2018-11-29 12:51:28 INFO (MainThread) [homeassistant.setup] Setting up auth
2018-11-29 12:51:28 INFO (MainThread) [homeassistant.setup] Setup of domain auth took 0.0 seconds.
2018-11-29 12:51:28 INFO (MainThread) [homeassistant.setup] Setting up onboarding
2018-11-29 12:51:28 INFO (MainThread) [homeassistant.setup] Setup of domain api took 0.0 seconds.
2018-11-29 12:51:28 INFO (MainThread) [homeassistant.setup] Setup of domain onboarding took 0.0 seconds.
2018-11-29 12:51:28 INFO (MainThread) [homeassistant.setup] Setting up frontend
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setup of domain frontend took 0.3 seconds.
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setup of domain recorder took 0.4 seconds.
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setting up history
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setup of domain history took 0.0 seconds.
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded apple_tv from homeassistant.components.apple_tv
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setting up apple_tv
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded binary_sensor from homeassistant.components.binary_sensor
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded binary_sensor.ping from homeassistant.components.binary_sensor.ping
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setting up binary_sensor
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded discovery from homeassistant.components.discovery
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setting up discovery
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setup of domain discovery took 0.0 seconds.
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded switch from homeassistant.components.switch
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded group from homeassistant.components.group
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded switch.command_line from homeassistant.components.switch.command_line
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded script from homeassistant.components.script
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded conversation from homeassistant.components.conversation
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded hue from homeassistant.components.hue
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setting up hue
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setup of domain hue took 0.0 seconds.
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded config from homeassistant.components.config
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded automation from homeassistant.components.automation
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded updater from homeassistant.components.updater
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setting up updater
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded logbook from homeassistant.components.logbook
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded weather from homeassistant.components.weather
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded weather.yweather from homeassistant.components.weather.yweather
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setting up weather
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded sensor from homeassistant.components.sensor
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded sensor.yweather from homeassistant.components.sensor.yweather
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded sensor.rest from homeassistant.components.sensor.rest
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setting up sensor
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded homekit from homeassistant.components.homekit
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setting up homekit
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setting up group
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded tts from homeassistant.components.tts
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded tts.google from homeassistant.components.tts.google
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded media_player from homeassistant.components.media_player
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded media_player.plex from homeassistant.components.media_player.plex
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded media_player.enigma from custom_components.media_player.enigma
2018-11-29 12:51:29 WARNING (MainThread) [homeassistant.loader] You are using a custom component for media_player.enigma which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded map from homeassistant.components.map
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setting up map
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setup of domain map took 0.0 seconds.
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded cloud from homeassistant.components.cloud
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.ping
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.ping
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.ping
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.components.weather] Setting up weather.yweather
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.rest
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.rest
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.rest
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.yweather
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.rest
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.rest
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.rest
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.rest
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.rest
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setup of domain updater took 0.1 seconds.
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded remote from homeassistant.components.remote
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setup of domain apple_tv took 0.2 seconds.
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setting up conversation
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setup of domain conversation took 0.0 seconds.
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setting up config
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setting up logbook
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setup of domain logbook took 0.0 seconds.
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setting up tts
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setting up media_player
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setting up cloud
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setup of domain cloud took 0.0 seconds.
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded config.hassbian from homeassistant.components.config.hassbian
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded config.automation from homeassistant.components.config.automation
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded config.core from homeassistant.components.config.core
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded config.script from homeassistant.components.config.script
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded config.customize from homeassistant.components.config.customize
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded config.auth from homeassistant.components.config.auth
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded config.config_entries from homeassistant.components.config.config_entries
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded config.device_registry from homeassistant.components.config.device_registry
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded config.auth_provider_homeassistant from homeassistant.components.config.auth_provider_homeassistant
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded config.entity_registry from homeassistant.components.config.entity_registry
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded config.group from homeassistant.components.config.group
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.components.media_player] Setting up media_player.enigma
2018-11-29 12:51:29 ERROR (MainThread) [homeassistant.components.media_player] Error while setting up platform enigma
Traceback (most recent call last):
File “/usr/src/app/homeassistant/helpers/entity_platform.py”, line 124, in _async_setup_platform
task = async_create_setup_task()
File “/usr/src/app/homeassistant/helpers/entity_platform.py”, line 89, in async_create_setup_task
None, platform.setup_platform, hass, platform_config,
AttributeError: module ‘custom_components.media_player.enigma’ has no attribute ‘setup_platform’
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.components.media_player] Setting up media_player.plex
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setup of domain config took 0.1 seconds.
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setup of domain tts took 0.1 seconds.
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setup of domain group took 0.2 seconds.
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setting up switch
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setting up script
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setup of domain script took 0.0 seconds.
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setting up automation
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setting up remote
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setup of domain remote took 0.0 seconds.
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.components.switch] Setting up switch.command_line
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded remote.apple_tv from homeassistant.components.remote.apple_tv
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.components.remote] Setting up remote.apple_tv
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setup of domain switch took 0.0 seconds.
2018-11-29 12:51:29 INFO (SyncWorker_16) [homeassistant.components.media_player.plex] Discovery configuration done (no token needed)
2018-11-29 12:51:29 INFO (SyncWorker_16) [homeassistant.components.media_player.plex] Connected to: http://192.168.1.50:32400
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded light from homeassistant.components.light
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setting up light
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setup of domain light took 0.0 seconds.
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded light.hue from homeassistant.components.light.hue
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.components.light] Setting up light.hue
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setup of domain media_player took 0.2 seconds.
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded media_player.apple_tv from homeassistant.components.media_player.apple_tv
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.components.media_player] Setting up media_player.apple_tv
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setup of domain automation took 0.1 seconds.
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setup of domain homekit took 0.3 seconds.
2018-11-29 12:51:30 INFO (MainThread) [homeassistant.setup] Setup of domain weather took 1.4 seconds.
2018-11-29 12:51:30 INFO (MainThread) [homeassistant.setup] Setup of domain sensor took 1.4 seconds.
2018-11-29 12:51:34 INFO (MainThread) [homeassistant.setup] Setup of domain binary_sensor took 5.3 seconds.
2018-11-29 12:51:34 INFO (MainThread) [homeassistant.bootstrap] Home Assistant initialized in 6.00s
2018-11-29 12:51:34 INFO (MainThread) [homeassistant.core] Starting Home Assistant
2018-11-29 12:51:34 INFO (MainThread) [homeassistant.core] Timer:starting
2018-11-29 12:51:34 INFO (SyncWorker_10) [pyhap.accessory_driver] Loading Accessory state from /config/.homekit.state
2018-11-29 12:51:34 INFO (SyncWorker_31) [pyhap.accessory_driver] Starting the event loop
2018-11-29 12:51:34 INFO (SyncWorker_0) [pyhap.accessory_driver] Starting accessory Home Assistant Bridge on address 192.168.1.50, port 51827.
2018-11-29 12:51:35 INFO (Thread-3) [pyhap.hap_server] Got connection with (‘192.168.1.240’, 50759).
2018-11-29 12:51:35 INFO (Thread-4) [pyhap.hap_server] 192.168.1.240 - “POST /pair-verify HTTP/1.1” 200 -
2018-11-29 12:51:35 INFO (Thread-4) [pyhap.hap_server] 192.168.1.240 - “POST /pair-verify HTTP/1.1” 200 -
2018-11-29 12:51:35 INFO (Thread-4) [pyhap.hap_server] 192.168.1.240 - “GET /accessories HTTP/1.1” 200 -
2018-11-29 12:51:35 INFO (Thread-3) [pyhap.hap_server] Got connection with (‘192.168.1.248’, 49635).
2018-11-29 12:51:35 INFO (Thread-3) [pyhap.hap_server] Got connection with (‘192.168.1.237’, 60538).
2018-11-29 12:51:35 INFO (Thread-5) [pyhap.hap_server] 192.168.1.248 - “POST /pair-verify HTTP/1.1” 200 -
2018-11-29 12:51:35 INFO (Thread-6) [pyhap.hap_server] 192.168.1.237 - “POST /pair-verify HTTP/1.1” 200 -
2018-11-29 12:51:35 INFO (Thread-5) [pyhap.hap_server] 192.168.1.248 - “POST /pair-verify HTTP/1.1” 200 -
2018-11-29 12:51:35 INFO (Thread-5) [pyhap.hap_server] 192.168.1.248 - “GET /accessories HTTP/1.1” 200 -
2018-11-29 12:51:35 INFO (Thread-6) [pyhap.hap_server] 192.168.1.237 - “POST /pair-verify HTTP/1.1” 200 -
2018-11-29 12:51:35 INFO (Thread-6) [pyhap.hap_server] 192.168.1.237 - “GET /accessories HTTP/1.1” 200 -
2018-11-29 12:51:35 INFO (Thread-4) [pyhap.hap_server] 192.168.1.240 - “PUT /characteristics HTTP/1.1” 207 -
2018-11-29 12:51:35 INFO (Thread-4) [pyhap.hap_server] 192.168.1.240 - “PUT /characteristics HTTP/1.1” 207 -
2018-11-29 12:51:36 INFO (Thread-4) [pyhap.hap_server] 192.168.1.240 - “PUT /characteristics HTTP/1.1” 207 -
2018-11-29 12:51:36 INFO (Thread-5) [pyhap.hap_server] 192.168.1.248 - “PUT /characteristics HTTP/1.1” 207 -
2018-11-29 12:51:36 INFO (Thread-5) [pyhap.hap_server] 192.168.1.248 - “PUT /characteristics HTTP/1.1” 207 -
2018-11-29 12:51:36 INFO (MainThread) [homeassistant.components.http.view] Serving /api/websocket to 192.168.1.214 (auth: False)
2018-11-29 12:51:36 INFO (MainThread) [homeassistant.loader] Loaded lifx from homeassistant.components.lifx
2018-11-29 12:51:36 INFO (MainThread) [homeassistant.loader] Loaded nest from homeassistant.components.nest
2018-11-29 12:51:36 INFO (MainThread) [homeassistant.loader] Loaded upnp from homeassistant.components.upnp
2018-11-29 12:51:36 INFO (MainThread) [homeassistant.loader] Loaded deconz from homeassistant.components.deconz
2018-11-29 12:51:36 INFO (MainThread) [homeassistant.loader] Loaded cast from homeassistant.components.cast
2018-11-29 12:51:36 INFO (MainThread) [homeassistant.loader] Loaded zwave from homeassistant.components.zwave
2018-11-29 12:51:36 INFO (MainThread) [homeassistant.loader] Loaded sonos from homeassistant.components.sonos
2018-11-29 12:51:36 INFO (MainThread) [homeassistant.loader] Loaded simplisafe from homeassistant.components.simplisafe
2018-11-29 12:51:36 INFO (MainThread) [homeassistant.loader] Loaded smhi from homeassistant.components.smhi
2018-11-29 12:51:36 INFO (MainThread) [homeassistant.loader] Loaded zone from homeassistant.components.zone
2018-11-29 12:51:36 INFO (MainThread) [homeassistant.loader] Loaded homematicip_cloud from homeassistant.components.homematicip_cloud
2018-11-29 12:51:36 INFO (MainThread) [homeassistant.loader] Loaded hangouts from homeassistant.components.hangouts
2018-11-29 12:51:36 INFO (MainThread) [homeassistant.loader] Loaded dialogflow from homeassistant.components.dialogflow
2018-11-29 12:51:36 INFO (MainThread) [homeassistant.loader] Loaded mqtt from homeassistant.components.mqtt
2018-11-29 12:51:36 INFO (MainThread) [homeassistant.loader] Loaded ios from homeassistant.components.ios
2018-11-29 12:51:36 INFO (MainThread) [homeassistant.loader] Loaded ifttt from homeassistant.components.ifttt
2018-11-29 12:51:36 INFO (MainThread) [homeassistant.loader] Loaded twilio from homeassistant.components.twilio
2018-11-29 12:51:36 INFO (MainThread) [homeassistant.loader] Loaded mailgun from homeassistant.components.mailgun
2018-11-29 12:51:36 INFO (MainThread) [homeassistant.loader] Loaded openuv from homeassistant.components.openuv
2018-11-29 12:51:36 INFO (MainThread) [homeassistant.loader] Loaded tradfri from homeassistant.components.tradfri
2018-11-29 12:51:36 INFO (MainThread) [homeassistant.loader] Loaded unifi from homeassistant.components.unifi
2018-11-29 12:51:36 INFO (MainThread) [homeassistant.components.http.view] Serving /api/websocket to 192.168.1.214 (auth: False)
2018-11-29 12:51:52 INFO (MainThread) [homeassistant.components.discovery] Unknown service discovered: homekit {‘host’: ‘192.168.1.105’, ‘port’: 8080, ‘hostname’: ‘Hue-PB.local.’, ‘properties’: {‘c#’: ‘108’, ‘ff’: ‘1’, ‘id’: ‘AA:47:4F:F5:FD:BB’, ‘md’: ‘BSB002’, ‘pv’: ‘1.1’, ‘sf’: ‘1’, ‘s#’: ‘1’, ‘ci’: ‘2’}, ‘name’: ‘Philips hue - 7C8908’}
2018-11-29 12:51:52 INFO (MainThread) [homeassistant.components.discovery] Unknown service discovered: homekit {‘host’: ‘192.168.1.50’, ‘port’: 51827, ‘hostname’: ‘HA.local.’, ‘properties’: {‘md’: ‘Home Assistant Bridge’, ‘pv’: ‘1.0’, ‘id’: ‘7B:87:D1:85:0F:7E’, ‘c#’: ‘2’, ‘s#’: ‘1’, ‘ff’: ‘0’, ‘ci’: ‘2’, ‘sf’: ‘0’, ‘sh’: ‘cpi+zA==’}, ‘name’: ‘Home Assistant Bridge’}
2018-11-29 12:51:52 INFO (MainThread) [homeassistant.components.discovery] Unknown service discovered: homekit {‘host’: ‘192.168.1.100’, ‘port’: 51826, ‘hostname’: ‘eedomus.local.’, ‘properties’: {‘md’: ‘eedomus’, ‘pv’: ‘1.0’, ‘id’: ‘C1:38:5A:AC:39:06’, ‘c#’: ‘19’, ‘s#’: ‘1’, ‘ff’: ‘0’, ‘ci’: ‘2’, ‘sf’: ‘1’}, ‘name’: ‘eedomus’}
2018-11-29 12:51:52 INFO (MainThread) [homeassistant.components.discovery] Unknown service discovered: asus_router {‘host’: ‘192.168.1.10’, ‘port’: 36683, ‘ssdp_description’: ‘http://192.168.1.10:36683/rootDesc.xml’, ‘name’: ‘DSL-AC68U’, ‘model_name’: ‘DSL-AC68U’, ‘model_number’: ‘3.0.0.4.382’, ‘serial’: ‘ac:9e:17:69:df:60’, ‘manufacturer’: ‘ASUSTeK Computer Inc.’, ‘udn’: ‘uuid:02995ffe-ea41-4ac0-9f1a-4773f74bc07c’, ‘upnp_device_type’: ‘urn:schemas-upnp-org:device:InternetGatewayDevice:1’}
2018-11-29 12:51:52 INFO (MainThread) [homeassistant.components.discovery] Unknown service discovered: igd {‘host’: ‘192.168.1.10’, ‘port’: 36683, ‘ssdp_description’: ‘http://192.168.1.10:36683/rootDesc.xml’, ‘name’: ‘DSL-AC68U’, ‘model_name’: ‘DSL-AC68U’, ‘model_number’: ‘3.0.0.4.382’, ‘serial’: ‘ac:9e:17:69:df:60’, ‘manufacturer’: ‘ASUSTeK Computer Inc.’, ‘udn’: ‘uuid:02995ffe-ea41-4ac0-9f1a-4773f74bc07c’, ‘upnp_device_type’: ‘urn:schemas-upnp-org:device:InternetGatewayDevice:1’}
2018-11-29 12:51:52 INFO (MainThread) [homeassistant.components.discovery] Found new service: apple_tv {‘host’: ‘192.168.1.248’, ‘port’: 3689, ‘hostname’: ‘Salon.local.’, ‘properties’: {‘DFID’: ‘3’, ‘EiTS’: ‘1’, ‘mV’: ‘131082’, ‘aV’: ‘196620’, ‘hG’: ‘00000000-11b1-20e6-df41-5e86449545c7’, ‘fs’: ‘2’, ‘Name’: ‘Salón’, ‘atSV’: ‘65539’, ‘Ver’: ‘131075’}, ‘name’: ‘Salón’}
2018-11-29 12:51:52 INFO (MainThread) [homeassistant.components.discovery] Found new service: plex_mediaserver {‘name’: ‘laloNAS’, ‘host’: ‘192.168.1.50’, ‘port’: ‘32400’, ‘urlbase’: ‘https://192.168.1.50:32400’}
2018-11-29 12:51:52 INFO (MainThread) [homeassistant.components.discovery] Unknown service discovered: dlna_dms {‘host’: ‘172.17.0.1’, ‘port’: 32469, ‘ssdp_description’: ‘http://172.17.0.1:32469/DeviceDescription.xml’, ‘name’: ‘Plex Media Server: laloNAS’, ‘model_name’: ‘Plex Media Server’, ‘model_number’: ‘1.13.4.5271’, ‘serial’: None, ‘manufacturer’: ‘Plex, Inc.’, ‘udn’: ‘uuid:9e1b930b-eaf6-3ea7-b50c-6c81c8edefd3’, ‘upnp_device_type’: ‘urn:schemas-upnp-org:device:MediaServer:1’}
2018-11-29 12:51:52 INFO (MainThread) [homeassistant.components.discovery] Unknown service discovered: dlna_dms {‘host’: ‘192.168.1.50’, ‘port’: 32469, ‘ssdp_description’: ‘http://192.168.1.50:32469/DeviceDescription.xml’, ‘name’: ‘Plex Media Server: laloNAS’, ‘model_name’: ‘Plex Media Server’, ‘model_number’: ‘1.13.4.5271’, ‘serial’: None, ‘manufacturer’: ‘Plex, Inc.’, ‘udn’: ‘uuid:9e1b930b-eaf6-3ea7-b50c-6c81c8edefd3’, ‘upnp_device_type’: ‘urn:schemas-upnp-org:device:MediaServer:1’}
2018-11-29 12:51:52 INFO (MainThread) [homeassistant.components.media_player] Setting up media_player.plex
2018-11-29 12:51:52 INFO (SyncWorker_38) [homeassistant.components.media_player.plex] Discovery configuration done (no token needed)
2018-11-29 12:51:52 INFO (SyncWorker_38) [homeassistant.components.media_player.plex] Connected to: http://192.168.1.50:32400
Thanks!
Your problem is here
2018-11-29 12:51:29 INFO (MainThread) [homeassistant.components.media_player] Setting up media_player.enigma
2018-11-29 12:51:29 ERROR (MainThread) [homeassistant.components.media_player] Error while setting up platform enigma
Traceback (most recent call last):
File “/usr/src/app/homeassistant/helpers/entity_platform.py”, line 124, in _async_setup_platform
task = async_create_setup_task()
File “/usr/src/app/homeassistant/helpers/entity_platform.py”, line 89, in async_create_setup_task
None, platform.setup_platform, hass, platform_config,
AttributeError: module ‘custom_components.media_player.enigma’ has no attribute ‘setup_platform’
Can you share your config file, where you specify the enigma component.
Here is:
name: laloHome
latitude: 36.664
longitude: -4.5614
elevation: 0
unit_system: metric
time_zone: Europe/Madrid
customize: !include customize.yaml
introduction:
frontend:
config:
updater:
discovery:
conversation:
history:
logbook:
map:
weather:
apple_tv:
media_player:
enigma:
devices:
- host: 192.168.1.6
port: 80
name: vu
timeout: 20
username: root
password: lalo
tts:
cloud:
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
sensor: !include sensors.yaml
binary_sensor: !include bsensors.yaml
homekit: !include homekit.yaml
switch: !include switch.yaml
Thanks!.
Would it be possible to implement a binary_sensor that checks if there is a timer set in the next 24h hours?
The reason is, I’m using you component mainly to turn my vu+ on and off with a sonoff socket.
Everyone away → shutdown vu+ → wait 5min → turn socket off
This works really well and saves me a lot of energy because one vu+ model has the ability to use WOL.
The problem is, I dont want to power off the vu+ when there is a timer pending for recording series or movies.
you can get the timer list with
http://<ipaddress>/web/timerlist
but the times in the results come back in ‘unix’ time, e.g.
<e2timerlist>
<e2timer>
…
<e2disabled>0</e2disabled> <e2timebegin>1543692420</e2timebegin> <e2timeend>1543700100</e2timeend> <e2duration>7680</e2duration> <e2startprepare>1543692400</e2startprepare> <e2justplay>0</e2justplay>
…
</e2timer>
If you’re good using shell scripts, or use node red, or even appdaemon you could get this info such as
In a shell script
date +%s
In node red
var duration = 24;
var checktime = duration*60*60;
var now = (new Date).getTime() / 1000;
var timerInNextDuration = false;
for(i=0;i<Object.keys(msg.payload.e2timerlist.e2timer).length;i++)
{
//console.log(msg.payload.e2timerlist.e2timer[i].e2startprepare);
diff = msg.payload.e2timerlist.e2timer[i].e2startprepare - now;
if(diff>=0 && diff <= checktime) timerInNextDuration = true;
}
if(timerInNextDuration)
{
//DO SOMETHING HERE
console.log("found recording in period");
}
return msg;
You could expose the result as a sensor to use in automations.
Are you giving the right indentation?
Yes of course, im sure of this.
Thanks. I’m already using a node-red flow for this so i think i’ll give it a try at the weekend.
Hi
I was using an old version of this. I upgraded with the latest version and didn’t bother to keep the old working version…
But now it is not working. These are the errors I’m seeing.
Error during setup of component enigma
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/homeassistant/setup.py", line 145, in _async_setup_component
hass, processed_config)
File "/config/custom_components/enigma.py", line 91, in async_setup
configured_devices = config[DOMAIN].get(CONF_DEVICES)
KeyError: 'enigma'
Unable to set up dependencies of media_player.enigma. Setup failed for dependencies: enigma
Unable to prepare setup for platform media_player.enigma: Could not set up all dependencies.
Obviously it’s not listed anymore as a media player and I can’t work with it. I haven’t changed anything on the receiver side, I only upgraded to the latest version.
Check the readme (https://github.com/cinzas/homeassistant-enigma-player)
Enigma is now a component that implement two platforms (media_player and notify).
Configuration also changes:
enigma:
devices:
- host: 192.168.1.20
port: 80
name: Gigablue
timeout: 20
username: root
password: your_password
picon: picon
notify:
- platform: enigma
host: 192.168.1.20
port: 80
username: root
password: your_password
name: gigablue
Found the time to implement this in node-red. Thanks to your fantastic guide its working now
The function either returns 1 if a timer is active or 0 if no timer is found.
This is a screenshot of the flow for everyone interested:
Hey, its me again.
I thought it would be a good idea to update the component from github but now i cannot get it to work anymore. I removed the old file and copied both folders and the single enigma.py
2018-12-04 16:06:56 ERROR (MainThread) [homeassistant.setup] Error during setup of component enigma Traceback (most recent call last): File “/usr/local/lib/python3.6/site-packages/homeassistant/setup.py”, line 145, in _async_setup_component hass, processed_config) File “/config/custom_components/enigma.py”, line 91, in async_setup configured_devices = config[DOMAIN].get(CONF_DEVICES) KeyError: ‘enigma’
2018-12-04 16:06:56 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of media_player.enigma. Setup failed for dependencies: enigma
2018-12-04 16:06:56 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform media_player.enigma: Could not set up all dependencies.`
- platform: enigma
devices:
- host: 192.168.x.x
port: 80
name: Vuplus
icon: mdi:satellite-variant
timeout: 20
username: root
password: 'xxx'
Can anyone help me?
Check the indentation :
enigma:
devices:
- host: 192.168.x.x
port: 80
name: Vuplus
icon: mdi:satellite-variant
timeout: 20
username: root
password: 'xxx'
Also guarantee you add the right enigma.py files in the right place.
custom_components
├── enigma.py
├── media_player
│ ├── enigma.py
├── notify
│ ├── enigma.py
Could it be, that i cannot use this with my existing splitted config?
This is the hole yaml:
https://hastebin.com/raw/ereyoronel
The part in the middle is the old config.
This is the error message:
Error loading /config/configuration.yaml: while parsing a block collection in "/config/includes/media_player/living_room.yaml", line 1, column 1 expected <block end>, but found '?' in "/config/includes/media_player/living_room.yaml", line 23, column 1
Your identation is wrong. Please post your config and log on pastebin.ca and post the link here.