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

Error in log when restarting HA #923

Open
FockeOeuf opened this issue Feb 19, 2025 · 3 comments
Open

Error in log when restarting HA #923

FockeOeuf opened this issue Feb 19, 2025 · 3 comments
Labels
Not VTherm issue This seems to be not a VTherm issue question Further information is requested

Comments

@FockeOeuf
Copy link

FockeOeuf commented Feb 19, 2025

Version of the custom_component

7.2.3

Configuration

My VTherm attributes are the following:

hvac_modes: off, heat
min_temp: 5
max_temp: 25
target_temp_step: 0.5
preset_modes: none, frost, eco, comfort, boost
current_temperature: 20.9
temperature: 16.5
current_humidity: 43
hvac_action: idle
preset_mode: none
is_on: true
hvac_mode: heat
type: null
is_controlled_by_central_mode: false
last_central_mode: null
frost_temp: 7
eco_temp: 16.5
boost_temp: 25
comfort_temp: 19.5
frost_away_temp: 7
eco_away_temp: 15
boost_away_temp: 16
comfort_away_temp: 15
target_temperature_step: 0.5
ext_current_temperature: 9.6
ac_mode: false
saved_preset_mode: none
saved_target_temp: 16.5
saved_hvac_mode: heat
last_temperature_datetime: 2025-02-19T16:04:51.021674+01:00
last_ext_temperature_datetime: 2025-02-19T16:09:47.438449+01:00
minimal_activation_delay_sec: 300
minimal_deactivation_delay_sec: 0
total_energy: 142.38
last_update_datetime: 2025-02-19T16:39:47.923854+01:00
timezone: Europe/Paris
temperature_unit: °C
is_device_active: false
device_actives: 
nb_device_actives: 0
ema_temp: 20.89
is_used_by_central_boiler: false
temperature_slope: -0.02
hvac_off_reason: null
max_on_percent: null
have_valve_regulation: false
last_change_time_from_vtherm: 2025-02-19T14:39:58.855277+01:00
presence_sensor_entity_id: binary_sensor.presence_maison
presence_state: on
is_presence_configured: true
power_sensor_entity_id: null
max_power_sensor_entity_id: null
overpowering_state: unavailable
is_power_configured: false
device_power: 1
power_temp: null
current_power: null
current_max_power: null
mean_cycle_power: null
motion_sensor_entity_id: null
motion_state: unavailable
is_motion_configured: false
motion_delay_sec: 0
motion_off_delay_sec: 0
motion_preset: null
no_motion_preset: null
window_state: unknown
window_auto_state: unknown
window_action: window_frost_temp
is_window_bypass: false
window_sensor_entity_id: null
window_delay_sec: 60
window_off_delay_sec: 60
is_window_configured: true
is_window_auto_configured: true
window_auto_open_threshold: 3
window_auto_close_threshold: 0
window_auto_max_duration: 30
is_safety_configured: true
safety_state: off
safety_delay_min: 60
safety_min_on_percent: 0.5
safety_default_on_percent: 0.1
is_auto_start_stop_configured: false
is_over_climate: true
start_hvac_action_date: null
underlying_entities: climate.tado_smart_thermostat
auto_fan_mode: auto_fan_none
current_auto_fan_mode: auto_fan_none
auto_activated_fan_mode: null
auto_deactivated_fan_mode: null
auto_regulation_use_device_temp: false
follow_underlying_temp_change: true
friendly_name: Versatile thermostat Entrée RDC
supported_features: 401

Describe the bug

When starting HA I have the following error message, apparently not linked to any special VTherm, but rather the start of versatile thermostat itself.

2025-02-19 14:39:50.113 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved (None)

Traceback (most recent call last):

  File "/config/custom_components/versatile_thermostat/thermostat_climate.py", line 634, in _async_climate_changed

    await under.set_hvac_mode(self.hvac_mode)

  File "/config/custom_components/versatile_thermostat/underlyings.py", line 613, in set_hvac_mode

    await self._hass.services.async_call(

    ...<3 lines>...

    )

  File "/usr/src/homeassistant/homeassistant/core.py", line 2760, in async_call

    processed_data: dict[str, Any] = handler.schema(service_data)

                                     ~~~~~~~~~~~~~~^^^^^^^^^^^^^^

  File "/usr/local/lib/python3.13/site-packages/voluptuous/validators.py", line 259, in __call__

    return self._exec((Schema(val) for val in self.validators), v)

           ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/usr/local/lib/python3.13/site-packages/voluptuous/validators.py", line 386, in _exec

    raise e if self.msg is None else AllInvalid(self.msg, path=path)

  File "/usr/local/lib/python3.13/site-packages/voluptuous/validators.py", line 382, in _exec

    v = func(v)

  File "/usr/local/lib/python3.13/site-packages/voluptuous/schema_builder.py", line 205, in __call__

    return self._compiled([], data)

           ~~~~~~~~~~~~~~^^^^^^^^^^

  File "/usr/local/lib/python3.13/site-packages/voluptuous/schema_builder.py", line 779, in validate_callable

    return schema(data)

  File "/usr/local/lib/python3.13/site-packages/voluptuous/schema_builder.py", line 205, in __call__

    return self._compiled([], data)

           ~~~~~~~~~~~~~~^^^^^^^^^^

  File "/usr/local/lib/python3.13/site-packages/voluptuous/schema_builder.py", line 549, in validate_dict

    return base_validate(path, data.items(), out)

  File "/usr/local/lib/python3.13/site-packages/voluptuous/schema_builder.py", line 382, in validate_mapping

    raise er.MultipleInvalid(errors)

