Whytey / moebot-hass-integration

A HomeAssistant integration for MoeBot (and compatible) TUYA mowers.
8 stars 0 forks source link

Compatibilidad con Robot lawn mower PMRDA 20-Li A1 #22

Open Vicente-Ch opened 3 days ago

Vicente-Ch commented 3 days ago

Hola. Parece que esta integracion se adapta a mi cortacesped. Robot lawn mower PMRDA 20-Li A1 comprado en cadena supermercados LIDL. Pero arroja algunos errores. image image Al principio todo parece funcionar. al darle a "play" el estado cambia a "cleaning" pero cuando pulso "pause" "stop"... ya no reacciona ni siquiera el estado cambia.

Esto es lo que muestra el debuj de la integracion, he borrado algunas cosas que parece estar relacionadas:

2024-06-29 13:45:00.854 WARNING (ImportExecutor_0) [homeassistant.const] DEVICE_CLASS_BATTERY was used from moebot, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorDeviceClass.BATTERY instead, please report it to the author of the 'moebot' custom integration 2024-06-29 13:45:06.394 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to import_module inside the event loop by custom integration 'edata' at custom_components/edata/coordinator.py, line 170: self._datadis.process_data() (offender: /usr/local/lib/python3.12/site-packages/dateparser/languages/loader.py, line 215: import_module("dateparser.data.date_translation_data." + lang),), please create a bug report at https://github.com/uvejota/homeassistant-edata/issues Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/src/homeassistant/homeassistant/main.py", line 223, in sys.exit(main()) File "/usr/src/homeassistant/homeassistant/main.py", line 209, in main exit_code = runner.run(runtime_conf) File "/usr/src/homeassistant/homeassistant/runner.py", line 190, in run return loop.run_until_complete(setup_and_run_hass(runtime_config)) File "/usr/local/lib/python3.12/asyncio/base_events.py", line 672, in run_until_complete self.run_forever() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 639, in run_forever self._run_once() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1988, in _run_once handle._run() File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, *self._args) File "/config/custom_components/edata/sensor.py", line 166, in async_setup_entry coordinator = EdataCoordinator( File "/config/custom_components/edata/coordinator.py", line 98, in init self._load_data(preprocess=True) File "/config/custom_components/edata/coordinator.py", line 170, in _load_data self._datadis.process_data()

2024-06-29 13:45:06.446 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'edata' accesses hass.components.websocket_api. This is deprecated and will stop working in Home Assistant 2024.9, it should be updated to import functions used from websocket_api directly at custom_components/edata/websockets.py, line 68: hass.components.websocket_api.async_register_command(, please create a bug report at https://github.com/uvejota/homeassistant-edata/issues 2024-06-29 13:45:06.619 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.freeds_pwm_aut_man are missing or not currently available 2024-06-29 13:45:06.619 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities switch.freeds_pwm_aut_man are missing or not currently available 2024-06-29 13:45:07.907 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hacs' accesses hass.helpers.event. This is deprecated and will stop working in Home Assistant 2024.11, it should be updated to import functions used from event directly at custom_components/hacs/base.py, line 630: self.hass.helpers.event.async_track_time_interval(, please create a bug report at https://github.com/hacs/integration/issues 2024-06-29 13:45:19.976 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to open inside the event loop by custom integration 'edata' at custom_components/edata/coordinator.py, line 149: with open( (offender: /config/custom_components/edata/coordinator.py, line 149: with open(), please create a bug report at https://github.com/uvejota/homeassistant-edata/issues Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/src/homeassistant/homeassistant/main.py", line 223, in sys.exit(main()) File "/usr/src/homeassistant/homeassistant/main.py", line 209, in main exit_code = runner.run(runtime_conf) File "/usr/src/homeassistant/homeassistant/runner.py", line 190, in run return loop.run_until_complete(setup_and_run_hass(runtime_config)) File "/usr/local/lib/python3.12/asyncio/base_events.py", line 672, in run_until_complete self.run_forever() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 639, in run_forever self._run_once() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1988, in _run_once handle._run() File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, *self._args) File "/config/custom_components/edata/sensor.py", line 181, in async_first_refresh await coordinator.async_refresh() File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 288, in async_refresh await self._async_refresh(log_failures=True) File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 312, in _async_refresh self.data = await self._async_update_data() File "/config/custom_components/edata/coordinator.py", line 149, in _async_update_data with open(

2024-06-29 13:46:39.245 ERROR (SyncWorker_13) [pymoebot] Error from device: None 2024-06-29 13:47:10.054 ERROR (SyncWorker_11) [pymoebot] Error from device: {'Error': 'Unexpected Payload from Device', 'Err': '904', 'Payload': None} 2024-06-29 13:47:14.989 ERROR (SyncWorker_22) [pymoebot] Error from device: None 2024-06-29 13:49:44.890 ERROR (SyncWorker_23) [pymoebot] Error from device: None 2024-06-29 14:00:01.257 WARNING (MainThread) [custom_components.localtuya.switch] [bf0...baz] Entity switch.depuradora_lt is requesting unknown DPS index 18 2024-06-29 14:00:01.257 WARNING (MainThread) [custom_components.localtuya.switch] [bf0...baz] Entity switch.depuradora_lt is requesting unknown DPS index 19 2024-06-29 14:00:01.258 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback Entity._async_write_ha_state_from_call_soon_threadsafe() (None) Traceback (most recent call last): File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, *self._args) File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 992, in _async_write_ha_state_from_call_soon_threadsafe self._async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1126, in _async_write_ha_state state, attr, capabilities, shadowed_attr = self.async_calculate_state() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1065, in async_calculate_state if extra_state_attributes := self.extra_state_attributes: ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/localtuya/switch.py", line 65, in extra_state_attributes self.dps(self._config[CONF_CURRENT_CONSUMPTION]) / 10


