Enigma2 receivers integration

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?

1 Like

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

2 Likes

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 :slight_smile:

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:

  1. 2018-11-29 12:51:13 INFO (MainThread) [homeassistant.components.http.view] Serving /states to 192.168.1.214 (auth: False)

  2. 2018-11-29 12:51:13 INFO (MainThread) [homeassistant.components.http.view] Serving /api/websocket to 192.168.1.214 (auth: False)

  3. 2018-11-29 12:51:14 INFO (MainThread) [homeassistant.components.http.view] Serving /auth/token to 192.168.1.214 (auth: False)

  4. 2018-11-29 12:51:15 INFO (MainThread) [homeassistant.components.http.view] Serving /api/websocket to 192.168.1.214 (auth: False)

  5. 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)

  6. 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.

  7. 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.

  8. 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.

  9. 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.

  10. 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.

  11. 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.

  12. 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.

  13. 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.

  14. 2018-11-29 12:51:26 INFO (MainThread) [homeassistant.components.websocket_api.http.connection.140426238678296] Connection closed by client

  15. 2018-11-29 12:51:26 INFO (MainThread) [homeassistant.components.websocket_api.http.connection.140426237641896] Connection closed by client

  16. 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.

  17. 2018-11-29 12:51:27 INFO (SyncWorker_1) [pyhap.hap_server] Stopping HAP server

  18. 2018-11-29 12:51:27 INFO (SyncWorker_5) [pyhap.accessory_driver] Closed the event loop

  19. Home Assistant attempting to restart.

  20. Restarting Home Assistant

  21. Config directory: /config

  22. 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.

  23. 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.

  24. 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.

  25. 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.

  26. 2018-11-29 12:51:28 INFO (MainThread) [homeassistant.loader] Loaded websocket_api from homeassistant.components.websocket_api

  27. 2018-11-29 12:51:28 INFO (MainThread) [homeassistant.bootstrap] Home Assistant core initialized

  28. 2018-11-29 12:51:28 INFO (MainThread) [homeassistant.loader] Loaded frontend from homeassistant.components.frontend

  29. 2018-11-29 12:51:28 INFO (MainThread) [homeassistant.loader] Loaded api from homeassistant.components.api

  30. 2018-11-29 12:51:28 INFO (MainThread) [homeassistant.loader] Loaded http from homeassistant.components.http

  31. 2018-11-29 12:51:28 INFO (MainThread) [homeassistant.loader] Loaded system_log from homeassistant.components.system_log

  32. 2018-11-29 12:51:28 INFO (MainThread) [homeassistant.loader] Loaded auth from homeassistant.components.auth

  33. 2018-11-29 12:51:28 INFO (MainThread) [homeassistant.loader] Loaded onboarding from homeassistant.components.onboarding

  34. 2018-11-29 12:51:28 INFO (MainThread) [homeassistant.loader] Loaded lovelace from homeassistant.components.lovelace

  35. 2018-11-29 12:51:28 INFO (MainThread) [homeassistant.loader] Loaded introduction from homeassistant.components.introduction

  36. 2018-11-29 12:51:28 INFO (MainThread) [homeassistant.setup] Setting up introduction

  37. 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:

    • Configuring Home Assistant:
  1. https://home-assistant.io/getting-started/configuration/
    • Available components:
  1. https://home-assistant.io/components/
    • Troubleshooting your configuration:
  1. https://home-assistant.io/getting-started/troubleshooting-configuration/
    • Getting help:
  1. https://home-assistant.io/help/
  • This message is generated by the introduction component. You can
  1. disable it in configuration.yaml.
  • 
    
  • 2018-11-29 12:51:28 INFO (MainThread) [homeassistant.loader] Loaded persistent_notification from homeassistant.components.persistent_notification

  1. 2018-11-29 12:51:28 INFO (MainThread) [homeassistant.setup] Setup of domain introduction took 0.0 seconds.

  2. 2018-11-29 12:51:28 INFO (MainThread) [homeassistant.loader] Loaded history from homeassistant.components.history

  3. 2018-11-29 12:51:28 INFO (MainThread) [homeassistant.loader] Loaded recorder from homeassistant.components.recorder

  4. 2018-11-29 12:51:28 INFO (MainThread) [homeassistant.setup] Setting up lovelace

  5. 2018-11-29 12:51:28 INFO (MainThread) [homeassistant.setup] Setup of domain lovelace took 0.0 seconds.

  6. 2018-11-29 12:51:28 INFO (MainThread) [homeassistant.setup] Setting up http

  7. 2018-11-29 12:51:28 INFO (MainThread) [homeassistant.setup] Setup of domain http took 0.0 seconds.

  8. 2018-11-29 12:51:28 INFO (MainThread) [homeassistant.setup] Setting up recorder

  9. 2018-11-29 12:51:28 INFO (MainThread) [homeassistant.setup] Setting up api

  10. 2018-11-29 12:51:28 INFO (MainThread) [homeassistant.setup] Setting up websocket_api

  11. 2018-11-29 12:51:28 INFO (MainThread) [homeassistant.setup] Setup of domain websocket_api took 0.0 seconds.

  12. 2018-11-29 12:51:28 INFO (MainThread) [homeassistant.setup] Setting up system_log

  13. 2018-11-29 12:51:28 INFO (MainThread) [homeassistant.setup] Setup of domain system_log took 0.0 seconds.

  14. 2018-11-29 12:51:28 INFO (MainThread) [homeassistant.setup] Setting up auth

  15. 2018-11-29 12:51:28 INFO (MainThread) [homeassistant.setup] Setup of domain auth took 0.0 seconds.

  16. 2018-11-29 12:51:28 INFO (MainThread) [homeassistant.setup] Setting up onboarding

  17. 2018-11-29 12:51:28 INFO (MainThread) [homeassistant.setup] Setup of domain api took 0.0 seconds.

  18. 2018-11-29 12:51:28 INFO (MainThread) [homeassistant.setup] Setup of domain onboarding took 0.0 seconds.

  19. 2018-11-29 12:51:28 INFO (MainThread) [homeassistant.setup] Setting up frontend

  20. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setup of domain frontend took 0.3 seconds.

  21. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setup of domain recorder took 0.4 seconds.

  22. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setting up history

  23. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setup of domain history took 0.0 seconds.

  24. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded apple_tv from homeassistant.components.apple_tv

  25. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setting up apple_tv

  26. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded binary_sensor from homeassistant.components.binary_sensor

  27. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded binary_sensor.ping from homeassistant.components.binary_sensor.ping

  28. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setting up binary_sensor

  29. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded discovery from homeassistant.components.discovery

  30. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setting up discovery

  31. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setup of domain discovery took 0.0 seconds.

  32. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded switch from homeassistant.components.switch

  33. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded group from homeassistant.components.group

  34. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded switch.command_line from homeassistant.components.switch.command_line

  35. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded script from homeassistant.components.script

  36. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded conversation from homeassistant.components.conversation

  37. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded hue from homeassistant.components.hue

  38. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setting up hue

  39. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setup of domain hue took 0.0 seconds.

  40. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded config from homeassistant.components.config

  41. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded automation from homeassistant.components.automation

  42. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded updater from homeassistant.components.updater

  43. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setting up updater

  44. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded logbook from homeassistant.components.logbook

  45. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded weather from homeassistant.components.weather

  46. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded weather.yweather from homeassistant.components.weather.yweather

  47. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setting up weather

  48. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded sensor from homeassistant.components.sensor

  49. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded sensor.yweather from homeassistant.components.sensor.yweather

  50. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded sensor.rest from homeassistant.components.sensor.rest

  51. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setting up sensor

  52. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded homekit from homeassistant.components.homekit

  53. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setting up homekit

  54. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setting up group

  55. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded tts from homeassistant.components.tts

  56. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded tts.google from homeassistant.components.tts.google

  57. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded media_player from homeassistant.components.media_player

  58. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded media_player.plex from homeassistant.components.media_player.plex

  59. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded media_player.enigma from custom_components.media_player.enigma

  60. 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.

  61. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded map from homeassistant.components.map

  62. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setting up map

  63. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setup of domain map took 0.0 seconds.

  64. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded cloud from homeassistant.components.cloud

  65. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.ping

  66. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.ping

  67. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.ping

  68. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.components.weather] Setting up weather.yweather

  69. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.rest

  70. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.rest

  71. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.rest

  72. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.yweather

  73. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.rest

  74. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.rest

  75. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.rest

  76. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.rest

  77. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.rest

  78. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setup of domain updater took 0.1 seconds.

  79. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded remote from homeassistant.components.remote

  80. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setup of domain apple_tv took 0.2 seconds.

  81. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setting up conversation

  82. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setup of domain conversation took 0.0 seconds.

  83. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setting up config

  84. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setting up logbook

  85. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setup of domain logbook took 0.0 seconds.

  86. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setting up tts

  87. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setting up media_player

  88. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setting up cloud

  89. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setup of domain cloud took 0.0 seconds.

  90. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded config.hassbian from homeassistant.components.config.hassbian

  91. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded config.automation from homeassistant.components.config.automation

  92. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded config.core from homeassistant.components.config.core

  93. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded config.script from homeassistant.components.config.script

  94. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded config.customize from homeassistant.components.config.customize

  95. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded config.auth from homeassistant.components.config.auth

  96. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded config.config_entries from homeassistant.components.config.config_entries

  97. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded config.device_registry from homeassistant.components.config.device_registry

  98. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded config.auth_provider_homeassistant from homeassistant.components.config.auth_provider_homeassistant

  99. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded config.entity_registry from homeassistant.components.config.entity_registry

  100. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded config.group from homeassistant.components.config.group

  101. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.components.media_player] Setting up media_player.enigma

  102. 2018-11-29 12:51:29 ERROR (MainThread) [homeassistant.components.media_player] Error while setting up platform enigma

  103. Traceback (most recent call last):

  104. File “/usr/src/app/homeassistant/helpers/entity_platform.py”, line 124, in _async_setup_platform

  105. task = async_create_setup_task()

  106. File “/usr/src/app/homeassistant/helpers/entity_platform.py”, line 89, in async_create_setup_task

  107. None, platform.setup_platform, hass, platform_config,

  108. AttributeError: module ‘custom_components.media_player.enigma’ has no attribute ‘setup_platform’

  109. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.components.media_player] Setting up media_player.plex

  110. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setup of domain config took 0.1 seconds.

  111. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setup of domain tts took 0.1 seconds.

  112. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setup of domain group took 0.2 seconds.

  113. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setting up switch

  114. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setting up script

  115. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setup of domain script took 0.0 seconds.

  116. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setting up automation

  117. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setting up remote

  118. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setup of domain remote took 0.0 seconds.

  119. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.components.switch] Setting up switch.command_line

  120. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded remote.apple_tv from homeassistant.components.remote.apple_tv

  121. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.components.remote] Setting up remote.apple_tv

  122. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setup of domain switch took 0.0 seconds.

  123. 2018-11-29 12:51:29 INFO (SyncWorker_16) [homeassistant.components.media_player.plex] Discovery configuration done (no token needed)

  124. 2018-11-29 12:51:29 INFO (SyncWorker_16) [homeassistant.components.media_player.plex] Connected to: http://192.168.1.50:32400

  125. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded light from homeassistant.components.light

  126. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setting up light

  127. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setup of domain light took 0.0 seconds.

  128. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded light.hue from homeassistant.components.light.hue

  129. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.components.light] Setting up light.hue

  130. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setup of domain media_player took 0.2 seconds.

  131. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.loader] Loaded media_player.apple_tv from homeassistant.components.media_player.apple_tv

  132. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.components.media_player] Setting up media_player.apple_tv

  133. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setup of domain automation took 0.1 seconds.

  134. 2018-11-29 12:51:29 INFO (MainThread) [homeassistant.setup] Setup of domain homekit took 0.3 seconds.

  135. 2018-11-29 12:51:30 INFO (MainThread) [homeassistant.setup] Setup of domain weather took 1.4 seconds.

  136. 2018-11-29 12:51:30 INFO (MainThread) [homeassistant.setup] Setup of domain sensor took 1.4 seconds.

  137. 2018-11-29 12:51:34 INFO (MainThread) [homeassistant.setup] Setup of domain binary_sensor took 5.3 seconds.

  138. 2018-11-29 12:51:34 INFO (MainThread) [homeassistant.bootstrap] Home Assistant initialized in 6.00s

  139. 2018-11-29 12:51:34 INFO (MainThread) [homeassistant.core] Starting Home Assistant

  140. 2018-11-29 12:51:34 INFO (MainThread) [homeassistant.core] Timer:starting

  141. 2018-11-29 12:51:34 INFO (SyncWorker_10) [pyhap.accessory_driver] Loading Accessory state from /config/.homekit.state

  142. 2018-11-29 12:51:34 INFO (SyncWorker_31) [pyhap.accessory_driver] Starting the event loop

  143. 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.

  144. 2018-11-29 12:51:35 INFO (Thread-3) [pyhap.hap_server] Got connection with (‘192.168.1.240’, 50759).

  145. 2018-11-29 12:51:35 INFO (Thread-4) [pyhap.hap_server] 192.168.1.240 - “POST /pair-verify HTTP/1.1” 200 -

  146. 2018-11-29 12:51:35 INFO (Thread-4) [pyhap.hap_server] 192.168.1.240 - “POST /pair-verify HTTP/1.1” 200 -

  147. 2018-11-29 12:51:35 INFO (Thread-4) [pyhap.hap_server] 192.168.1.240 - “GET /accessories HTTP/1.1” 200 -

  148. 2018-11-29 12:51:35 INFO (Thread-3) [pyhap.hap_server] Got connection with (‘192.168.1.248’, 49635).

  149. 2018-11-29 12:51:35 INFO (Thread-3) [pyhap.hap_server] Got connection with (‘192.168.1.237’, 60538).

  150. 2018-11-29 12:51:35 INFO (Thread-5) [pyhap.hap_server] 192.168.1.248 - “POST /pair-verify HTTP/1.1” 200 -

  151. 2018-11-29 12:51:35 INFO (Thread-6) [pyhap.hap_server] 192.168.1.237 - “POST /pair-verify HTTP/1.1” 200 -

  152. 2018-11-29 12:51:35 INFO (Thread-5) [pyhap.hap_server] 192.168.1.248 - “POST /pair-verify HTTP/1.1” 200 -

  153. 2018-11-29 12:51:35 INFO (Thread-5) [pyhap.hap_server] 192.168.1.248 - “GET /accessories HTTP/1.1” 200 -

  154. 2018-11-29 12:51:35 INFO (Thread-6) [pyhap.hap_server] 192.168.1.237 - “POST /pair-verify HTTP/1.1” 200 -

  155. 2018-11-29 12:51:35 INFO (Thread-6) [pyhap.hap_server] 192.168.1.237 - “GET /accessories HTTP/1.1” 200 -

  156. 2018-11-29 12:51:35 INFO (Thread-4) [pyhap.hap_server] 192.168.1.240 - “PUT /characteristics HTTP/1.1” 207 -

  157. 2018-11-29 12:51:35 INFO (Thread-4) [pyhap.hap_server] 192.168.1.240 - “PUT /characteristics HTTP/1.1” 207 -

  158. 2018-11-29 12:51:36 INFO (Thread-4) [pyhap.hap_server] 192.168.1.240 - “PUT /characteristics HTTP/1.1” 207 -

  159. 2018-11-29 12:51:36 INFO (Thread-5) [pyhap.hap_server] 192.168.1.248 - “PUT /characteristics HTTP/1.1” 207 -

  160. 2018-11-29 12:51:36 INFO (Thread-5) [pyhap.hap_server] 192.168.1.248 - “PUT /characteristics HTTP/1.1” 207 -

  161. 2018-11-29 12:51:36 INFO (MainThread) [homeassistant.components.http.view] Serving /api/websocket to 192.168.1.214 (auth: False)

  162. 2018-11-29 12:51:36 INFO (MainThread) [homeassistant.loader] Loaded lifx from homeassistant.components.lifx

  163. 2018-11-29 12:51:36 INFO (MainThread) [homeassistant.loader] Loaded nest from homeassistant.components.nest

  164. 2018-11-29 12:51:36 INFO (MainThread) [homeassistant.loader] Loaded upnp from homeassistant.components.upnp

  165. 2018-11-29 12:51:36 INFO (MainThread) [homeassistant.loader] Loaded deconz from homeassistant.components.deconz

  166. 2018-11-29 12:51:36 INFO (MainThread) [homeassistant.loader] Loaded cast from homeassistant.components.cast

  167. 2018-11-29 12:51:36 INFO (MainThread) [homeassistant.loader] Loaded zwave from homeassistant.components.zwave

  168. 2018-11-29 12:51:36 INFO (MainThread) [homeassistant.loader] Loaded sonos from homeassistant.components.sonos

  169. 2018-11-29 12:51:36 INFO (MainThread) [homeassistant.loader] Loaded simplisafe from homeassistant.components.simplisafe

  170. 2018-11-29 12:51:36 INFO (MainThread) [homeassistant.loader] Loaded smhi from homeassistant.components.smhi

  171. 2018-11-29 12:51:36 INFO (MainThread) [homeassistant.loader] Loaded zone from homeassistant.components.zone

  172. 2018-11-29 12:51:36 INFO (MainThread) [homeassistant.loader] Loaded homematicip_cloud from homeassistant.components.homematicip_cloud

  173. 2018-11-29 12:51:36 INFO (MainThread) [homeassistant.loader] Loaded hangouts from homeassistant.components.hangouts

  174. 2018-11-29 12:51:36 INFO (MainThread) [homeassistant.loader] Loaded dialogflow from homeassistant.components.dialogflow

  175. 2018-11-29 12:51:36 INFO (MainThread) [homeassistant.loader] Loaded mqtt from homeassistant.components.mqtt

  176. 2018-11-29 12:51:36 INFO (MainThread) [homeassistant.loader] Loaded ios from homeassistant.components.ios

  177. 2018-11-29 12:51:36 INFO (MainThread) [homeassistant.loader] Loaded ifttt from homeassistant.components.ifttt

  178. 2018-11-29 12:51:36 INFO (MainThread) [homeassistant.loader] Loaded twilio from homeassistant.components.twilio

  179. 2018-11-29 12:51:36 INFO (MainThread) [homeassistant.loader] Loaded mailgun from homeassistant.components.mailgun

  180. 2018-11-29 12:51:36 INFO (MainThread) [homeassistant.loader] Loaded openuv from homeassistant.components.openuv

  181. 2018-11-29 12:51:36 INFO (MainThread) [homeassistant.loader] Loaded tradfri from homeassistant.components.tradfri

  182. 2018-11-29 12:51:36 INFO (MainThread) [homeassistant.loader] Loaded unifi from homeassistant.components.unifi

  183. 2018-11-29 12:51:36 INFO (MainThread) [homeassistant.components.http.view] Serving /api/websocket to 192.168.1.214 (auth: False)

  184. 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’}

  185. 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’}

  186. 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’}

  187. 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’}

  188. 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’}

  189. 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’}

  190. 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’}

  191. 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’}

  192. 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’}

  193. 2018-11-29 12:51:52 INFO (MainThread) [homeassistant.components.media_player] Setting up media_player.plex

  194. 2018-11-29 12:51:52 INFO (SyncWorker_38) [homeassistant.components.media_player.plex] Discovery configuration done (no token needed)

  195. 2018-11-29 12:51:52 INFO (SyncWorker_38) [homeassistant.components.media_player.plex] Connected to: http://192.168.1.50:32400

