I’ve been running HomeAssistant on a RPi4 for the past few months with no issues (ultra stable, no crashes) admittedly not doing much beyond reporting status of my TADO system, and turning a Smart light bulb on and off.
I recently added a 2 way MoesGo Smart light switch (TS0012) to control (both electrically, and also via the HAss interface) the (dumb) main light in that room, and add a physical switch for the uplighter which has the smart bulb (Innr RB279T) in it.
I am using a sonoff Zigbee USB dongle, connected to the RPi.
Ever since installing the switch, and connecting to HAss, the system has crashed on a daily basis. When crashed, the physical/electric switch controls the (dumb) main light still, but not the soft swtich for the uplighter. The only way to recover from the crash is to power cycle the RPi.
I connected the switch to the HAss by discovering directly within HAss - i didn’t install any of the “smart life” apps or anything.
Am I doing something wrong?
I’m still quite new to Home assistant and “smart” things in general.
edit - device signature below:
> {
> "node_descriptor": "NodeDescriptor(logical_type=<LogicalType.EndDevice: 2>, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=<FrequencyBand.Freq2400MHz: 8>, mac_capability_flags=<MACCapabilityFlags.AllocateAddress: 128>, manufacturer_code=4417, maximum_buffer_size=66, maximum_incoming_transfer_size=66, server_mask=10752, maximum_outgoing_transfer_size=66, descriptor_capability_field=<DescriptorCapability.NONE: 0>, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=True, *is_full_function_device=False, *is_mains_powered=False, *is_receiver_on_when_idle=False, *is_router=False, *is_security_capable=False)",
> "endpoints": {
> "1": {
> "profile_id": 260,
> "device_type": "0x0100",
> "in_clusters": [
> "0x0000",
> "0x0003",
> "0x0004",
> "0x0005",
> "0x0006",
> "0xe000",
> "0xe001"
> ],
> "out_clusters": [
> "0x000a",
> "0x0019"
> ]
> },
> "2": {
> "profile_id": 260,
> "device_type": "0x0100",
> "in_clusters": [
> "0x0004",
> "0x0005",
> "0x0006",
> "0xe001"
> ],
> "out_clusters": []
> }
> },
> "manufacturer": "_TZ3000_18ejxno0",
> "model": "TS0012",
> "class": "zhaquirks.tuya.ts001x.Tuya_Double_No_N_Plus"
> }
further edit - managed to catch it restarting itself, and got this from the logs:
2022-11-23 14:19:20.385 WARNING (Recorder) [homeassistant.components.recorder.util] The system could not validate that the sqlite3 database at //config/home-assistant_v2.db was shutdown cleanly
2022-11-23 14:19:20.653 WARNING (Recorder) [homeassistant.components.recorder.util] Ended unfinished session (id=54 from 2022-11-23 13:12:28.169670)
2022-11-23 14:19:42.610 WARNING (MainThread) [homeassistant.components.onvif] Could not retrieve date/time on this camera
2022-11-23 14:19:42.626 WARNING (MainThread) [homeassistant.components.onvif] Could not retrieve date/time on this camera
2022-11-23 14:20:01.105 ERROR (MainThread) [zigpy.application] Couldn't start application
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/zigpy_znp/api.py", line 998, in request
response = await response_future
asyncio.exceptions.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/zigpy/application.py", line 124, in startup
await self.connect()
File "/usr/local/lib/python3.10/site-packages/zigpy_znp/zigbee/application.py", line 106, in connect
await znp.connect()
File "/usr/local/lib/python3.10/site-packages/zigpy_znp/api.py", line 706, in connect
self.capabilities = (await self._skip_bootloader()).Capabilities
File "/usr/local/lib/python3.10/site-packages/zigpy_znp/api.py", line 686, in _skip_bootloader
return await self.request(c.SYS.Ping.Req())
File "/usr/local/lib/python3.10/site-packages/zigpy_znp/api.py", line 994, in request
async with async_timeout.timeout(
File "/usr/local/lib/python3.10/site-packages/async_timeout/__init__.py", line 129, in __aexit__
self._do_exit(exc_type)
File "/usr/local/lib/python3.10/site-packages/async_timeout/__init__.py", line 212, in _do_exit
raise asyncio.TimeoutError
asyncio.exceptions.TimeoutError
2022-11-23 14:20:01.137 WARNING (MainThread) [homeassistant.components.zha.core.gateway] Couldn't start ZNP = Texas Instruments Z-Stack ZNP protocol: CC253x, CC26x2, CC13x2 coordinator (attempt 1 of 3)
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/zigpy_znp/api.py", line 998, in request
response = await response_future
asyncio.exceptions.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/zha/core/gateway.py", line 172, in async_initialize
self.application_controller = await app_controller_cls.new(
File "/usr/local/lib/python3.10/site-packages/zigpy/application.py", line 144, in new
await app.startup(auto_form=auto_form)
File "/usr/local/lib/python3.10/site-packages/zigpy/application.py", line 124, in startup
await self.connect()
File "/usr/local/lib/python3.10/site-packages/zigpy_znp/zigbee/application.py", line 106, in connect
await znp.connect()
File "/usr/local/lib/python3.10/site-packages/zigpy_znp/api.py", line 706, in connect
self.capabilities = (await self._skip_bootloader()).Capabilities
File "/usr/local/lib/python3.10/site-packages/zigpy_znp/api.py", line 686, in _skip_bootloader
return await self.request(c.SYS.Ping.Req())
File "/usr/local/lib/python3.10/site-packages/zigpy_znp/api.py", line 994, in request
async with async_timeout.timeout(
File "/usr/local/lib/python3.10/site-packages/async_timeout/__init__.py", line 129, in __aexit__
self._do_exit(exc_type)
File "/usr/local/lib/python3.10/site-packages/async_timeout/__init__.py", line 212, in _do_exit
raise asyncio.TimeoutError
asyncio.exceptions.TimeoutError