Today I decided to switch to the native Homekit integration. I used the following setup in configuration.yaml:
homekit:
filter:
include_entities:
- media_player.badkamer
- media_player.eetkamer
- media_player.keuken
- media_player.renee
- media_player.speelkamer
- media_player.zolder
- media_player.tv_kamer
- switch.sonoff_power
- switch.sonoff2_power
- input_boolean.rachio_switch_zone1
- input_boolean.rachio_switch_zone2
- input_boolean.rachio_switch_zone3
- input_boolean.rachio_switch_zone4
- input_boolean.rachio_switch_zone5
- sensor.temp_badkamer_temperature
- sensor.temp_tuin_temperature
- sensor.family_room_thermostat_temperature
- climate.family_room
- sensor.plant_sensor_temperature
- sensor.water_sensor_temperature
But the Sonos mediaplayers are not added.
In the old situation running on Homebridge the Sonos’ where shown as switches.
I noticed this error in the log file:
2018-06-26 00:58:44 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/lib/python3.5/asyncio/tasks.py", line 240, in _step
result = coro.send(None)
File "/usr/local/lib/python3.5/dist-packages/homeassistant/helpers/entity_platform.py", line 318, in _async_add_entity
msg)
homeassistant.exceptions.HomeAssistantError: Entity id already exists: media_player.renee. Platform sonos does not generate unique IDs
Any help is welcome.