voluptuous.error.MultipleInvalid: expected HVACMode or one of 'off', 'heat', 'cool', 'heat_cool', 'auto', 'dry', 'fan_only' for dictionary value @ data['hvac_mode']

Almost full log for info:

2025-02-19 17:27:00.899 WARNING (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Versatile thermostat Entrée RDC - don't send regulated temperature cause VTherm target_temp (None) is None. This should be a temporary warning message.
2025-02-19 17:27:00.899 WARNING (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Versatile thermostat dressing - underlying climate.tado_smart_radiator_dressing come back to life. New state=heat, old_state=unavailable. Will refresh its status
2025-02-19 17:27:00.899 WARNING (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Versatile thermostat dressing - don't send regulated temperature cause VTherm target_temp (None) is None. This should be a temporary warning message.
2025-02-19 17:27:00.899 WARNING (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Versatile thermostat Entrée RDC - underlying climate.tado_smart_thermostat come back to life. New state=heat, old_state=unavailable. Will refresh its status
2025-02-19 17:27:00.900 WARNING (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Versatile thermostat salon - underlying climate.tado_smart_radiator_salon come back to life. New state=heat, old_state=unavailable. Will refresh its status
2025-02-19 17:27:00.900 WARNING (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Versatile thermostat salon - don't send regulated temperature cause VTherm target_temp (None) is None. This should be a temporary warning message.
2025-02-19 17:27:00.980 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
  File "/config/custom_components/versatile_thermostat/thermostat_climate.py", line 634, in _async_climate_changed
    await under.set_hvac_mode(self.hvac_mode)
  File "/config/custom_components/versatile_thermostat/underlyings.py", line 613, in set_hvac_mode
    await self._hass.services.async_call(
    ...<3 lines>...
    )
  File "/usr/src/homeassistant/homeassistant/core.py", line 2759, in async_call
    processed_data: dict[str, Any] = handler.schema(service_data)
                                     ~~~~~~~~~~~~~~^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/voluptuous/validators.py", line 259, in __call__
    return self._exec((Schema(val) for val in self.validators), v)
           ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/voluptuous/validators.py", line 386, in _exec
    raise e if self.msg is None else AllInvalid(self.msg, path=path)
  File "/usr/local/lib/python3.13/site-packages/voluptuous/validators.py", line 382, in _exec
    v = func(v)
  File "/usr/local/lib/python3.13/site-packages/voluptuous/schema_builder.py", line 205, in __call__
    return self._compiled([], data)
           ~~~~~~~~~~~~~~^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/voluptuous/schema_builder.py", line 779, in validate_callable
    return schema(data)
  File "/usr/local/lib/python3.13/site-packages/voluptuous/schema_builder.py", line 205, in __call__
    return self._compiled([], data)
           ~~~~~~~~~~~~~~^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/voluptuous/schema_builder.py", line 549, in validate_dict
    return base_validate(path, data.items(), out)
  File "/usr/local/lib/python3.13/site-packages/voluptuous/schema_builder.py", line 382, in validate_mapping
    raise er.MultipleInvalid(errors)
voluptuous.error.MultipleInvalid: expected HVACMode or one of 'off', 'heat', 'cool', 'heat_cool', 'auto', 'dry', 'fan_only' for dictionary value @ data['hvac_mode']
2025-02-19 17:27:03.885 WARNING (MainThread) [homeassistant.components.mqtt.entity] Erroneous JSON: {'pce_alias': 'Maison', 'pce_id': '21404486196846', 'freqence': None, 'activation_date ': datetime.datetime(2025, 1, 7, 21, 4, 2), 'owner_name': 'Yacine Derridj', 'postal_code': '78170'}
2025-02-19 17:27:07.916 WARNING (MainThread) [custom_components.versatile_thermostat.pi_algorithm] Temporarily skipping the self-regulation algorithm while the configured sensor for outdoor temperature is unavailable
2025-02-19 17:27:07.925 WARNING (MainThread) [custom_components.versatile_thermostat.pi_algorithm] Temporarily skipping the self-regulation algorithm while the configured sensor for outdoor temperature is unavailable
@FockeOeuf FockeOeuf changed the title Error in log since v7.2.0 when restarting HA Error in log when restarting HA Feb 19, 2025
@jmcollin78
Copy link
Owner

Hello @FockeOeuf ,

I seems one of your VTherm have been saved with a wrong value of hvac_mode. This can be due to the one underlying hvac_mode value which is not conform. Can you please copy/paste the attributes (Dev Tools / States) of your underlying climate entity of climate.tado_smart_thermostat. I think the problem is here, one of its hvac_mode values is not standard.

@jmcollin78 jmcollin78 added question Further information is requested Not VTherm issue This seems to be not a VTherm issue labels Feb 19, 2025
@FockeOeuf
Copy link
Author

FockeOeuf commented Feb 20, 2025

Hi, thanks for answering so quickly. I've checked the underlying climate but nothing seems odd...

hvac_modes: off, heat
min_temp: 5
max_temp: 25
current_temperature: 19.6
temperature: 16.5
current_humidity: 49
hvac_action: idle
friendly_name: Thermostat général
supported_features: 385

I've checked all underlying entities and they are all like this (all are tado thermostat or radiator valves).

@jmcollin78
Copy link
Owner

Yes this seems totally normal. If it is only at startup and all works fine either, it could be a synchronisation issue (Vtherm uses a climate which is not available for example). This kind of issues are very difficult to fix and depend of the starting order of HA.

I will try to look but I'm not sure to be able to fix something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Not VTherm issue This seems to be not a VTherm issue question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants