Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HA crashes on multiple ValueError #1368

Open
StormCh opened this issue Jun 25, 2024 · 0 comments
Open

HA crashes on multiple ValueError #1368

StormCh opened this issue Jun 25, 2024 · 0 comments
Assignees
Labels
new bug incoming bug issue

Comments

@StormCh
Copy link

StormCh commented Jun 25, 2024

Prerequisites

  • Thermostat radiator valve (TV02-Zigbee)
    von TuYa

Log:

ValueError: could not convert string to float: 'unavailable'
2024-06-25 02:15:46.688 ERROR (MainThread) [custom_components.better_thermostat.utils.controlling] better_thermostat Office Büro: ERROR controlling: climate.office_buro_thermostat
Traceback (most recent call last):
  File "/config/custom_components/better_thermostat/utils/controlling.py", line 53, in control_queue
    _temp = await control_trv(self, trv)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/better_thermostat/utils/controlling.py", line 231, in control_trv
    _current_calibration_s = await get_current_offset(self, heater_entity_id)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/better_thermostat/adapters/delegate.py", line 55, in get_current_offset
    return await self.real_trvs[entity_id]["adapter"].get_current_offset(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/better_thermostat/adapters/mqtt.py", line 84, in get_current_offset
    return float(
           ^^^^^^

this log apears every 4-5ms.

Description

Due to reconnection of internet connection by provider, there is a 15min gap of "lost connection" to the thermostat. In fact htis warning is useless. Log file has a size of more than 100mb containing only this message.

Expected behavior:

reduce warning, reduce log traffic. No crash of HA

Actual behavior:

HA crashes

Versions

HA 2024.6.4 / BT 1.5.1

@StormCh StormCh added the new bug incoming bug issue label Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new bug incoming bug issue
Projects
None yet
Development

No branches or pull requests

2 participants