Thanks!

@gerardojaime

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 of the location where Home Assistant is running

name: laloHome

Location required to calculate the time the sun rises and sets

latitude: 36.664
longitude: -4.5614

Impacts weather/sunrise data (altitude above sea level in meters)

elevation: 0

metric for Metric, imperial for Imperial

unit_system: metric

Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones

time_zone: Europe/Madrid

Customization file

customize: !include customize.yaml

Show links to resources in log and frontend

introduction:

Enables the frontend

frontend:

Enables configuration UI

config:

Uncomment this if you are using SSL/TLS, running in Docker container, etc.

http:

base_url: example.duckdns.org:8123

Checks for available updates

Note: This component will send some information about your system to

the developers to assist with development of Home Assistant.

For more information, please see:

https://home-assistant.io/blog/2016/10/25/explaining-the-updater/

updater:

Optional, allows Home Assistant developers to focus on popular components.

include_used_components: true

Discover some devices automatically

discovery:

Allows you to issue voice commands from the frontend in enabled browsers

conversation:

Enables support for tracking state changes over time

history:

View all events in a logbook

logbook:

Enables a map showing the location of tracked devices

map:

El Tiempo, en habitación jardín

weather:

  • platform: yweather
    name: El Tiempo
    woeid: 20080850
    forecast: 5
    monitored_conditions:
    • weather
    • weather_current
    • temp_min
    • temp_max
    • wind_speed
    • pressure
    • visibility
    • humidity
    • temperature

Media Players

apple_tv:

  • host: 192.168.1.248
    name: AppleTV
    login_id: 00000000-11b1-20e6-df41-5e86449545c7
    credentials: 6F69107971F8927B:40D50E000FE2713F683A769D3B74ECC8BD893C0FC7319FD19E63583D1A451346
    start_off: true

media_player:

  • platform: plex

enigma:
devices:
- host: 192.168.1.6
port: 80
name: vu
timeout: 20
username: root
password: lalo

Text to speech

tts:

  • platform: google

Cloud

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!.

@cinzas

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.

1 Like

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

  1. Get the current date time in ‘linux’ format, i.e. seconds since epoch - date +%s
  2. Call the url with wget and using something like xmllint to get the e2startprepare time for each timer
  3. Subtract curr date from timer date and if the value is > 0 but less then 60s * 60m * 24h = 86400secs then you’ve got a timer in the next 24 hrs

In node red

  • http request
  • xml to convert to JSON
  • function to enumerate the timers - something like this:

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.

1 Like

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.

1 Like

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 :heart_eyes:
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:

1 Like

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.