jmcollin78 / versatile_thermostat

A full featured Thermostat for Home Assistant: presets, window, motion, presence and overpowering management
MIT License
327 stars 34 forks source link

Getting 'current_temp (None) is null' on all vtherms #462

Closed jfpaccini closed 5 months ago

jfpaccini commented 6 months ago

Hello!

Version of the custom_component

6.2.3

Configuration

hvac_modes: heat, off
min_temp: 7
max_temp: 35
target_temp_step: 0.1
friendly_name: Thermostat Sdb Parents
supported_features: 401
hvac_action: idle
preset_modes: none, frost, eco, comfort, boost
temperature: 7
preset_mode: comfort
is_on: true
hvac_mode: heat
is_controlled_by_central_mode: true
frost_temp: 7
eco_temp: 7
boost_temp: 7
comfort_temp: 7
frost_away_temp: 0
eco_away_temp: 0
boost_away_temp: 0
comfort_away_temp: 0
target_temperature_step: 0.1
ac_mode: false
saved_preset_mode: comfort
saved_target_temp: 7
window_state: off
window_auto_state: off
window_bypass_state: false
window_auto_enabled: false
window_action: window_turn_off
security_delay_min: 60
security_min_on_percent: 0.5
security_default_on_percent: 0.1
last_temperature_datetime: 2024-05-16T15:57:47.274560+02:00
last_ext_temperature_datetime: 2024-05-16T16:07:10.686417+02:00
security_state: false
minimal_activation_delay_sec: 10
device_power: 1
mean_cycle_power: 0
total_energy: 0.2
last_update_datetime: 2024-05-16T16:07:10.688105+02:00
timezone: Europe/Paris
temperature_unit: °C
is_device_active: false
is_used_by_central_boiler: false
is_over_switch: true
is_inversed: true
keep_alive_sec: 0
underlying_switch_0: switch.sonoff_100189b3c8
on_percent: 0
power_percent: 0
on_time_sec: 0
off_time_sec: 300
cycle_min: 5
function: tpi
tpi_coef_int: 0.6
tpi_coef_ext: 0.01
current_temperature: 20.9
ext_current_temperature: 22.2
ema_temp: 20.9

Describe the bug

I'm trying to: Create thermostats reading temperatures from Zigbee devices (SONOFF SNZB-02D, through Zigbee2mqtt 1.37.1)

And I expect: Heater to heat according to settings.

But I observe this .... Heat starts at incorrect values (sometimes starts heating at 21°C when target is 20°C, ...)

In the logs I saw this:

2024-05-16 15:58:10.362 WARNING (MainThread) [custom_components.versatile_thermostat.prop_algorithm] Thermostat Studio mode Studio - Proportional algorithm: calculation is not possible cause target_temp (20.0) or current_temp (None) is null. Heating/cooling will be disabled. This could be normal at startup

I read the documentation on the README.md file and I don't find any relevant information about this issue. Nothing relevant in previous issues either.

Debug log

It looks like all fails when a change on the external temperature sensor (also the same model) triggers a recalculation.


2024-05-16 16:19:03.843 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] Thermostat Studio mode Studio_last_temp_datetime - climate state change
2024-05-16 16:19:03.844 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] Thermostat Studio mode Studio_last_ext_temp_datetime - climate state change
2024-05-16 16:19:03.844 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] Thermostat Studio mode Studio_temperature_slope - climate state change
2024-05-16 16:19:03.844 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] Thermostat Studio mode Studio_ema_temperature - climate state change
2024-05-16 16:19:03.844 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] Thermostat Studio mode Studio_energy - climate state change
2024-05-16 16:19:03.844 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] Thermostat Studio mode Studio_mean_power_cycle - climate state change
2024-05-16 16:19:03.844 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] Thermostat Studio mode Studio_power_percent - climate state change
2024-05-16 16:19:03.844 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] Thermostat Studio mode Studio_on_time - climate state change
2024-05-16 16:19:03.844 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] Thermostat Studio mode Studio_off_time - climate state change
2024-05-16 16:19:03.844 DEBUG (MainThread) [custom_components.versatile_thermostat.binary_sensor] Thermostat Studio mode Studio_security_state - climate state change
2024-05-16 16:19:03.844 DEBUG (MainThread) [custom_components.versatile_thermostat.binary_sensor] Thermostat Studio mode Studio_window_bypass_state - climate state change
2024-05-16 16:19:03.844 DEBUG (MainThread) [custom_components.versatile_thermostat.thermostat_switch] VersatileThermostat-Thermostat Studio mode Studio - Calling update_custom_attributes: {'is_on': True, 'hvac_action': <HVACAction.HEATING: 'heating'>, 'hvac_mode': 'heat', 'preset_mode': 'comfort', 'type': None, 'is_controlled_by_central_mode': True, 'last_central_mode': 'Auto', 'frost_temp': 7.0, 'eco_temp': 17.0, 'boost_temp': 7.0, 'comfort_temp': 20.0, 'frost_away_temp': 0, 'eco_away_temp': 0, 'boost_away_temp': 0, 'comfort_away_temp': 0, 'power_temp': None, 'target_temperature_step': 0.1, 'ext_current_temperature': None, 'ac_mode': False, 'current_power': None, 'current_power_max': None, 'saved_preset_mode': 'comfort', 'saved_target_temp': 20.0, 'saved_hvac_mode': None, 'motion_sensor_entity_id': None, 'motion_state': None, 'power_sensor_entity_id': None, 'max_power_sensor_entity_id': None, 'overpowering_state': None, 'presence_sensor_entity_id': 'person.jean_francois_paccini', 'presence_state': None, 'window_state': 'off', 'window_auto_state': 'off', 'window_bypass_state': False, 'window_sensor_entity_id': None, 'window_delay_sec': None, 'window_auto_enabled': False, 'window_auto_open_threshold': None, 'window_auto_close_threshold': None, 'window_auto_max_duration': None, 'window_action': 'window_turn_off', 'security_delay_min': 60, 'security_min_on_percent': 0.5, 'security_default_on_percent': 0.1, 'last_temperature_datetime': '2024-05-16T16:18:41.313376+02:00', 'last_ext_temperature_datetime': '2024-05-16T16:18:41.313376+02:00', 'security_state': False, 'minimal_activation_delay_sec': 10, 'device_power': 1.0, 'mean_cycle_power': 0.0, 'total_energy': 0, 'last_update_datetime': '2024-05-16T16:19:03.843814+02:00', 'timezone': 'Europe/Paris', 'temperature_unit': <UnitOfTemperature.CELSIUS: '°C'>, 'is_device_active': True, 'ema_temp': None, 'is_used_by_central_boiler': False, 'is_over_switch': True, 'is_inversed': False, 'keep_alive_sec': 0, 'underlying_switch_0': 'switch.sonoff_10018a14a6', 'underlying_switch_1': None, 'underlying_switch_2': None, 'underlying_switch_3': None, 'on_percent': 0, 'power_percent': 0, 'on_time_sec': 0, 'off_time_sec': 300, 'cycle_min': 5, 'function': 'tpi', 'tpi_coef_int': 0.6, 'tpi_coef_ext': 0.01}
2024-05-16 16:19:06.577 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Thermostat Sdb Parents - external Temperature changed. Event.new_state is <state sensor.0x048727fffec52e66_temperature=22.4; state_class=measurement, unit_of_measurement=°C, device_class=temperature, friendly_name=temp extérieure Température @ 2024-05-16T16:19:06.577736+02:00>
2024-05-16 16:19:06.577 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Thermostat Sdb Parents - After setting _last_ext_temperature_measure 2024-05-16 16:19:06.577736+02:00 , state.last_changed.replace=2024-05-16 16:19:06.577736+02:00
2024-05-16 16:19:06.577 DEBUG (MainThread) [custom_components.versatile_thermostat.thermostat_switch] VersatileThermostat-Thermostat Sdb Parents - recalculate all
2024-05-16 16:19:06.578 WARNING (MainThread) [custom_components.versatile_thermostat.prop_algorithm] Thermostat Sdb Parents - Proportional algorithm: calculation is not possible cause target_temp (7.0) or current_temp (None) is null. Heating/cooling will be disabled. This could be normal at startup
2024-05-16 16:19:06.578 DEBUG (MainThread) [custom_components.versatile_thermostat.prop_algorithm] Security is Off using the calculated_on_percent 0.000000
2024-05-16 16:19:06.579 DEBUG (MainThread) [custom_components.versatile_thermostat.prop_algorithm] Thermostat Sdb Parents - heating percent calculated for current_temp -9999.0, ext_current_temp 22.4 and target_temp 7.0 is 0.00, on_time is 0 (sec), off_time is 300 (sec)
2024-05-16 16:19:06.579 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] Thermostat Sdb Parents_last_temp_datetime - climate state change
2024-05-16 16:19:06.579 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] Thermostat Sdb Parents_last_ext_temp_datetime - climate state change
2024-05-16 16:19:06.579 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] Thermostat Sdb Parents_temperature_slope - climate state change
2024-05-16 16:19:06.579 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] Thermostat Sdb Parents_ema_temperature - climate state change
2024-05-16 16:19:06.579 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] Thermostat Sdb Parents_energy - climate state change
2024-05-16 16:19:06.579 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] Thermostat Sdb Parents_mean_power_cycle - climate state change
2024-05-16 16:19:06.579 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] Thermostat Sdb Parents_power_percent - climate state change
2024-05-16 16:19:06.579 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] Thermostat Sdb Parents_on_time - climate state change
2024-05-16 16:19:06.579 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] Thermostat Sdb Parents_off_time - climate state change
2024-05-16 16:19:06.579 DEBUG (MainThread) [custom_components.versatile_thermostat.binary_sensor] Thermostat Sdb Parents_security_state - climate state change
2024-05-16 16:19:06.579 DEBUG (MainThread) [custom_components.versatile_thermostat.binary_sensor] Thermostat Sdb Parents_window_bypass_state - climate state change
2024-05-16 16:19:06.579 DEBUG (MainThread) [custom_components.versatile_thermostat.thermostat_switch] VersatileThermostat-Thermostat Sdb Parents - Calling update_custom_attributes: {'is_on': True, 'hvac_action': <HVACAction.IDLE: 'idle'>, 'hvac_mode': 'heat', 'preset_mode': 'comfort', 'type': None, 'is_controlled_by_central_mode': True, 'last_central_mode': 'Auto', 'frost_temp': 7.0, 'eco_temp': 7.0, 'boost_temp': 7.0, 'comfort_temp': 7.0, 'frost_away_temp': 0, 'eco_away_temp': 0, 'boost_away_temp': 0, 'comfort_away_temp': 0, 'power_temp': None, 'target_temperature_step': 0.1, 'ext_current_temperature': 22.4, 'ac_mode': False, 'current_power': None, 'current_power_max': None, 'saved_preset_mode': 'comfort', 'saved_target_temp': 7.0, 'saved_hvac_mode': None, 'motion_sensor_entity_id': None, 'motion_state': None, 'power_sensor_entity_id': None, 'max_power_sensor_entity_id': None, 'overpowering_state': None, 'presence_sensor_entity_id': None, 'presence_state': None, 'window_state': 'off', 'window_auto_state': 'off', 'window_bypass_state': False, 'window_sensor_entity_id': None, 'window_delay_sec': None, 'window_auto_enabled': False, 'window_auto_open_threshold': None, 'window_auto_close_threshold': None, 'window_auto_max_duration': None, 'window_action': 'window_turn_off', 'security_delay_min': 60, 'security_min_on_percent': 0.5, 'security_default_on_percent': 0.1, 'last_temperature_datetime': '2024-05-16T16:18:41.311059+02:00', 'last_ext_temperature_datetime': '2024-05-16T16:19:06.577736+02:00', 'security_state': False, 'minimal_activation_delay_sec': 10, 'device_power': 1.0, 'mean_cycle_power': 0.0, 'total_energy': 0.2, 'last_update_datetime': '2024-05-16T16:19:06.579217+02:00', 'timezone': 'Europe/Paris', 'temperature_unit': <UnitOfTemperature.CELSIUS: '°C'>, 'is_device_active': False, 'ema_temp': None, 'is_used_by_central_boiler': False, 'is_over_switch': True, 'is_inversed': True, 'keep_alive_sec': 0, 'underlying_switch_0': 'switch.sonoff_100189b3c8', 'underlying_switch_1': None, 'underlying_switch_2': None, 'underlying_switch_3': None, 'on_percent': 0, 'power_percent': 0, 'on_time_sec': 0, 'off_time_sec': 300, 'cycle_min': 5, 'function': 'tpi', 'tpi_coef_int': 0.6, 'tpi_coef_ext': 0.01}
2024-05-16 16:19:06.580 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Thermostat Sdb Parents - Checking new cycle. hvac_mode=heat, security_state=False, preset_mode=comfort
2024-05-16 16:19:06.580 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Thermostat Sdb Parents - Window auto is on, check the alert. last slope is 0.000
2024-05-16 16:19:06.580 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Thermostat Sdb Parents - Window auto event is ignored because bypass is ON or window auto detection is disabled
2024-05-16 16:19:06.580 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Thermostat Sdb Parents - power not configured. check_overpowering not available
2024-05-16 16:19:06.580 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Thermostat Sdb Parents - checking security delta_temp=0.4 delta_ext_temp=0.0 mod_cond=True temp_cond=False climate_cond=False switch_cond=False
2024-05-16 16:19:06.580 DEBUG (MainThread) [custom_components.versatile_thermostat.underlyings] VersatileThermostat-Thermostat Sdb Parents-switch.sonoff_100189b3c8 - Starting new cycle hvac_mode=heat on_time_sec=0 off_time_sec=300 force=False
2024-05-16 16:19:06.580 DEBUG (MainThread) [custom_components.versatile_thermostat.underlyings] VersatileThermostat-Thermostat Sdb Parents-switch.sonoff_100189b3c8 - nothing to do
2024-05-16 16:19:06.580 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] Thermostat Sdb Parents_last_temp_datetime - climate state change
2024-05-16 16:19:06.580 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] Thermostat Sdb Parents_last_ext_temp_datetime - climate state change
2024-05-16 16:19:06.580 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] Thermostat Sdb Parents_temperature_slope - climate state change
2024-05-16 16:19:06.580 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] Thermostat Sdb Parents_ema_temperature - climate state change
2024-05-16 16:19:06.580 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] Thermostat Sdb Parents_energy - climate state change
2024-05-16 16:19:06.580 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] Thermostat Sdb Parents_mean_power_cycle - climate state change
2024-05-16 16:19:06.581 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] Thermostat Sdb Parents_power_percent - climate state change
2024-05-16 16:19:06.581 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] Thermostat Sdb Parents_on_time - climate state change
2024-05-16 16:19:06.581 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] Thermostat Sdb Parents_off_time - climate state change
2024-05-16 16:19:06.581 DEBUG (MainThread) [custom_components.versatile_thermostat.binary_sensor] Thermostat Sdb Parents_security_state - climate state change
2024-05-16 16:19:06.581 DEBUG (MainThread) [custom_components.versatile_thermostat.binary_sensor] Thermostat Sdb Parents_window_bypass_state - climate state change
2024-05-16 16:19:06.581 DEBUG (MainThread) [custom_components.versatile_thermostat.thermostat_switch] VersatileThermostat-Thermostat Sdb Parents - Calling update_custom_attributes: {'is_on': True, 'hvac_action': <HVACAction.IDLE: 'idle'>, 'hvac_mode': 'heat', 'preset_mode': 'comfort', 'type': None, 'is_controlled_by_central_mode': True, 'last_central_mode': 'Auto', 'frost_temp': 7.0, 'eco_temp': 7.0, 'boost_temp': 7.0, 'comfort_temp': 7.0, 'frost_away_temp': 0, 'eco_away_temp': 0, 'boost_away_temp': 0, 'comfort_away_temp': 0, 'power_temp': None, 'target_temperature_step': 0.1, 'ext_current_temperature': 22.4, 'ac_mode': False, 'current_power': None, 'current_power_max': None, 'saved_preset_mode': 'comfort', 'saved_target_temp': 7.0, 'saved_hvac_mode': None, 'motion_sensor_entity_id': None, 'motion_state': None, 'power_sensor_entity_id': None, 'max_power_sensor_entity_id': None, 'overpowering_state': None, 'presence_sensor_entity_id': None, 'presence_state': None, 'window_state': 'off', 'window_auto_state': 'off', 'window_bypass_state': False, 'window_sensor_entity_id': None, 'window_delay_sec': None, 'window_auto_enabled': False, 'window_auto_open_threshold': None, 'window_auto_close_threshold': None, 'window_auto_max_duration': None, 'window_action': 'window_turn_off', 'security_delay_min': 60, 'security_min_on_percent': 0.5, 'security_default_on_percent': 0.1, 'last_temperature_datetime': '2024-05-16T16:18:41.311059+02:00', 'last_ext_temperature_datetime': '2024-05-16T16:19:06.577736+02:00', 'security_state': False, 'minimal_activation_delay_sec': 10, 'device_power': 1.0, 'mean_cycle_power': 0.0, 'total_energy': 0.2, 'last_update_datetime': '2024-05-16T16:19:06.580655+02:00', 'timezone': 'Europe/Paris', 'temperature_unit': <UnitOfTemperature.CELSIUS: '°C'>, 'is_device_active': False, 'ema_temp': None, 'is_used_by_central_boiler': False, 'is_over_switch': True, 'is_inversed': True, 'keep_alive_sec': 0, 'underlying_switch_0': 'switch.sonoff_100189b3c8', 'underlying_switch_1': None, 'underlying_switch_2': None, 'underlying_switch_3': None, 'on_percent': 0, 'power_percent': 0, 'on_time_sec': 0, 'off_time_sec': 300, 'cycle_min': 5, 'function': 'tpi', 'tpi_coef_int': 0.6, 'tpi_coef_ext': 0.01}
2024-05-16 16:19:06.581 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Thermostat Studio mode Studio - external Temperature changed. Event.new_state is <state sensor.0x048727fffec52e66_temperature=22.4; state_class=measurement, unit_of_measurement=°C, device_class=temperature, friendly_name=temp extérieure Température @ 2024-05-16T16:19:06.577736+02:00>
2024-05-16 16:19:06.581 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Thermostat Studio mode Studio - After setting _last_ext_temperature_measure 2024-05-16 16:19:06.577736+02:00 , state.last_changed.replace=2024-05-16 16:19:06.577736+02:00
2024-05-16 16:19:06.581 DEBUG (MainThread) [custom_components.versatile_thermostat.thermostat_switch] VersatileThermostat-Thermostat Studio mode Studio - recalculate all
2024-05-16 16:19:06.581 WARNING (MainThread) [custom_components.versatile_thermostat.prop_algorithm] Thermostat Studio mode Studio - Proportional algorithm: calculation is not possible cause target_temp (20.0) or current_temp (None) is null. Heating/cooling will be disabled. This could be normal at startup
2024-05-16 16:19:06.581 DEBUG (MainThread) [custom_components.versatile_thermostat.prop_algorithm] Security is Off using the calculated_on_percent 0.000000
2024-05-16 16:19:06.581 DEBUG (MainThread) [custom_components.versatile_thermostat.prop_algorithm] Thermostat Studio mode Studio - heating percent calculated for current_temp -9999.0, ext_current_temp 22.4 and target_temp 20.0 is 0.00, on_time is 0 (sec), off_time is 300 (sec)
2024-05-16 16:19:06.581 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] Thermostat Studio mode Studio_last_temp_datetime - climate state change
2024-05-16 16:19:06.581 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] Thermostat Studio mode Studio_last_ext_temp_datetime - climate state change
2024-05-16 16:19:06.581 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] Thermostat Studio mode Studio_temperature_slope - climate state change
2024-05-16 16:19:06.581 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] Thermostat Studio mode Studio_ema_temperature - climate state change
2024-05-16 16:19:06.581 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] Thermostat Studio mode Studio_energy - climate state change
2024-05-16 16:19:06.582 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] Thermostat Studio mode Studio_mean_power_cycle - climate state change
2024-05-16 16:19:06.582 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] Thermostat Studio mode Studio_power_percent - climate state change
2024-05-16 16:19:06.582 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] Thermostat Studio mode Studio_on_time - climate state change
2024-05-16 16:19:06.582 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] Thermostat Studio mode Studio_off_time - climate state change
2024-05-16 16:19:06.582 DEBUG (MainThread) [custom_components.versatile_thermostat.binary_sensor] Thermostat Studio mode Studio_security_state - climate state change
2024-05-16 16:19:06.582 DEBUG (MainThread) [custom_components.versatile_thermostat.binary_sensor] Thermostat Studio mode Studio_window_bypass_state - climate state change
2024-05-16 16:19:06.582 DEBUG (MainThread) [custom_components.versatile_thermostat.thermostat_switch] VersatileThermostat-Thermostat Studio mode Studio - Calling update_custom_attributes: {'is_on': True, 'hvac_action': <HVACAction.HEATING: 'heating'>, 'hvac_mode': 'heat', 'preset_mode': 'comfort', 'type': None, 'is_controlled_by_central_mode': True, 'last_central_mode': 'Auto', 'frost_temp': 7.0, 'eco_temp': 17.0, 'boost_temp': 7.0, 'comfort_temp': 20.0, 'frost_away_temp': 0, 'eco_away_temp': 0, 'boost_away_temp': 0, 'comfort_away_temp': 0, 'power_temp': None, 'target_temperature_step': 0.1, 'ext_current_temperature': 22.4, 'ac_mode': False, 'current_power': None, 'current_power_max': None, 'saved_preset_mode': 'comfort', 'saved_target_temp': 20.0, 'saved_hvac_mode': None, 'motion_sensor_entity_id': None, 'motion_state': None, 'power_sensor_entity_id': None, 'max_power_sensor_entity_id': None, 'overpowering_state': None, 'presence_sensor_entity_id': 'person.jean_francois_paccini', 'presence_state': None, 'window_state': 'off', 'window_auto_state': 'off', 'window_bypass_state': False, 'window_sensor_entity_id': None, 'window_delay_sec': None, 'window_auto_enabled': False, 'window_auto_open_threshold': None, 'window_auto_close_threshold': None, 'window_auto_max_duration': None, 'window_action': 'window_turn_off', 'security_delay_min': 60, 'security_min_on_percent': 0.5, 'security_default_on_percent': 0.1, 'last_temperature_datetime': '2024-05-16T16:18:41.313376+02:00', 'last_ext_temperature_datetime': '2024-05-16T16:19:06.577736+02:00', 'security_state': False, 'minimal_activation_delay_sec': 10, 'device_power': 1.0, 'mean_cycle_power': 0.0, 'total_energy': 0, 'last_update_datetime': '2024-05-16T16:19:06.581602+02:00', 'timezone': 'Europe/Paris', 'temperature_unit': <UnitOfTemperature.CELSIUS: '°C'>, 'is_device_active': True, 'ema_temp': None, 'is_used_by_central_boiler': False, 'is_over_switch': True, 'is_inversed': False, 'keep_alive_sec': 0, 'underlying_switch_0': 'switch.sonoff_10018a14a6', 'underlying_switch_1': None, 'underlying_switch_2': None, 'underlying_switch_3': None, 'on_percent': 0, 'power_percent': 0, 'on_time_sec': 0, 'off_time_sec': 300, 'cycle_min': 5, 'function': 'tpi', 'tpi_coef_int': 0.6, 'tpi_coef_ext': 0.01}
2024-05-16 16:19:06.582 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Thermostat Studio mode Studio - Checking new cycle. hvac_mode=heat, security_state=False, preset_mode=comfort
2024-05-16 16:19:06.582 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Thermostat Studio mode Studio - Window auto is on, check the alert. last slope is 0.000
2024-05-16 16:19:06.582 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Thermostat Studio mode Studio - Window auto event is ignored because bypass is ON or window auto detection is disabled
2024-05-16 16:19:06.582 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Thermostat Studio mode Studio - power not configured. check_overpowering not available
2024-05-16 16:19:06.582 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Thermostat Studio mode Studio - checking security delta_temp=0.4 delta_ext_temp=0.0 mod_cond=True temp_cond=False climate_cond=False switch_cond=False
2024-05-16 16:19:06.582 DEBUG (MainThread) [custom_components.versatile_thermostat.underlyings] VersatileThermostat-Thermostat Studio mode Studio-switch.sonoff_10018a14a6 - Starting new cycle hvac_mode=heat on_time_sec=0 off_time_sec=300 force=False
2024-05-16 16:19:06.582 INFO (MainThread) [custom_components.versatile_thermostat.underlyings] VersatileThermostat-Thermostat Studio mode Studio-switch.sonoff_10018a14a6 - stop heating (2) for 5 min 0 sec
2024-05-16 16:19:06.582 DEBUG (MainThread) [custom_components.versatile_thermostat.underlyings] VersatileThermostat-Thermostat Studio mode Studio-switch.sonoff_10018a14a6 - Stopping underlying entity switch.sonoff_10018a14a6
2024-05-16 16:19:06.585 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] Thermostat Studio mode Studio_last_temp_datetime - climate state change
2024-05-16 16:19:06.585 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] Thermostat Studio mode Studio_last_ext_temp_datetime - climate state change
2024-05-16 16:19:06.585 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] Thermostat Studio mode Studio_temperature_slope - climate state change
2024-05-16 16:19:06.585 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] Thermostat Studio mode Studio_ema_temperature - climate state change
2024-05-16 16:19:06.585 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] Thermostat Studio mode Studio_energy - climate state change
2024-05-16 16:19:06.585 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] Thermostat Studio mode Studio_mean_power_cycle - climate state change
2024-05-16 16:19:06.585 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] Thermostat Studio mode Studio_power_percent - climate state change
2024-05-16 16:19:06.585 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] Thermostat Studio mode Studio_on_time - climate state change
2024-05-16 16:19:06.585 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] Thermostat Studio mode Studio_off_time - climate state change
2024-05-16 16:19:06.585 DEBUG (MainThread) [custom_components.versatile_thermostat.binary_sensor] Thermostat Studio mode Studio_security_state - climate state change
2024-05-16 16:19:06.585 DEBUG (MainThread) [custom_components.versatile_thermostat.binary_sensor] Thermostat Studio mode Studio_window_bypass_state - climate state change
2024-05-16 16:19:06.585 DEBUG (MainThread) [custom_components.versatile_thermostat.thermostat_switch] VersatileThermostat-Thermostat Studio mode Studio - Calling update_custom_attributes: {'is_on': True, 'hvac_action': <HVACAction.HEATING: 'heating'>, 'hvac_mode': 'heat', 'preset_mode': 'comfort', 'type': None, 'is_controlled_by_central_mode': True, 'last_central_mode': 'Auto', 'frost_temp': 7.0, 'eco_temp': 17.0, 'boost_temp': 7.0, 'comfort_temp': 20.0, 'frost_away_temp': 0, 'eco_away_temp': 0, 'boost_away_temp': 0, 'comfort_away_temp': 0, 'power_temp': None, 'target_temperature_step': 0.1, 'ext_current_temperature': 22.4, 'ac_mode': False, 'current_power': None, 'current_power_max': None, 'saved_preset_mode': 'comfort', 'saved_target_temp': 20.0, 'saved_hvac_mode': None, 'motion_sensor_entity_id': None, 'motion_state': None, 'power_sensor_entity_id': None, 'max_power_sensor_entity_id': None, 'overpowering_state': None, 'presence_sensor_entity_id': 'person.jean_francois_paccini', 'presence_state': None, 'window_state': 'off', 'window_auto_state': 'off', 'window_bypass_state': False, 'window_sensor_entity_id': None, 'window_delay_sec': None, 'window_auto_enabled': False, 'window_auto_open_threshold': None, 'window_auto_close_threshold': None, 'window_auto_max_duration': None, 'window_action': 'window_turn_off', 'security_delay_min': 60, 'security_min_on_percent': 0.5, 'security_default_on_percent': 0.1, 'last_temperature_datetime': '2024-05-16T16:18:41.313376+02:00', 'last_ext_temperature_datetime': '2024-05-16T16:19:06.577736+02:00', 'security_state': False, 'minimal_activation_delay_sec': 10, 'device_power': 1.0, 'mean_cycle_power': 0.0, 'total_energy': 0, 'last_update_datetime': '2024-05-16T16:19:06.584962+02:00', 'timezone': 'Europe/Paris', 'temperature_unit': <UnitOfTemperature.CELSIUS: '°C'>, 'is_device_active': True, 'ema_temp': None, 'is_used_by_central_boiler': False, 'is_over_switch': True, 'is_inversed': False, 'keep_alive_sec': 0, 'underlying_switch_0': 'switch.sonoff_10018a14a6', 'underlying_switch_1': None, 'underlying_switch_2': None, 'underlying_switch_3': None, 'on_percent': 0, 'power_percent': 0, 'on_time_sec': 0, 'off_time_sec': 300, 'cycle_min': 5, 'function': 'tpi', 'tpi_coef_int': 0.6, 'tpi_coef_ext': 0.01}
2024-05-16 16:19:06.639 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] Thermostat Studio mode Studio_last_temp_datetime - climate state change
2024-05-16 16:19:06.639 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] Thermostat Studio mode Studio_last_ext_temp_datetime - climate state change
2024-05-16 16:19:06.639 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] Thermostat Studio mode Studio_temperature_slope - climate state change
2024-05-16 16:19:06.639 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] Thermostat Studio mode Studio_ema_temperature - climate state change
2024-05-16 16:19:06.639 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] Thermostat Studio mode Studio_energy - climate state change
2024-05-16 16:19:06.639 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] Thermostat Studio mode Studio_mean_power_cycle - climate state change
2024-05-16 16:19:06.639 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] Thermostat Studio mode Studio_power_percent - climate state change
2024-05-16 16:19:06.639 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] Thermostat Studio mode Studio_on_time - climate state change
2024-05-16 16:19:06.639 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] Thermostat Studio mode Studio_off_time - climate state change
2024-05-16 16:19:06.639 DEBUG (MainThread) [custom_components.versatile_thermostat.binary_sensor] Thermostat Studio mode Studio_security_state - climate state change
2024-05-16 16:19:06.639 DEBUG (MainThread) [custom_components.versatile_thermostat.binary_sensor] Thermostat Studio mode Studio_window_bypass_state - climate state change
2024-05-16 16:19:06.640 DEBUG (MainThread) [custom_components.versatile_thermostat.thermostat_switch] VersatileThermostat-Thermostat Studio mode Studio - Calling update_custom_attributes: {'is_on': True, 'hvac_action': <HVACAction.IDLE: 'idle'>, 'hvac_mode': 'heat', 'preset_mode': 'comfort', 'type': None, 'is_controlled_by_central_mode': True, 'last_central_mode': 'Auto', 'frost_temp': 7.0, 'eco_temp': 17.0, 'boost_temp': 7.0, 'comfort_temp': 20.0, 'frost_away_temp': 0, 'eco_away_temp': 0, 'boost_away_temp': 0, 'comfort_away_temp': 0, 'power_temp': None, 'target_temperature_step': 0.1, 'ext_current_temperature': 22.4, 'ac_mode': False, 'current_power': None, 'current_power_max': None, 'saved_preset_mode': 'comfort', 'saved_target_temp': 20.0, 'saved_hvac_mode': None, 'motion_sensor_entity_id': None, 'motion_state': None, 'power_sensor_entity_id': None, 'max_power_sensor_entity_id': None, 'overpowering_state': None, 'presence_sensor_entity_id': 'person.jean_francois_paccini', 'presence_state': None, 'window_state': 'off', 'window_auto_state': 'off', 'window_bypass_state': False, 'window_sensor_entity_id': None, 'window_delay_sec': None, 'window_auto_enabled': False, 'window_auto_open_threshold': None, 'window_auto_close_threshold': None, 'window_auto_max_duration': None, 'window_action': 'window_turn_off', 'security_delay_min': 60, 'security_min_on_percent': 0.5, 'security_default_on_percent': 0.1, 'last_temperature_datetime': '2024-05-16T16:18:41.313376+02:00', 'last_ext_temperature_datetime': '2024-05-16T16:19:06.577736+02:00', 'security_state': False, 'minimal_activation_delay_sec': 10, 'device_power': 1.0, 'mean_cycle_power': 0.0, 'total_energy': 0, 'last_update_datetime': '2024-05-16T16:19:06.639327+02:00', 'timezone': 'Europe/Paris', 'temperature_unit': <UnitOfTemperature.CELSIUS: '°C'>, 'is_device_active': False, 'ema_temp': None, 'is_used_by_central_boiler': False, 'is_over_switch': True, 'is_inversed': False, 'keep_alive_sec': 0, 'underlying_switch_0': 'switch.sonoff_10018a14a6', 'underlying_switch_1': None, 'underlying_switch_2': None, 'underlying_switch_3': None, 'on_percent': 0, 'power_percent': 0, 'on_time_sec': 0, 'off_time_sec': 300, 'cycle_min': 5, 'function': 'tpi', 'tpi_coef_int': 0.6, 'tpi_coef_ext': 0.01}

Thanks !

jmcollin78 commented 5 months ago

Hello,

It is possible that this message is triggered at startup (waiting for the temperature sensor to be up). This should not occurs after startup. If it is the case, check your device or the configuration in VTherm.

I will close this issue which is certainly not a Vtherm issue. Don't hesitate to reopen if you don't agree with that.

jfpaccini commented 5 months ago

ok. I am investigating issues with Zigbee2mqtt: last seen information is not available on devices.