yi-hack_ha_integration icon indicating copy to clipboard operation
yi-hack_ha_integration copied to clipboard

Failed to setup integration: KeyError: 'TOPIC_BIRTH_WILL'

Open sasasalamon opened this issue 2 years ago • 3 comments

After adding the plugin and setting it up, HASS is showing "Failed to setup" and logs are showing the error below. MQTT is configured on both HASS and camera.

Logger: homeassistant.config_entries Source: custom_components/yi_hack/init.py:48 Integration: Yi Cam with yi-hack (documentation, issues)

Error setting up entry yi_hack_7b4bd0 for yi_hack Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 304, in async_setup result = await component.async_setup_entry(hass, self) # type: ignore File "/config/custom_components/yi_hack/init.py", line 48, in async_setup_entry CONF_TOPIC_STATUS: mqtt[CONF_TOPIC_STATUS], KeyError: 'TOPIC_BIRTH_WILL'

sasasalamon avatar Jun 19 '22 18:06 sasasalamon

Which cam are you using? Could you share your mqtt configuration (cam side)?

roleoroleo avatar Jun 25 '22 16:06 roleoroleo

I'm using the YI cam, with MStar firmware. Details are here: yi-4bd0-mqtt yi-4bd0-status

sasasalamon avatar Jun 28 '22 12:06 sasasalamon

Based on the web interface, your fw is very old. Try to update it to the latest version.

roleoroleo avatar Jun 29 '22 12:06 roleoroleo

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Apr 02 '24 02:04 github-actions[bot]