TypeError: unsupported operand type(s) for /: 'NoneType' and 'int'
2024-06-29 14:06:19.415 WARNING (MainThread) [homeassistant.components.automation.10_inversor_activar_cargas_por_alto_voltaje] 10/inversor activar cargas por alto voltaje : Already running
2024-06-29 14:08:49.387 WARNING (MainThread) [homeassistant.components.automation.10_inversor_activar_cargas_por_alto_voltaje] 10/inversor activar cargas por alto voltaje : Already running
2024-06-29 14:10:01.646 WARNING (MainThread) [custom_components.localtuya.switch] [bf0...baz] Entity switch.depuradora_lt is requesting unknown DPS index 18
2024-06-29 14:10:01.647 WARNING (MainThread) [custom_components.localtuya.switch] [bf0...baz] Entity switch.depuradora_lt is requesting unknown DPS index 19
2024-06-29 14:10:01.647 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback Entity._async_write_ha_state_from_call_soon_threadsafe() (None)
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 992, in _async_write_ha_state_from_call_soon_threadsafe
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1126, in _async_write_ha_state
    state, attr, capabilities, shadowed_attr = self.__async_calculate_state()
                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1065, in __async_calculate_state
    if extra_state_attributes := self.extra_state_attributes:
                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/localtuya/switch.py", line 65, in extra_state_attributes
    self.dps(self._config[CONF_CURRENT_CONSUMPTION]) / 10
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
TypeError: unsupported operand type(s) for /: 'NoneType' and 'int'
2024-06-29 14:11:20.478 WARNING (MainThread) [homeassistant.components.automation.10_inversor_activar_cargas_por_alto_voltaje] 10/inversor activar cargas por alto voltaje : Already running
2024-06-29 14:13:20.556 WARNING (MainThread) [homeassistant.components.automation.10_inversor_activar_cargas_por_alto_voltaje] 10/inversor activar cargas por alto voltaje : Already running
2024-06-29 14:18:21.503 WARNING (MainThread) [homeassistant.components.automation.10_inversor_activar_cargas_por_alto_voltaje] 10/inversor activar cargas por alto voltaje : Already running
2024-06-29 14:22:52.561 WARNING (MainThread) [homeassistant.components.automation.10_inversor_activar_cargas_por_alto_voltaje] 10/inversor activar cargas por alto voltaje : Already running
2024-06-29 14:23:52.416 WARNING (MainThread) [homeassistant.components.automation.10_inversor_activar_cargas_por_alto_voltaje] 10/inversor activar cargas por alto voltaje : Already running
2024-06-29 14:25:52.379 WARNING (MainThread) [homeassistant.components.automation.10_inversor_activar_cargas_por_alto_voltaje] 10/inversor activar cargas por alto voltaje : Already running
2024-06-29 14:27:52.598 WARNING (MainThread) [homeassistant.components.automation.10_inversor_activar_cargas_por_alto_voltaje] 10/inversor activar cargas por alto voltaje : Already running
2024-06-29 14:28:52.360 WARNING (MainThread) [homeassistant.components.automation.10_inversor_activar_cargas_por_alto_voltaje] 10/inversor activar cargas por alto voltaje : Already running
2024-06-29 14:29:52.358 WARNING (MainThread) [homeassistant.components.automation.10_inversor_activar_cargas_por_alto_voltaje] 10/inversor activar cargas por alto voltaje : Already running
2024-06-29 14:30:17.592 WARNING (MainThread) [custom_components.localtuya.switch] [bf8...zv0] Entity switch.lavadora_lt is requesting unknown DPS index 18
2024-06-29 14:30:17.592 WARNING (MainThread) [custom_components.localtuya.switch] [bf8...zv0] Entity switch.lavadora_lt is requesting unknown DPS index 19
2024-06-29 14:30:17.593 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback Entity._async_write_ha_state_from_call_soon_threadsafe() (None)
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 992, in _async_write_ha_state_from_call_soon_threadsafe
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1126, in _async_write_ha_state
    state, attr, capabilities, shadowed_attr = self.__async_calculate_state()
                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1065, in __async_calculate_state
    if extra_state_attributes := self.extra_state_attributes:
                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/localtuya/switch.py", line 65, in extra_state_attributes
    self.dps(self._config[CONF_CURRENT_CONSUMPTION]) / 10
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
TypeError: unsupported operand type(s) for /: 'NoneType' and 'int'
2024-06-29 14:33:22.344 WARNING (MainThread) [homeassistant.components.automation.10_inversor_activar_cargas_por_alto_voltaje] 10/inversor activar cargas por alto voltaje : Already running
2024-06-29 14:33:52.341 WARNING (MainThread) [homeassistant.components.automation.10_inversor_activar_cargas_por_alto_voltaje] 10/inversor activar cargas por alto voltaje : Already running
2024-06-29 14:36:22.405 WARNING (MainThread) [homeassistant.components.automation.10_inversor_activar_cargas_por_alto_voltaje] 10/inversor activar cargas por alto voltaje : Already running
2024-06-29 14:38:22.575 WARNING (MainThread) [homeassistant.components.automation.10_inversor_activar_cargas_por_alto_voltaje] 10/inversor activar cargas por alto voltaje : Already running
2024-06-29 14:41:54.598 WARNING (MainThread) [homeassistant.components.automation.10_inversor_activar_cargas_por_alto_voltaje] 10/inversor activar cargas por alto voltaje : Already running
2024-06-29 14:45:29.759 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to open inside the event loop by custom integration 'edata' at custom_components/edata/coordinator.py, line 149: with open( (offender: /config/custom_components/edata/coordinator.py, line 149: with open(), please create a bug report at https://github.com/uvejota/homeassistant-edata/issues
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/usr/src/homeassistant/homeassistant/__main__.py", line 223, in <module>
    sys.exit(main())
  File "/usr/src/homeassistant/homeassistant/__main__.py", line 209, in main
    exit_code = runner.run(runtime_conf)
  File "/usr/src/homeassistant/homeassistant/runner.py", line 190, in run
    return loop.run_until_complete(setup_and_run_hass(runtime_config))
  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 672, in run_until_complete
    self.run_forever()
  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 639, in run_forever
    self._run_once()
  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1988, in _run_once
    handle._run()
  File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 255, in _handle_refresh_interval
    await self._async_refresh(log_failures=True, scheduled=True)
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 312, in _async_refresh
    self.data = await self._async_update_data()
  File "/config/custom_components/edata/coordinator.py", line 149, in _async_update_data
    with open(

2024-06-29 14:46:56.376 WARNING (MainThread) [homeassistant.components.automation.10_inversor_activar_cargas_por_alto_voltaje] 10/inversor activar cargas por alto voltaje : Already running
2024-06-29 14:47:56.436 WARNING (MainThread) [homeassistant.components.automation.10_inversor_activar_cargas_por_alto_voltaje] 10/inversor activar cargas por alto voltaje : Already running
2024-06-29 14:49:26.345 WARNING (MainThread) [homeassistant.components.automation.10_inversor_activar_cargas_por_alto_voltaje] 10/inversor activar cargas por alto voltaje : Already running
2024-06-29 14:53:19.972 ERROR (SyncWorker_29) [pymoebot] Error from device: {'Error': 'Unexpected Payload from Device', 'Err': '904', 'Payload': None}
2024-06-29 14:56:39.553 ERROR (SyncWorker_35) [pymoebot] Unable to pause due to current state: 'CHARGING'
2024-06-29 14:56:39.557 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140178578954784] Unexpected exception
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 241, in handle_call_service
    response = await hass.services.async_call(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2741, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2784, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 977, in entity_service_call
    single_response = await _handle_entity_call(
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1049, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/vacuum/__init__.py", line 387, in async_pause
    await self.hass.async_add_executor_job(self.pause)
  File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/moebot/vacuum.py", line 100, in pause
    self._moebot.pause()
  File "/usr/local/lib/python3.12/site-packages/pymoebot/__init__.py", line 195, in pause
    raise MoeBotStateException()
pymoebot.MoeBotStateException
2024-06-29 14:56:49.536 ERROR (SyncWorker_28) [pymoebot] Unable to pause due to current state: 'CHARGING'
2024-06-29 14:56:49.538 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140178578954784] Unexpected exception
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 241, in handle_call_service
    response = await hass.services.async_call(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2741, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2784, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 977, in entity_service_call
    single_response = await _handle_entity_call(
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1049, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/vacuum/__init__.py", line 387, in async_pause
    await self.hass.async_add_executor_job(self.pause)
  File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/moebot/vacuum.py", line 100, in pause
    self._moebot.pause()
  File "/usr/local/lib/python3.12/site-packages/pymoebot/__init__.py", line 195, in pause
    raise MoeBotStateException()
pymoebot.MoeBotStateException
2024-06-29 14:56:52.970 ERROR (SyncWorker_49) [pymoebot] Unable to cancel due to current state: 'CHARGING'
2024-06-29 14:56:52.972 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140178578954784] Unexpected exception
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 241, in handle_call_service
    response = await hass.services.async_call(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2741, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2784, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 977, in entity_service_call
    single_response = await _handle_entity_call(
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1049, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/vacuum/__init__.py", line 296, in async_stop
    await self.hass.async_add_executor_job(partial(self.stop, **kwargs))
  File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/moebot/vacuum.py", line 103, in stop
    self._moebot.cancel()
  File "/usr/local/lib/python3.12/site-packages/pymoebot/__init__.py", line 205, in cancel
    raise MoeBotStateException()
pymoebot.MoeBotStateException
2024-06-29 14:57:17.578 ERROR (SyncWorker_54) [pymoebot] Error from device: None
2024-06-29 14:57:19.078 ERROR (SyncWorker_9) [pymoebot] Unable to pause due to current state: 'PAUSED'
2024-06-29 14:57:19.079 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140178578954784] Unexpected exception
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 241, in handle_call_service
    response = await hass.services.async_call(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2741, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2784, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 977, in entity_service_call
    single_response = await _handle_entity_call(
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1049, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/vacuum/__init__.py", line 387, in async_pause
    await self.hass.async_add_executor_job(self.pause)
  File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/moebot/vacuum.py", line 100, in pause
    self._moebot.pause()
  File "/usr/local/lib/python3.12/site-packages/pymoebot/__init__.py", line 195, in pause
    raise MoeBotStateException()
pymoebot.MoeBotStateException
2024-06-29 14:57:22.610 ERROR (SyncWorker_12) [pymoebot] Unable to pause due to current state: 'PAUSED'
2024-06-29 14:57:22.611 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140178578954784] Unexpected exception
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 241, in handle_call_service
    response = await hass.services.async_call(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2741, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2784, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 977, in entity_service_call
    single_response = await _handle_entity_call(
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1049, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/vacuum/__init__.py", line 387, in async_pause
    await self.hass.async_add_executor_job(self.pause)
  File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/moebot/vacuum.py", line 100, in pause
    self._moebot.pause()
  File "/usr/local/lib/python3.12/site-packages/pymoebot/__init__.py", line 195, in pause
    raise MoeBotStateException()
pymoebot.MoeBotStateException
2024-06-29 14:57:36.328 ERROR (SyncWorker_58) [pymoebot] Error from device: None
2024-06-29 14:57:38.034 ERROR (SyncWorker_5) [pymoebot] Error from device: None
2024-06-29 14:59:23.352 ERROR (SyncWorker_38) [pymoebot] Unable to pause due to current state: 'PAUSED'
2024-06-29 14:59:23.353 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140178578954784] Unexpected exception
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 241, in handle_call_service
    response = await hass.services.async_call(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2741, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2784, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 977, in entity_service_call
    single_response = await _handle_entity_call(
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1049, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/vacuum/__init__.py", line 387, in async_pause
    await self.hass.async_add_executor_job(self.pause)
  File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/moebot/vacuum.py", line 100, in pause
    self._moebot.pause()
  File "/usr/local/lib/python3.12/site-packages/pymoebot/__init__.py", line 195, in pause
    raise MoeBotStateException()
pymoebot.MoeBotStateException
2024-06-29 14:59:38.303 ERROR (SyncWorker_33) [pymoebot] Error from device: None
2024-06-29 14:59:41.227 ERROR (SyncWorker_1) [pymoebot] Error from device: None
2024-06-29 15:00:56.651 WARNING (MainThread) [homeassistant.components.automation.10_inversor_activar_cargas_por_alto_voltaje] 10/inversor activar cargas por alto voltaje : Already running
2024-06-29 15:03:30.010 ERROR (SyncWorker_35) [pymoebot] Error from device: None
2024-06-29 15:03:33.256 ERROR (SyncWorker_45) [pymoebot] Unable to pause due to current state: 'PAUSED'
2024-06-29 15:03:33.257 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140178578954784] Unexpected exception
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 241, in handle_call_service
    response = await hass.services.async_call(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2741, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2784, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 977, in entity_service_call
    single_response = await _handle_entity_call(
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1049, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/vacuum/__init__.py", line 387, in async_pause
    await self.hass.async_add_executor_job(self.pause)
  File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/moebot/vacuum.py", line 100, in pause
    self._moebot.pause()
  File "/usr/local/lib/python3.12/site-packages/pymoebot/__init__.py", line 195, in pause
    raise MoeBotStateException()
pymoebot.MoeBotStateException
2024-06-29 15:04:23.460 ERROR (SyncWorker_39) [pymoebot] Error from device: {'Error': 'Check device key or version', 'Err': '914', 'Payload': None}
2024-06-29 15:04:36.692 ERROR (SyncWorker_27) [pymoebot] Unable to pause due to current state: 'PAUSED'
2024-06-29 15:04:36.695 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140178578954784] Unexpected exception
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 241, in handle_call_service
    response = await hass.services.async_call(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2741, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2784, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 977, in entity_service_call
    single_response = await _handle_entity_call(
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1049, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/vacuum/__init__.py", line 387, in async_pause
    await self.hass.async_add_executor_job(self.pause)
  File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/moebot/vacuum.py", line 100, in pause
    self._moebot.pause()
  File "/usr/local/lib/python3.12/site-packages/pymoebot/__init__.py", line 195, in pause
    raise MoeBotStateException()
pymoebot.MoeBotStateException
2024-06-29 15:04:44.356 ERROR (SyncWorker_61) [pymoebot] Error from device: None
2024-06-29 15:04:58.913 ERROR (SyncWorker_15) [pymoebot] Unable to pause due to current state: 'PAUSED'
2024-06-29 15:04:58.914 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140178578954784] Unexpected exception
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 241, in handle_call_service
    response = await hass.services.async_call(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2741, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2784, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 977, in entity_service_call
    single_response = await _handle_entity_call(
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1049, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/vacuum/__init__.py", line 387, in async_pause
    await self.hass.async_add_executor_job(self.pause)
  File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/moebot/vacuum.py", line 100, in pause
    self._moebot.pause()
  File "/usr/local/lib/python3.12/site-packages/pymoebot/__init__.py", line 195, in pause
    raise MoeBotStateException()
pymoebot.MoeBotStateException
2024-06-29 15:09:13.895 ERROR (SyncWorker_38) [pymoebot] Unable to pause due to current state: 'PAUSED'
2024-06-29 15:09:13.896 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140178578954784] Unexpected exception
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 241, in handle_call_service
    response = await hass.services.async_call(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2741, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2784, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 977, in entity_service_call
    single_response = await _handle_entity_call(
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1049, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/vacuum/__init__.py", line 387, in async_pause
    await self.hass.async_add_executor_job(self.pause)
  File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/moebot/vacuum.py", line 100, in pause
    self._moebot.pause()
  File "/usr/local/lib/python3.12/site-packages/pymoebot/__init__.py", line 195, in pause
    raise MoeBotStateException()
pymoebot.MoeBotStateException
2024-06-29 15:09:17.870 ERROR (SyncWorker_61) [pymoebot] Error from device: None
2024-06-29 15:09:20.713 ERROR (SyncWorker_28) [pymoebot] Error from device: None
2024-06-29 15:09:25.430 ERROR (SyncWorker_46) [pymoebot] Error from device: None
2024-06-29 15:10:27.424 WARNING (MainThread) [homeassistant.components.automation.10_inversor_activar_cargas_por_alto_voltaje] 10/inversor activar cargas por alto voltaje : Already running
2024-06-29 15:12:04.808 ERROR (SyncWorker_43) [pymoebot] Error from device: {'Error': 'Check device key or version', 'Err': '914', 'Payload': None}
2024-06-29 15:12:05.247 INFO (MainThread) [custom_components.moebot] Created a moebot: [MoeBot - {id: bf136b42997205f22fdvcr, state: None, battery: None}]
2024-06-29 15:12:05.479 DEBUG (pymoebot) [custom_components.moebot] 'MoeBotVacuumEntity' got an update: {'dps': {'6': 100, '101': 'MOWING', '102': 0, '103': 'MOWER_LEAN', '104': True, '105': 3, '106': 2323, '116': False}}
2024-06-29 15:12:05.480 DEBUG (pymoebot) [custom_components.moebot] 'MowingStateSensor' got an update: {'dps': {'6': 100, '101': 'MOWING', '102': 0, '103': 'MOWER_LEAN', '104': True, '105': 3, '106': 2323, '116': False}}
2024-06-29 15:12:05.482 DEBUG (pymoebot) [custom_components.moebot] 'BatterySensor' got an update: {'dps': {'6': 100, '101': 'MOWING', '102': 0, '103': 'MOWER_LEAN', '104': True, '105': 3, '106': 2323, '116': False}}
2024-06-29 15:12:05.482 DEBUG (pymoebot) [custom_components.moebot] 'EmergencyStateSensor' got an update: {'dps': {'6': 100, '101': 'MOWING', '102': 0, '103': 'MOWER_LEAN', '104': True, '105': 3, '106': 2323, '116': False}}
2024-06-29 15:12:05.482 DEBUG (pymoebot) [custom_components.moebot] 'WorkModeSensor' got an update: {'dps': {'6': 100, '101': 'MOWING', '102': 0, '103': 'MOWER_LEAN', '104': True, '105': 3, '106': 2323, '116': False}}
2024-06-29 15:12:05.483 DEBUG (pymoebot) [custom_components.moebot] 'PyMoebotVersionSensor' got an update: {'dps': {'6': 100, '101': 'MOWING', '102': 0, '103': 'MOWER_LEAN', '104': True, '105': 3, '106': 2323, '116': False}}
2024-06-29 15:12:05.483 DEBUG (pymoebot) [custom_components.moebot] 'TuyaVersionSensor' got an update: {'dps': {'6': 100, '101': 'MOWING', '102': 0, '103': 'MOWER_LEAN', '104': True, '105': 3, '106': 2323, '116': False}}
2024-06-29 15:12:05.483 DEBUG (pymoebot) [custom_components.moebot] 'WorkingTimeNumber' got an update: {'dps': {'6': 100, '101': 'MOWING', '102': 0, '103': 'MOWER_LEAN', '104': True, '105': 3, '106': 2323, '116': False}}
2024-06-29 15:12:05.483 DEBUG (pymoebot) [custom_components.moebot] 'ParkWhenRainingSwitch' got an update: {'dps': {'6': 100, '101': 'MOWING', '102': 0, '103': 'MOWER_LEAN', '104': True, '105': 3, '106': 2323, '116': False}}
2024-06-29 15:12:05.484 DEBUG (pymoebot) [custom_components.moebot] 'PollDeviceButton' got an update: {'dps': {'6': 100, '101': 'MOWING', '102': 0, '103': 'MOWER_LEAN', '104': True, '105': 3, '106': 2323, '116': False}}
2024-06-29 15:12:36.535 ERROR (SyncWorker_35) [pymoebot] Error from device: None
2024-06-29 15:12:45.742 ERROR (SyncWorker_26) [pymoebot] Unable to cancel due to current state: 'MOWING'
2024-06-29 15:12:45.745 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140178578954784] Unexpected exception
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 241, in handle_call_service
    response = await hass.services.async_call(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2741, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2784, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 977, in entity_service_call
    single_response = await _handle_entity_call(
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1049, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/vacuum/__init__.py", line 296, in async_stop
    await self.hass.async_add_executor_job(partial(self.stop, **kwargs))
  File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/moebot/vacuum.py", line 103, in stop
    self._moebot.cancel()
  File "/usr/local/lib/python3.12/site-packages/pymoebot/__init__.py", line 205, in cancel
    raise MoeBotStateException()
pymoebot.MoeBotStateException
2024-06-29 15:13:50.336 ERROR (SyncWorker_9) [pymoebot] Error from device: None
2024-06-29 15:14:22.746 ERROR (SyncWorker_21) [pymoebot] Unable to cancel due to current state: 'MOWING'
2024-06-29 15:14:22.750 ERROR (MainThread) [homeassistant.helpers.script.websocket_api_script] websocket_api script: Error executing script. Unexpected error for call_service at pos 1: 
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 526, in _async_step
    await getattr(self, handler)()
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 763, in _async_call_service_step
    response_data = await self._async_run_long_action(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 726, in _async_run_long_action
    return await long_task
           ^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2741, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2784, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 977, in entity_service_call
    single_response = await _handle_entity_call(
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1049, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/vacuum/__init__.py", line 296, in async_stop
    await self.hass.async_add_executor_job(partial(self.stop, **kwargs))
  File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/moebot/vacuum.py", line 103, in stop
    self._moebot.cancel()
  File "/usr/local/lib/python3.12/site-packages/pymoebot/__init__.py", line 205, in cancel
    raise MoeBotStateException()
pymoebot.MoeBotStateException
2024-06-29 15:14:22.757 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140178578954784] Error handling message: Unknown error (unknown_error) Tito from 192.168.10.20 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 Edg/126.0.0.0)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 27, in _handle_async_response
    await func(hass, connection, msg)
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 793, in handle_execute_script
    script_result = await script_obj.async_run(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1769, in async_run
    return await asyncio.shield(create_eager_task(run.async_run()))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 464, in async_run
    await self._async_step(log_exceptions=False)
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 528, in _async_step
    self._handle_exception(
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 558, in _handle_exception
    raise exception
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 526, in _async_step
    await getattr(self, handler)()
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 763, in _async_call_service_step
    response_data = await self._async_run_long_action(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 726, in _async_run_long_action
    return await long_task
           ^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2741, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2784, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 977, in entity_service_call
    single_response = await _handle_entity_call(
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1049, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/vacuum/__init__.py", line 296, in async_stop
    await self.hass.async_add_executor_job(partial(self.stop, **kwargs))
  File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/moebot/vacuum.py", line 103, in stop
    self._moebot.cancel()
  File "/usr/local/lib/python3.12/site-packages/pymoebot/__init__.py", line 205, in cancel
    raise MoeBotStateException()
pymoebot.MoeBotStateException
2024-06-29 15:28:57.567 WARNING (MainThread) [homeassistant.components.automation.10_inversor_activar_cargas_por_alto_voltaje] 10/inversor activar cargas por alto voltaje : Already running
2024-06-29 15:29:27.469 WARNING (MainThread) [homeassistant.components.automation.10_inversor_activar_cargas_por_alto_voltaje] 10/inversor activar cargas por alto voltaje : Already running
2024-06-29 15:30:17.641 WARNING (MainThread) [custom_components.localtuya.switch] [bf8...zv0] Entity switch.lavadora_lt is requesting unknown DPS index 18
2024-06-29 15:30:17.641 WARNING (MainThread) [custom_components.localtuya.switch] [bf8...zv0] Entity switch.lavadora_lt is requesting unknown DPS index 19
2024-06-29 15:30:17.642 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback Entity._async_write_ha_state_from_call_soon_threadsafe() (None)
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 992, in _async_write_ha_state_from_call_soon_threadsafe
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1126, in _async_write_ha_state
    state, attr, capabilities, shadowed_attr = self.__async_calculate_state()
                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1065, in __async_calculate_state
    if extra_state_attributes := self.extra_state_attributes:
                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/localtuya/switch.py", line 65, in extra_state_attributes
    self.dps(self._config[CONF_CURRENT_CONSUMPTION]) / 10
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
TypeError: unsupported operand type(s) for /: 'NoneType' and 'int'
2024-06-29 15:38:54.195 ERROR (pymoebot) [pymoebot] Error from device: {'Error': 'Network Error: Unable to Connect', 'Err': '901', 'Payload': None}
2024-06-29 15:40:04.852 ERROR (pymoebot) [pymoebot] Error from device: {'Error': 'Network Error: Unable to Connect', 'Err': '901', 'Payload': None}
2024-06-29 15:41:15.507 ERROR (pymoebot) [pymoebot] Error from device: {'Error': 'Network Error: Unable to Connect', 'Err': '901', 'Payload': None}
2024-06-29 15:41:27.555 WARNING (MainThread) [homeassistant.components.automation.10_inversor_activar_cargas_por_alto_voltaje] 10/inversor activar cargas por alto voltaje : Already running
2024-06-29 15:42:26.163 ERROR (pymoebot) [pymoebot] Error from device: {'Error': 'Network Error: Unable to Connect', 'Err': '901', 'Payload': None}
Whytey commented 2 days ago

Hi,

Thanks for the error log - I don't read Spanish but Google Translate helped :)

  1. What version of the integration are you running?
  2. There is a known problem that I am trying to fix this weekend, but currently, the user needs to transition the mower, per the strict internal state machine:

FYI, there are a number of other components that seem to be causing noise in your logs.

Regards, Whytey

Vicente-Ch commented 2 days ago

English (translation by google): Brilliant. Fixing this would be great. Sorry for the Spanish words.

  1. VERSION 0.2.4

I am also trying with "Localtuya" I am able to create the sensors and observe the state of the robot. But I am not able to create the "vacuum" entity and have it work. DPS 115 doesn't seem to work, instead 116 appears but I can't either. image

I have also tried to read the logs with Nodered but I get some indelible codes. Changing 'Rain mode' switch in smartlife app image but the codes are not repeated either.

pressing injet: image

If you need any other information. We could even do remote desktop, Anydesk

Español: Genial. Solucionar esto seria genial. Lo siento por las palabras en español. Tambien lo estoy intentando con "Localtuya" consigo crear los sensores y observar el estado del robot. Pero no soy capaz de crear la entidad "vacuum" y que funcione. El DPS 115 no parece funcionar, a cambio aparece la 116 pero tampoco consigo. Tambien he intentado leer los logs con Nodered pero obtengo unos codigos indelebles.

Si necesita algun otro dato. Incluso podriamos hacer escritorio remoto, Anydesk

Vicente-Ch commented 1 day ago

English:

  1. Another thing I don't know...Using Localtuya, am I already using TinyTuya?
  2. Moebot integration uses TinyTuya? Does it have to be installed separately in HomeAssistant or is it not necessary?

Español:

  1. Otra cosa q no se...Usando Localtuya, ya estoy usando TinyTuya?.
  2. Moebot integracion utiliza TinyTuya? Hay que instalarlo aparte en HomeAssistant o no hace falta?