Hello ppl,
I am new to Home Assistant and Homebridge, but I do have an extensive tech background. So half-noob here.
Please help me to figure this out:
I bought and configured Rasbery Pi 3. I have both latest Home Assistant and Homebridge installed and configured and running from autostart as daemons. HomeAssistant runs as “homeassistant” account and Homebridge as “homebridge” account.
HomeAssistant works and I can see my Sonos system and Android TV on it and I can start stop Sonos and TV from Home Assistant.
Homebridge also works I can install “homebridge” plugins and also I have paired “homebridge” with my HomeKit and it showing up on my iPhone in HomeKit (HomeApp) in “Default Room”
Last, I installed and configured home-assistant-homebridge
plugin for HomeAssistant: https://github.com/home-assistant/homebridge-homeassistant
. This integration also works as I can see logs on both sides and below are logs of my Homebridge receiving events from HomeAssistant.
So everything seem working as far as installation is concerned.
THE PROBLEM:
MY devices from HomeAssistant (Sonos and Android TV), do not show up in my HomeKit app on iPhone. The plugin has NO instructions on how to add those devices as “light switch” (for media player). It just states that they (devices) will “automatically” show up in HomeKit exposed as “light switch”
So my assumption is that the phrase “it exposes” it as a light switch means I do NOT need to add any configuration changes in my Homebridge. ?? The MediaPlayer (Sonos) should just “appear” on my iPhone as a switch.
But this does not happen. Neither TV or Sonos show up.
Please help with any ideas of what can be wrong and what I need to do to make it happen?
Thank you very much in advance for your help. I promise soon to become useful contributor to this forum. But at this moment, I am still somewhat lost
My Homebridge config file in: /var/lib/homebridge/config.json
{
"bridge": {
"name": "Homebridge",
"username": "CC:22:3D:E3:CE:30",
"port": 51826,
"pin": "031-45-154"
},
"platforms": [
{
"platform": "HomeAssistant",
"name": "HomeAssistant",
"host": "http://localhost:8123",
"password": "xxxxxxxx.",
"supported_types": ["binary_sensor", "climate", "cover", "device_tracker", "fan", "group", "input_boolean", "light", "lock", "media_player", "scene", "sensor", "switch"],
"logging": true
}
]
}
Logs of HomeAssistant sending events to Homebridge. (logs are from HomeBridge Side ):_
May 07 08:47:02 HomeControl homebridge[710]: [5/7/2017, 8:47:02 AM] [HomeAssistant] Received event: {"origin": "LOCAL", "time_fired": "2017-05-07T00:47:02.590054+00:00", "data": {"new_state": {"attributes": {"media_content_id": "Alaake", "media_position": 0, "media_position_updated_at": "2017-05-07T00:45:15.209189+00:00", "media_title": "Alaake", "media_artist": "Deep Forest", "supported_features": 31295, "media_album_name": "Deep Africa", "source_list": ["BBC Radio 4", "BBC World Service News", "Bloomberg Radio", "Chill", "FOX News Talk", "Long Ambients1: Calm. Sleep.", "NPR Program Stream", "Ocean by Ocean", "Radio Kansas", "Sleep Sounds", "WAMU", "WNPR", "\u041d\u0430\u0448\u0435 \u0420\u0430\u0434\u0438\u043e", "Line-in", "TV"], "friendly_name": "Living Room", "media_content_type": "music", "entity_picture": "/api/media_player_proxy/media_player.living_room?token=e25a9b2458463e65f7d1e334113e64307bc967c0d4ccbb5a5c01543942056587&cache=232ce", "media_duration": 221, "is_coordinator": true, "is_volume_muted": false, "volume_level": 0.31}, "last_changed": "2017-05-07T00:46:55.610427+00:00", "state": "paused", "last_updated": "2017-05-07T00:47:02.589885+00:00", "entity_id": "media_player.living_room"}, "old_state": {"attributes": {"media_content_id": "Alaake", "media_position": 0, "media_position_updated_at": "2017-05-07T00:45:15.209189+00:00", "media_title": "Alaake", "media_artist": "Deep Forest", "supported_features": 31295, "media_album_name": "Deep Africa", "source_list": ["BBC Radio 4", "BBC World Service News", "Bloomberg Radio", "Chill", "FOX News Talk", "Long Ambients1: Calm. Sleep.", "NPR Program Stream", "Ocean by Ocean", "Radio Kansas", "Sleep Sounds", "WAMU", "WNPR", "\u041d\u0430\u0448\u0435 \u0420\u0430\u0434\u0438\u043e", "Line-in", "TV"], "friendly_name": "Living Room", "media_content_type": "music", "entity_picture": "/api/media_player_proxy/media_player.living_room?token=e25a9b2458463e65f7d1e334113e64307bc967c0d4ccbb5a5c01543942056587&cache=d849d", "media_duration": 221, "is_coordinator": true, "is_volume_muted": false, "volume_level": 0.31
May 07 08:47:02 HomeControl homebridge[710]: }, "last_changed": "2017-05-07T00:46:55.610427+00:00", "state": "paused", "last_updated": "2017-05-07T00:46:55.610427+00:00", "entity_id": "media_player.living_room"}, "entity_id": "media_player.living_room"}, "event_type": "state_changed"}
May 07 08:47:02 HomeControl homebridge[710]: [5/7/2017, 8:47:02 AM] [HomeAssistant] Received event: {"origin": "LOCAL", "time_fired": "2017-05-07T00:47:02.590054+00:00", "data": {"new_state": {"attributes": {"media_content_id": "Alaake", "media_position": 0, "media_position_updated_at": "2017-05-07T00:45:15.209189+00:00", "media_title": "Alaake", "media_artist": "Deep Forest", "supported_features": 31295, "media_album_name": "Deep Africa", "source_list": ["BBC Radio 4", "BBC World Service News", "Bloomberg Radio", "Chill", "FOX News Talk", "Long Ambients1: Calm. Sleep.", "NPR Program Stream", "Ocean by Ocean", "Radio Kansas", "Sleep Sounds", "WAMU", "WNPR", "\u041d\u0430\u0448\u0435 \u0420\u0430\u0434\u0438\u043e", "Line-in", "TV"], "friendly_name": "Living Room", "media_content_type": "music", "entity_picture": "/api/media_player_proxy/media_player.living_room?token=e25a9b2458463e65f7d1e334113e64307bc967c0d4ccbb5a5c01543942056587&cache=232ce", "media_duration": 221, "is_coordinator": true, "is_volume_muted": false, "volume_level": 0.31}, "last_changed": "2017-05-07T00:46:55.610427+00:00", "state": "paused", "last_updated": "2017-05-07T00:47:02.589885+00:00", "entity_id": "media_player.living_room"}, "old_state": {"attributes": {"media_content_id": "Alaake", "media_position": 0, "media_position_updated_at": "2017-05-07T00:45:15.209189+00:00", "media_title": "Alaake", "media_artist": "Deep Forest", "supported_features": 31295, "media_album_name": "Deep Africa", "source_list": ["BBC Radio 4", "BBC World Service News", "Bloomberg Radio", "Chill", "FOX News Talk", "Long Ambients1: Calm. Sleep.", "NPR Program Stream", "Ocean by Ocean", "Radio Kansas", "Sleep Sounds", "WAMU", "WNPR", "\u041d\u0430\u0448\u0435 \u0420\u0430\u0434\u0438\u043e", "Line-in", "TV"], "friendly_name": "Living Room", "media_content_type": "music", "entity_picture": "/api/media_player_proxy/media_player.living_room?token=e25a9b2458463e65f7d1e334113e64307bc967c0d4ccbb5a5c01543942056587&cache=d849d", "media_duration": 221, "is_coordinator": true, "is_volume_muted": false, "volume_level": 0.31
May 07 08:47:02 HomeControl homebridge[710]: }, "last_changed": "2017-05-07T00:46:55.610427+00:00", "state": "paused", "last_updated": "2017-05-07T00:46:55.610427+00:00", "entity_id": "media_player.living_room"}, "entity_id": "media_player.living_room"}, "event_type": "state_changed"}