roleoroleo / yi-hack_ha_integration

Home Assistant custom integration for Yi cameras: yi-hack-MStar, yi-hack-Allwinner, yi-hack-Allwinner-v2, yi-hack-v5 and sonoff-hack
GNU General Public License v3.0
218 stars 32 forks source link

Failed to setup integration: KeyError: 'TOPIC_BIRTH_WILL' #87

Closed sasasalamon closed 5 months ago

sasasalamon commented 2 years ago

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'

roleoroleo commented 2 years ago

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

sasasalamon commented 2 years ago

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

roleoroleo commented 2 years ago

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

github-actions[bot] commented 6 months ago

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.