Openhomedevice not recognized

Hi all,

Version 0.39 brought support for openhome devices such as Linn amplifiers (https://home-assistant.io/components/media_player.openhome/). I’d like to control my Linn Majik DSM so I added the suggested lines from the documentation to my config:

discovery:
media_player:
  - platform: openhome

Unfortunately, the amp doesn’t get recognized by the discovery component, or at least it doesn’t say so in the logs, whereas I can see other devices (such as hue) being discovered and added.

As there’s no manual way of defining the amp’s IP, do you have any suggestions on how I could add it manually or how to figure out what’s wrong? You can find my configuration on GitHub. At the moment I’m using homeassistant 0.40.2, netdisco 0.9.2 and openhomedevice 0.2.1.

Thanks a lot in advance!

Hi Benjamin,

If you could send me your log files that would be great. Alternatively if you are able to run netdisco by itself and send the output to me that would also be useful.

What version of Davaar are you running on your DSM?

Barry

Hi Barry,

This is the output of python3 -m netdisco dump

Zeroconf
[record[txt,in-unique,nas._http._tcp.local.,4500/4478.5262119140625,b'\x00'],
 record[srv,in-unique,nas._http._tcp.local.,120/98.52553247070313,nas.local.:80],
 192.168.1.4,
 192.168.1.6,
 record[txt,in-unique,snuggery:Majik DSM._http._tcp.local.,4500/4478.515046875,b'9path=/']...,
 record[srv,in-unique,snuggery:Majik DSM._http._tcp.local.,120/98.51471533203124,linn-21f1cf.local.:55178],
 record[ptr,in,_http._tcp.local.,4500/4478.5129375,snuggery:Majik DSM._http._tcp.local.],
 record[ptr,in,_http._tcp.local.,4500/4478.520345703125,nas._http._tcp.local.]]

SSDP
[]

GDM
[]

LMS
[]

Tellstick
[]

Philips Hue N-UPnP
[('hue (192.168.1.22)', 'http://192.168.1.22:80/')]


Discovered devices:
philips_hue [('hue (192.168.1.22)', 'http://192.168.1.22:80/')]

Discovered 1 devices

As it seems the amplifier gets discovered, I also quickly shortened my home-assistant configuration to a bare minimum, set the log level to debug and got this:

-- Logs begin at Mit 2017-03-01 02:56:28 CET. --
Mar 23 22:18:33 hass hass[25010]: 17-03-23 22:18:33 INFO (MainThread) [homeassistant.components.notify] Setting up notify.pushover
Mar 23 22:18:33 hass hass[25010]: 17-03-23 22:18:33 INFO (MainThread) [homeassistant.components.media_player] Setting up media_player.openhome
Mar 23 22:18:33 hass hass[25010]: 17-03-23 22:18:33 INFO (MainThread) [homeassistant.components.media_player] Setting up media_player.kodi
Mar 23 22:18:34 hass hass[25010]: 17-03-23 22:18:34 INFO (MainThread) [homeassistant.bootstrap] Home Assistant initialized in 14.65s
Mar 23 22:19:00 hass hass[25010]: 17-03-23 22:19:00 INFO (MainThread) [homeassistant.components.discovery] Found new service: philips_hue ('hue (192.168.1.22)', 'http://192.168.1.22:80/')
Mar 23 22:19:00 hass hass[25010]: 17-03-23 22:19:00 INFO (MainThread) [homeassistant.components.light] Setting up light.hue
Mar 23 22:21:49 hass systemd[1]: Stopping Home Assistant...
Mar 23 22:21:49 hass hass[25010]: Config directory: /opt/hass
Mar 23 22:21:50 hass systemd[1]: Stopped Home Assistant.
Mar 23 22:21:50 hass systemd[1]: Started Home Assistant.
Mar 23 22:22:00 hass hass[25283]: 17-03-23 22:22:00 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=homeassistant, service=turn_off>
Mar 23 22:22:00 hass hass[25283]: 17-03-23 22:22:00 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=homeassistant, service=turn_on>
Mar 23 22:22:00 hass hass[25283]: 17-03-23 22:22:00 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=homeassistant, service=toggle>
Mar 23 22:22:00 hass hass[25283]: 17-03-23 22:22:00 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=homeassistant, service=stop>
Mar 23 22:22:00 hass hass[25283]: 17-03-23 22:22:00 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=homeassistant, service=restart>
Mar 23 22:22:00 hass hass[25283]: 17-03-23 22:22:00 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=homeassistant, service=check_config>
Mar 23 22:22:00 hass hass[25283]: 17-03-23 22:22:00 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=homeassistant, service=reload_core_config>
Mar 23 22:22:01 hass hass[25283]: 17-03-23 22:22:01 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=persistent_notification, service=create>
Mar 23 22:22:01 hass hass[25283]: 17-03-23 22:22:01 INFO (MainThread) [homeassistant.bootstrap] Home Assistant core initialized
Mar 23 22:22:01 hass hass[25283]: 17-03-23 22:22:01 INFO (MainThread) [homeassistant.loader] Loaded logger from homeassistant.components.logger
Mar 23 22:22:01 hass hass[25283]: 17-03-23 22:22:01 INFO (MainThread) [homeassistant.setup] Setting up logger
Mar 23 22:22:01 hass hass[25283]: 17-03-23 22:22:01 INFO (MainThread) [homeassistant.loader] Loaded recorder from homeassistant.components.recorder
Mar 23 22:22:02 hass hass[25283]: 17-03-23 22:22:02 INFO (MainThread) [homeassistant.setup] Setting up recorder
Mar 23 22:22:02 hass hass[25283]: 17-03-23 22:22:02 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=logger, service=set_level>
Mar 23 22:22:02 hass hass[25283]: 17-03-23 22:22:02 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=logger>
Mar 23 22:22:04 hass hass[25283]: 17-03-23 22:22:04 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=recorder>
Mar 23 22:22:05 hass hass[25283]: 17-03-23 22:22:05 INFO (MainThread) [homeassistant.loader] Loaded media_player from homeassistant.components.media_player
Mar 23 22:22:05 hass hass[25283]: 17-03-23 22:22:05 INFO (MainThread) [homeassistant.loader] Loaded http from homeassistant.components.http
Mar 23 22:22:05 hass hass[25283]: 17-03-23 22:22:05 INFO (MainThread) [homeassistant.loader] Loaded media_player.openhome from homeassistant.components.media_player.openhome
Mar 23 22:22:05 hass hass[25283]: 17-03-23 22:22:05 INFO (MainThread) [homeassistant.loader] Loaded history from homeassistant.components.history
Mar 23 22:22:05 hass hass[25283]: 17-03-23 22:22:05 INFO (MainThread) [homeassistant.loader] Loaded frontend from homeassistant.components.frontend
Mar 23 22:22:05 hass hass[25283]: 17-03-23 22:22:05 INFO (MainThread) [homeassistant.loader] Loaded api from homeassistant.components.api
Mar 23 22:22:05 hass hass[25283]: 17-03-23 22:22:05 INFO (MainThread) [homeassistant.loader] Loaded websocket_api from homeassistant.components.websocket_api
Mar 23 22:22:05 hass hass[25283]: 17-03-23 22:22:05 INFO (MainThread) [homeassistant.loader] Loaded discovery from homeassistant.components.discovery
Mar 23 22:22:05 hass hass[25283]: 17-03-23 22:22:05 INFO (MainThread) [homeassistant.loader] Loaded updater from homeassistant.components.updater
Mar 23 22:22:05 hass hass[25283]: 17-03-23 22:22:05 INFO (MainThread) [homeassistant.setup] Setting up discovery
Mar 23 22:22:05 hass hass[25283]: 17-03-23 22:22:05 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=discovery>
Mar 23 22:22:05 hass hass[25283]: 17-03-23 22:22:05 INFO (MainThread) [homeassistant.setup] Setting up updater
Mar 23 22:22:06 hass hass[25283]: 17-03-23 22:22:06 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=updater>
Mar 23 22:22:06 hass hass[25283]: 17-03-23 22:22:06 INFO (MainThread) [homeassistant.setup] Setting up http
Mar 23 22:22:06 hass hass[25283]: 17-03-23 22:22:06 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=http>
Mar 23 22:22:06 hass hass[25283]: 17-03-23 22:22:06 INFO (MainThread) [homeassistant.setup] Setting up media_player
Mar 23 22:22:06 hass hass[25283]: 17-03-23 22:22:06 INFO (MainThread) [homeassistant.setup] Setting up history
Mar 23 22:22:06 hass hass[25283]: 17-03-23 22:22:06 INFO (MainThread) [homeassistant.setup] Setting up api
Mar 23 22:22:06 hass hass[25283]: 17-03-23 22:22:06 INFO (MainThread) [homeassistant.setup] Setting up websocket_api
Mar 23 22:22:06 hass hass[25283]: 17-03-23 22:22:06 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=websocket_api>
Mar 23 22:22:06 hass hass[25283]: 17-03-23 22:22:06 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=history>
Mar 23 22:22:06 hass hass[25283]: 17-03-23 22:22:06 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=api>
Mar 23 22:22:06 hass hass[25283]: 17-03-23 22:22:06 INFO (MainThread) [homeassistant.setup] Setting up frontend
Mar 23 22:22:06 hass hass[25283]: 17-03-23 22:22:06 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=frontend>
Mar 23 22:22:06 hass hass[25283]: 17-03-23 22:22:06 INFO (MainThread) [homeassistant.components.media_player] Setting up media_player.openhome
Mar 23 22:22:07 hass hass[25283]: 17-03-23 22:22:07 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=media_player, service=select_source>
Mar 23 22:22:07 hass hass[25283]: 17-03-23 22:22:07 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=media_player, service=volume_up>
Mar 23 22:22:07 hass hass[25283]: 17-03-23 22:22:07 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=media_player, service=media_play_pause>
Mar 23 22:22:07 hass hass[25283]: 17-03-23 22:22:07 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=media_player, service=volume_mute>
Mar 23 22:22:07 hass hass[25283]: 17-03-23 22:22:07 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=media_player, service=media_play>
Mar 23 22:22:07 hass hass[25283]: 17-03-23 22:22:07 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=media_player, service=turn_on>
Mar 23 22:22:07 hass hass[25283]: 17-03-23 22:22:07 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=media_player, service=volume_set>
Mar 23 22:22:07 hass hass[25283]: 17-03-23 22:22:07 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=media_player, service=play_media>
Mar 23 22:22:07 hass hass[25283]: 17-03-23 22:22:07 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=media_player, service=media_next_track>
Mar 23 22:22:07 hass hass[25283]: 17-03-23 22:22:07 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=media_player, service=turn_off>
Mar 23 22:22:07 hass hass[25283]: 17-03-23 22:22:07 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=media_player, service=media_pause>
Mar 23 22:22:07 hass hass[25283]: 17-03-23 22:22:07 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=media_player, service=clear_playlist>
Mar 23 22:22:07 hass hass[25283]: 17-03-23 22:22:07 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=media_player, service=volume_down>
Mar 23 22:22:07 hass hass[25283]: 17-03-23 22:22:07 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=media_player, service=media_previous_track>
Mar 23 22:22:07 hass hass[25283]: 17-03-23 22:22:07 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=media_player, service=media_seek>
Mar 23 22:22:07 hass hass[25283]: 17-03-23 22:22:07 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=media_player, service=media_stop>
Mar 23 22:22:07 hass hass[25283]: 17-03-23 22:22:07 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=media_player, service=toggle>
Mar 23 22:22:07 hass hass[25283]: 17-03-23 22:22:07 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=media_player>
Mar 23 22:22:07 hass hass[25283]: 17-03-23 22:22:07 INFO (MainThread) [homeassistant.bootstrap] Home Assistant initialized in 7.17s
Mar 23 22:22:07 hass hass[25283]: 17-03-23 22:22:07 INFO (MainThread) [homeassistant.core] Starting Home Assistant core loop
Mar 23 22:22:07 hass hass[25283]: 17-03-23 22:22:07 INFO (MainThread) [homeassistant.core] Starting Home Assistant
Mar 23 22:22:07 hass hass[25283]: 17-03-23 22:22:07 INFO (MainThread) [homeassistant.core] Bus:Handling <Event homeassistant_start[L]>
Mar 23 22:22:07 hass hass[25283]: 17-03-23 22:22:07 INFO (MainThread) [homeassistant.core] Timer:starting
Mar 23 22:22:09 hass hass[25283]: 17-03-23 22:22:09 INFO (MainThread) [homeassistant.components.http] Serving /api/websocket to 192.168.1.192 (auth: True)
Mar 23 22:22:09 hass hass[25283]: 17-03-23 22:22:09 DEBUG (MainThread) [homeassistant.components.websocket_api] WS 2923197040: Connected 
Mar 23 22:22:09 hass hass[25283]: 17-03-23 22:22:09 DEBUG (MainThread) [homeassistant.components.websocket_api] WS 2923197040: Sending {'ha_version': '0.40.2', 'type': 'auth_ok'}
Mar 23 22:22:09 hass hass[25283]: 17-03-23 22:22:09 DEBUG (MainThread) [homeassistant.components.websocket_api] WS 2923197040: Received {'id': 2, 'type': 'subscribe_events', 'event_type': 'state_changed'}
Mar 23 22:22:09 hass hass[25283]: 17-03-23 22:22:09 DEBUG (MainThread) [homeassistant.components.websocket_api] WS 2923197040: Sending {'id': 2, 'type': 'result', 'result': None, 'success': True}
Mar 23 22:22:09 hass hass[25283]: 17-03-23 22:22:09 DEBUG (MainThread) [homeassistant.components.websocket_api] WS 2923197040: Received {'id': 3, 'type': 'subscribe_events', 'event_type': 'component_loaded'}
Mar 23 22:22:09 hass hass[25283]: 17-03-23 22:22:09 DEBUG (MainThread) [homeassistant.components.websocket_api] WS 2923197040: Sending {'id': 3, 'type': 'result', 'result': None, 'success': True}
Mar 23 22:22:09 hass hass[25283]: 17-03-23 22:22:09 DEBUG (MainThread) [homeassistant.components.websocket_api] WS 2923197040: Received {'id': 4, 'type': 'subscribe_events', 'event_type': 'service_registered'}
Mar 23 22:22:09 hass hass[25283]: 17-03-23 22:22:09 DEBUG (MainThread) [homeassistant.components.websocket_api] WS 2923197040: Sending {'id': 4, 'type': 'result', 'result': None, 'success': True}
Mar 23 22:22:09 hass hass[25283]: 17-03-23 22:22:09 DEBUG (MainThread) [homeassistant.components.websocket_api] WS 2923197040: Received {'id': 5, 'type': 'get_states'}
Mar 23 22:22:09 hass hass[25283]: 17-03-23 22:22:09 DEBUG (MainThread) [homeassistant.components.websocket_api] WS 2923197040: Sending {'id': 5, 'type': 'result', 'result': [], 'success': True}
Mar 23 22:22:09 hass hass[25283]: 17-03-23 22:22:09 DEBUG (MainThread) [homeassistant.components.websocket_api] WS 2923197040: Received {'id': 6, 'type': 'get_config'}
Mar 23 22:22:09 hass hass[25283]: 17-03-23 22:22:09 DEBUG (MainThread) [homeassistant.components.websocket_api] WS 2923197040: Sending {'id': 6, 'type': 'result', 'result': {'location_name': 'home', 'components': {'media_player', 'history', 'frontend', 'media_player.openhome', 'api', 'websocket_api', 'discovery', 'http', 'logger', 'updater', 'recorder'}, 'config_dir': '/opt/hass', 'version': '0.40.2', 'time_zone': 'Europe/Zurich', 'longitude': xxxxxx, 'elevation': x, 'unit_system': {'temperature': '°C', 'volume': 'L', 'mass': 'g', 'length': 'km'}, 'latitude': xxxxxx}, 'success': True}
Mar 23 22:22:09 hass hass[25283]: 17-03-23 22:22:09 DEBUG (MainThread) [homeassistant.components.websocket_api] WS 2923197040: Received {'id': 7, 'type': 'get_panels'}
Mar 23 22:22:09 hass hass[25283]: 17-03-23 22:22:09 DEBUG (MainThread) [homeassistant.components.websocket_api] WS 2923197040: Sending {'id': 7, 'type': 'result', 'result': {'dev-state': {'component_name': 'dev-state', 'url_path': 'dev-state', 'url': '/frontend/panels/dev-state-90f3bede9602241552ef7bb7958198c6.html'}, 'map': {'component_name': 'map', 'title': 'Map', 'url': '/frontend/panels/map-e10704a3469e44d1714eac9ed8e4b6a0.html', 'url_path': 'map', 'icon': 'mdi:account-location'}, 'dev-template': {'component_name': 'dev-template', 'url_path': 'dev-template', 'url': '/frontend/panels/dev-template-c249a4fc18a3a6994de3d6330cfe6cbb.html'}, 'dev-info': {'component_name': 'dev-info', 'url_path': 'dev-info', 'url': '/frontend/panels/dev-info-61610e015a411cfc84edd2c4d489e71d.html'}, 'history': {'component_name': 'history', 'title': 'History', 'url': '/frontend/panels/history-fdaa4d2402d49d4c8bd64a1708ab7a50.html', 'url_path': 'history', 'icon': 'mdi:poll-box'}, 'dev-service': {'component_name': 'dev-service', 'url_path': 'dev-service', 'url': '/frontend/panels/dev-service-153aad076f98bbd626466bac50986874.html'}, 'dev-event': {'component_name': 'dev-event', 'url_path': 'dev-event', 'url': '/frontend/panels/dev-event-91347dedf3b4fa9b49ccf4c0a28a03c4.html'}}, 'success': True}
Mar 23 22:22:09 hass hass[25283]: 17-03-23 22:22:09 DEBUG (MainThread) [homeassistant.components.websocket_api] WS 2923197040: Received {'id': 8, 'type': 'get_services'}
Mar 23 22:22:09 hass hass[25283]: 17-03-23 22:22:09 DEBUG (MainThread) [homeassistant.components.websocket_api] WS 2923197040: Sending {'id': 8, 'type': 'result', 'result': {'media_player': {'select_source': {'fields': OrderedDict([('entity_id', OrderedDict([('description', 'Name(s) of entites to change source on'), ('example', 'media_player.media_player.txnr535_0009b0d81f82')])), ('source', OrderedDict([('description', 'Name of the source to switch to. Platform dependent.'), ('example', 'video1')]))]), 'description': 'Send the media player the command to change input source.'}, 'volume_up': {'fields': OrderedDict([('entity_id', OrderedDict([('description', 'Name(s) of entities to turn volume up on'), ('example', 'media_player.living_room_sonos')]))]), 'description': 'Turn a media player volume up'}, 'media_play_pause': {'fields': OrderedDict([('entity_id', OrderedDict([('description', 'Name(s) of entities to toggle play/pause state on'), ('example', 'media_player.living_room_sonos')]))]), 'description': 'Toggle media player play/pause state'}, 'volume_mute': {'fields': OrderedDict([('entity_id', OrderedDict([('description', 'Name(s) of entities to mute'), ('example', 'media_player.living_room_sonos')])), ('is_volume_muted', OrderedDict([('description', 'True/false for mute/unmute'), ('example', True)]))]), 'description': "Mute a media player's volume"}, 'media_play': {'fields': OrderedDict([('entity_id', OrderedDict([('description', 'Name(s) of entities to play on'), ('example', 'media_player.living_room_sonos')]))]), 'description': 'Send the media player the command for play.'}, 'turn_on': {'fields': OrderedDict([('entity_id', OrderedDict([('description', 'Name(s) of entities to turn on'), ('example', 'media_player.living_room_chromecast')]))]), 'description': 'Turn a media player power on'}, 'volume_set': {'fields': OrderedDict([('entity_id', OrderedDict([('description', 'Name(s) of entities to set volume level on'), ('example', 'media_player.living_room_sonos')])), ('volume_level', OrderedDict([('description', 'Volume level to set as flo
Mar 23 22:22:09 hass hass[25283]: at'), ('example', 0.6)]))]), 'description': "Set a media player's volume level"}, 'play_media': {'fields': OrderedDict([('entity_id', OrderedDict([('description', 'Name(s) of entities to seek media on'), ('example', 'media_player.living_room_chromecast')])), ('media_content_id', OrderedDict([('description', 'The ID of the content to play. Platform dependent.'), ('example', 'https://hass.io/images/cast/splash.png')])), ('media_content_type', OrderedDict([('description', 'The type of the content to play. Must be one of MUSIC, TVSHOW, VIDEO, EPISODE, CHANNEL or PLAYLIST'), ('example', 'MUSIC')]))]), 'description': 'Send the media player the command for playing media.'}, 'media_next_track': {'fields': OrderedDict([('entity_id', OrderedDict([('description', 'Name(s) of entities to send next track command to'), ('example', 'media_player.living_room_sonos')]))]), 'description': 'Send the media player the command for next track.'}, 'turn_off': {'fields': OrderedDict([('entity_id', OrderedDict([('description', 'Name(s) of entities to turn off'), ('example', 'media_player.living_room_chromecast')]))]), 'description': 'Turn a media player power off'}, 'media_pause': {'fields': OrderedDict([('entity_id', OrderedDict([('description', 'Name(s) of entities to pause on'), ('example', 'media_player.living_room_sonos')]))]), 'description': 'Send the media player the command for pause.'}, 'clear_playlist': {'fields': OrderedDict([('entity_id', OrderedDict([('description', 'Name(s) of entites to change source on'), ('example', 'media_player.living_room_chromecast')]))]), 'description': 'Send the media player the command to clear players playlist.'}, 'volume_down': {'fields': OrderedDict([('entity_id', OrderedDict([('description', 'Name(s) of entities to turn volume down on'), ('example', 'media_player.living_room_sonos')]))]), 'description': 'Turn a media player volume down'}, 'media_previous_track': {'fields': OrderedDict([('entity_id', OrderedDict([('description', 'Name(s) of entities to send previous track command to'),
Mar 23 22:22:09 hass hass[25283]:  ('example', 'media_player.living_room_sonos')]))]), 'description': 'Send the media player the command for previous track.'}, 'media_seek': {'fields': OrderedDict([('entity_id', OrderedDict([('description', 'Name(s) of entities to seek media on'), ('example', 'media_player.living_room_chromecast')])), ('seek_position', OrderedDict([('description', 'Position to seek to. The format is platform dependent.'), ('example', 100)]))]), 'description': 'Send the media player the command to seek in current playing media.'}, 'media_stop': {'fields': OrderedDict([('entity_id', OrderedDict([('description', 'Name(s) of entities to stop on'), ('example', 'media_player.living_room_sonos')]))]), 'description': 'Send the media player the stop command.'}, 'toggle': {'fields': OrderedDict([('entity_id', OrderedDict([('description', 'Name(s) of entities to toggle'), ('example', 'media_player.living_room_chromecast')]))]), 'description': 'Toggles a media player power state'}}, 'persistent_notification': {'create': {'fields': OrderedDict([('message', OrderedDict([('description', 'Message body of the notification. [Templates accepted]'), ('example', 'Please check your configuration.yaml.')])), ('title', OrderedDict([('description', 'Optional title for your notification. [Optional, Templates accepted]'), ('example', 'Test notification')])), ('notification_id', OrderedDict([('description', 'Target ID of the notification, will replace a notification with the same Id. [Optional]'), ('example', 1234)]))]), 'description': 'Show a notification in the frontend'}}, 'logger': {'set_level': {'fields': {}, 'description': 'Set log level for components.'}}, 'homeassistant': {'restart': {'fields': {}, 'description': ''}, 'turn_off': {'fields': {}, 'description': ''}, 'check_config': {'fields': {}, 'description': ''}, 'turn_on': {'fields': {}, 'description': ''}, 'stop': {'fields': {}, 'description': ''}, 'reload_core_config': {'fields': {}, 'description': ''}, 'toggle': {'fields': {}, 'description': ''}}}, 'success': True}
Mar 23 22:22:32 hass hass[25283]: 17-03-23 22:22:32 INFO (MainThread) [homeassistant.components.discovery] Found new service: philips_hue ('hue (192.168.1.22)', 'http://192.168.1.22:80/')
Mar 23 22:22:32 hass hass[25283]: 17-03-23 22:22:32 INFO (MainThread) [homeassistant.loader] Loaded light from homeassistant.components.light
Mar 23 22:22:32 hass hass[25283]: 17-03-23 22:22:32 INFO (MainThread) [homeassistant.setup] Setting up light
Mar 23 22:22:33 hass hass[25283]: 17-03-23 22:22:33 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=light, service=turn_on>
Mar 23 22:22:33 hass hass[25283]: 17-03-23 22:22:33 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=light, service=turn_off>
Mar 23 22:22:33 hass hass[25283]: 17-03-23 22:22:33 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=light, service=toggle>
Mar 23 22:22:33 hass hass[25283]: 17-03-23 22:22:33 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=light>
Mar 23 22:22:33 hass hass[25283]: 17-03-23 22:22:33 DEBUG (MainThread) [homeassistant.components.websocket_api] WS 2923197040: Sending {'id': 4, 'event': {'time_fired': datetime.datetime(2017, 3, 23, 21, 22, 33, 246113, tzinfo=<UTC>), 'origin': 'LOCAL', 'event_type': 'service_registered', 'data': {'domain': 'light', 'service': 'turn_on'}}, 'type': 'event'}
Mar 23 22:22:33 hass hass[25283]: 17-03-23 22:22:33 DEBUG (MainThread) [homeassistant.components.websocket_api] WS 2923197040: Sending {'id': 4, 'event': {'time_fired': datetime.datetime(2017, 3, 23, 21, 22, 33, 249387, tzinfo=<UTC>), 'origin': 'LOCAL', 'event_type': 'service_registered', 'data': {'domain': 'light', 'service': 'turn_off'}}, 'type': 'event'}
Mar 23 22:22:33 hass hass[25283]: 17-03-23 22:22:33 DEBUG (MainThread) [homeassistant.components.websocket_api] WS 2923197040: Sending {'id': 4, 'event': {'time_fired': datetime.datetime(2017, 3, 23, 21, 22, 33, 252370, tzinfo=<UTC>), 'origin': 'LOCAL', 'event_type': 'service_registered', 'data': {'domain': 'light', 'service': 'toggle'}}, 'type': 'event'}
Mar 23 22:22:33 hass hass[25283]: 17-03-23 22:22:33 DEBUG (MainThread) [homeassistant.components.websocket_api] WS 2923197040: Sending {'id': 3, 'event': {'time_fired': datetime.datetime(2017, 3, 23, 21, 22, 33, 255259, tzinfo=<UTC>), 'origin': 'LOCAL', 'event_type': 'component_loaded', 'data': {'component': 'light'}}, 'type': 'event'}
Mar 23 22:22:33 hass hass[25283]: 17-03-23 22:22:33 INFO (MainThread) [homeassistant.core] Bus:Handling <Event platform_discovered[L]: service=load_platform.light, discovered=('hue (192.168.1.22)', 'http://192.168.1.22:80/'), platform=hue>
Mar 23 22:22:33 hass hass[25283]: 17-03-23 22:22:33 INFO (MainThread) [homeassistant.loader] Loaded light.hue from homeassistant.components.light.hue
Mar 23 22:22:33 hass hass[25283]: 17-03-23 22:22:33 INFO (MainThread) [homeassistant.components.light] Setting up light.hue
Mar 23 22:22:33 hass hass[25283]: 17-03-23 22:22:33 INFO (Thread-3) [phue] Attempting to connect to the bridge...
Mar 23 22:22:33 hass hass[25283]: 17-03-23 22:22:33 INFO (Thread-3) [phue] Using ip: 192.168.1.22
Mar 23 22:22:33 hass hass[25283]: 17-03-23 22:22:33 INFO (Thread-3) [phue] Error opening config file, will attempt bridge registration
Mar 23 22:22:33 hass hass[25283]: 17-03-23 22:22:33 DEBUG (Thread-3) [phue] POST /api {"devicetype": "python_hue"}
Mar 23 22:22:33 hass hass[25283]: 17-03-23 22:22:33 WARNING (Thread-3) [homeassistant.components.light.hue] Connected to Hue at 192.168.1.22 but not registered.
Mar 23 22:22:33 hass hass[25283]: 17-03-23 22:22:33 INFO (Thread-3) [homeassistant.loader] Loaded configurator from homeassistant.components.configurator
Mar 23 22:22:33 hass hass[25283]: 17-03-23 22:22:33 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=configurator, service=configure>
Mar 23 22:22:33 hass hass[25283]: 17-03-23 22:22:33 DEBUG (MainThread) [homeassistant.components.websocket_api] WS 2923197040: Sending {'id': 4, 'event': {'time_fired': datetime.datetime(2017, 3, 23, 21, 22, 33, 616894, tzinfo=<UTC>), 'origin': 'LOCAL', 'event_type': 'service_registered', 'data': {'domain': 'configurator', 'service': 'configure'}}, 'type': 'event'}
Mar 23 22:22:33 hass hass[25283]: 17-03-23 22:22:33 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: new_state=<state configurator.philips_hue=configure; fields=[], description_image=/static/images/config_philips_hue.jpg, entity_picture=/static/images/logo_philips_hue.png, configure_id=2830274928-1, submit_caption=I have pressed the button, description=Press the button on the bridge to register Philips Hue with Home Assistant., friendly_name=Philips Hue @ 2017-03-23T22:22:33.631588+01:00>, old_state=None, entity_id=configurator.philips_hue>
Mar 23 22:22:33 hass hass[25283]: 17-03-23 22:22:33 DEBUG (MainThread) [homeassistant.components.websocket_api] WS 2923197040: Sending {'id': 2, 'event': {'time_fired': datetime.datetime(2017, 3, 23, 21, 22, 33, 631874, tzinfo=<UTC>), 'origin': 'LOCAL', 'event_type': 'state_changed', 'data': {'entity_id': 'configurator.philips_hue', 'old_state': None, 'new_state': <state configurator.philips_hue=configure; fields=[], description_image=/static/images/config_philips_hue.jpg, entity_picture=/static/images/logo_philips_hue.png, configure_id=2830274928-1, submit_caption=I have pressed the button, description=Press the button on the bridge to register Philips Hue with Home Assistant., friendly_name=Philips Hue @ 2017-03-23T22:22:33.631588+01:00>}}, 'type': 'event'}

So with this config the only entity I’m seeing in the “states” developer tool is the hue bridge, but no mediaplayer.snuggery or similar. Or am I doing something wrong?

I’m running Davaar 4.54.135.

Thanks a lot,
Benjamin

Whilst the zeroconf portion of netdisco is discovering your Majik DSM, the SSDP portion is not and that’s what is needed for the component to work. It looks like upnp discovery / ssdp is not working on your network.

Does Linn Konfig or Kazoo discover your device?

It may also be plausible the machine you are running home assistant on is blocking ssdp traffic. Can you check your firewall rules?

1 Like

That was it, firewalld is blocking incoming upnp/ssdp traffic.

Thanks so much Barry for helping out!

1 Like

Glad I could help!

Barry

Hi! I have similar problem but don’t know this upnp/ssdp traffic issue. May I have your help to tell me how you solved this?

My Home Assistant is running on a Raspberry Pi in the Python virtual environment.

Hi,

What OS are you using on your Raspberry Pi? I was using Fedora at that time which uses firewalld as host firewall, which in turn was blocking said traffic. If a host firewall is blocking upnp/ssdp on your Raspberry Pi, you could quite simply test it by temporarily disabling the firewall service.

Benjamin

The OS is Raspbian Jessie Lite. I haven’t installed any firewall by myself.