Strange behavior climate automation

Hello everyone! I’m new to the community but have been enjoying HA for the past half year or so.
Brief setup:

  • HA is run on a virtual machine inside a Debian, which works on a Lenovo server.
  • I’m using Sonoff stick with the latest firmware paired with Zigbee2MQTT, around connected 20+ devices

I have created automation to heat up a towel rack and ventilation when someone showers, so the automation is triggered by a sensor’s humidity attribute.

Until yesterday, the automation worked like a charm, but then I noticed weird behaviour - the second time the automation is run, it does not return the thermostat state back to 10 degrees.

Here’s the full automation config:

id: '1660763328613'
alias: If humidity >70% -> boost ventilation until humidity falls below 65%
description: ''
trigger:
  - platform: numeric_state
    entity_id: sensor.sensor_yellow_humidity
    for:
      hours: 0
      minutes: 0
      seconds: 30
    attribute: humidity
    above: '70'
condition: []
action:
  - type: turn_on
    device_id: b7b3bcdaf82ab7f666951ebe52ebaf9a
    entity_id: switch.ventilation_3rd_floor
    domain: switch
  - service: climate.set_temperature
    data:
      temperature: 26
    target:
      entity_id: climate.thermostat_black
  - delay:
      hours: 0
      minutes: 6
      seconds: 0
      milliseconds: 0
  - service: climate.set_temperature
    data:
      temperature: 10
    target:
      entity_id: climate.thermostat_black
  - wait_for_trigger:
      - platform: numeric_state
        entity_id: sensor.sensor_yellow_humidity
        for:
          hours: 0
          minutes: 0
          seconds: 0
        attribute: humidity
        below: 66
    timeout:
      hours: 0
      minutes: 20
      seconds: 0
      milliseconds: 0
    continue_on_timeout: true
  - type: turn_off
    device_id: b7b3bcdaf82ab7f666951ebe52ebaf9a
    entity_id: switch.ventilation_3rd_floor
    domain: switch
mode: single

In automation trace everything works fine:
1st automation trace

Executed: April 26, 2023 at 6:56:50 AM
Result:
params:
  domain: climate
  service: set_temperature
  service_data:
    temperature: 10
    entity_id:
      - climate.thermostat_black
  target:
    entity_id:
      - climate.thermostat_black
running_script: false
limit: 10

In the second too:

Executed: April 26, 2023 at 7:50:22 AM
Result:
params:
  domain: climate
  service: set_temperature
  service_data:
    temperature: 10
    entity_id:
      - climate.thermostat_black
  target:
    entity_id:
      - climate.thermostat_black
running_script: false
limit: 10

But the zigbee2mqtt logs show a different picture (I filtered only thermostat logs):

info  2023-04-26 06:29:58: MQTT publish: topic 'zigbee2mqtt/Thermostat black', payload '{"battery":80,"boost_heating":"OFF","boost_heating_countdown":0,"boost_heating_countdown_time_set":300,"child_lock":"UNLOCK","current_heating_setpoint":10,"eco_mode":"OFF","eco_temperature":18,"linkquality":47,"local_temperature":21,"local_temperature_calibration":0,"max_temperature":45,"min_temperature":5,"position":25,"preset":"manual","programming_mode":"06:00/20°C  11:30/21°C  13:30/22°C  17:30/23°C  06:00/24°C  12:00/23°C  14:30/22°C  17:30/21°C  06:00/19°C  12:30/20°C  14:30/21°C  18:30/20°C","running_state":"idle","system_mode":"heat","update":{"installed_version":-1,"latest_version":-1,"state":null},"update_available":null,"valve_state":"CLOSED","window":"CLOSED","window_detection":"OFF"}'
debug 2023-04-26 06:32:10: Received Zigbee message from 'Thermostat black', type 'commandMcuSyncTime', cluster 'manuSpecificTuya', data '{"payloadSize":28169}' from endpoint 1 with groupID 0
debug 2023-04-26 06:40:28: Received Zigbee message from 'Thermostat black', type 'commandDataResponse', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[0,0,0,200],"type":"Buffer"},"datatype":2,"dp":3}],"seq":3111}' from endpoint 1 with groupID 0
info  2023-04-26 06:40:28: MQTT publish: topic 'zigbee2mqtt/Thermostat black', payload '{"battery":80,"boost_heating":"OFF","boost_heating_countdown":0,"boost_heating_countdown_time_set":300,"child_lock":"UNLOCK","current_heating_setpoint":10,"eco_mode":"OFF","eco_temperature":18,"linkquality":54,"local_temperature":20,"local_temperature_calibration":0,"max_temperature":45,"min_temperature":5,"position":25,"preset":"manual","programming_mode":"06:00/20°C  11:30/21°C  13:30/22°C  17:30/23°C  06:00/24°C  12:00/23°C  14:30/22°C  17:30/21°C  06:00/19°C  12:30/20°C  14:30/21°C  18:30/20°C","running_state":"idle","system_mode":"heat","update":{"installed_version":-1,"latest_version":-1,"state":null},"update_available":null,"valve_state":"CLOSED","window":"CLOSED","window_detection":"OFF"}'

#first automation

debug 2023-04-26 06:50:50: Received MQTT message on 'zigbee2mqtt/Thermostat black/set/current_heating_setpoint' with data '26.0'
debug 2023-04-26 06:50:50: Publishing 'set' 'current_heating_setpoint' to 'Thermostat black'
debug 2023-04-26 06:50:50: Received Zigbee message from 'Thermostat black', type 'commandDataResponse', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[0,0,0,26],"type":"Buffer"},"datatype":2,"dp":2}],"seq":40}' from endpoint 1 with groupID 0
info  2023-04-26 06:50:50: MQTT publish: topic 'zigbee2mqtt/Thermostat black', payload '{"battery":80,"boost_heating":"OFF","boost_heating_countdown":0,"boost_heating_countdown_time_set":300,"child_lock":"UNLOCK","current_heating_setpoint":26,"eco_mode":"OFF","eco_temperature":18,"linkquality":47,"local_temperature":20,"local_temperature_calibration":0,"max_temperature":45,"min_temperature":5,"position":25,"preset":"manual","programming_mode":"06:00/20°C  11:30/21°C  13:30/22°C  17:30/23°C  06:00/24°C  12:00/23°C  14:30/22°C  17:30/21°C  06:00/19°C  12:30/20°C  14:30/21°C  18:30/20°C","running_state":"idle","system_mode":"heat","update":{"installed_version":-1,"latest_version":-1,"state":null},"update_available":null,"valve_state":"CLOSED","window":"CLOSED","window_detection":"OFF"}'
debug 2023-04-26 06:50:51: Received Zigbee message from 'Thermostat black', type 'commandDataResponse', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[0],"type":"Buffer"},"datatype":4,"dp":7}],"seq":296}' from endpoint 1 with groupID 0
info  2023-04-26 06:50:51: MQTT publish: topic 'zigbee2mqtt/Thermostat black', payload '{"battery":80,"boost_heating":"OFF","boost_heating_countdown":0,"boost_heating_countdown_time_set":300,"child_lock":"UNLOCK","current_heating_setpoint":26,"eco_mode":"OFF","eco_temperature":18,"linkquality":43,"local_temperature":20,"local_temperature_calibration":0,"max_temperature":45,"min_temperature":5,"position":25,"preset":"manual","programming_mode":"06:00/20°C  11:30/21°C  13:30/22°C  17:30/23°C  06:00/24°C  12:00/23°C  14:30/22°C  17:30/21°C  06:00/19°C  12:30/20°C  14:30/21°C  18:30/20°C","running_state":"heat","system_mode":"heat","update":{"installed_version":-1,"latest_version":-1,"state":null},"update_available":null,"valve_state":"OPEN","window":"CLOSED","window_detection":"OFF"}'
debug 2023-04-26 06:56:50: Received MQTT message on 'zigbee2mqtt/Thermostat black/set/current_heating_setpoint' with data '10.0'
debug 2023-04-26 06:56:50: Publishing 'set' 'current_heating_setpoint' to 'Thermostat black'
debug 2023-04-26 06:56:50: Received Zigbee message from 'Thermostat black', type 'commandDataResponse', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[0,0,0,10],"type":"Buffer"},"datatype":2,"dp":2}],"seq":41}' from endpoint 1 with groupID 0
info  2023-04-26 06:56:50: MQTT publish: topic 'zigbee2mqtt/Thermostat black', payload '{"battery":80,"boost_heating":"OFF","boost_heating_countdown":0,"boost_heating_countdown_time_set":300,"child_lock":"UNLOCK",**"current_heating_setpoint":10**,"eco_mode":"OFF","eco_temperature":18,"linkquality":47,"local_temperature":20,"local_temperature_calibration":0,"max_temperature":45,"min_temperature":5,"position":25,"preset":"manual","programming_mode":"06:00/20°C  11:30/21°C  13:30/22°C  17:30/23°C  06:00/24°C  12:00/23°C  14:30/22°C  17:30/21°C  06:00/19°C  12:30/20°C  14:30/21°C  18:30/20°C","running_state":"heat","system_mode":"heat","update":{"installed_version":-1,"latest_version":-1,"state":null},"update_available":null,"valve_state":"OPEN","window":"CLOSED","window_detection":"OFF"}'
debug 2023-04-26 06:56:50: Received Zigbee message from 'Thermostat black', type 'commandDataResponse', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[1],"type":"Buffer"},"datatype":4,"dp":7}],"seq":297}' from endpoint 1 with groupID 0
info  2023-04-26 06:56:50: MQTT publish: topic 'zigbee2mqtt/Thermostat black', payload '{"battery":80,"boost_heating":"OFF","boost_heating_countdown":0,"boost_heating_countdown_time_set":300,"child_lock":"UNLOCK","current_heating_setpoint":10,"eco_mode":"OFF","eco_temperature":18,"linkquality":47,"local_temperature":20,"local_temperature_calibration":0,"max_temperature":45,"min_temperature":5,"position":25,"preset":"manual","programming_mode":"06:00/20°C  11:30/21°C  13:30/22°C  17:30/23°C  06:00/24°C  12:00/23°C  14:30/22°C  17:30/21°C  06:00/19°C  12:30/20°C  14:30/21°C  18:30/20°C","running_state":"idle","system_mode":"heat","update":{"installed_version":-1,"latest_version":-1,"state":null},"update_available":null,"valve_state":"CLOSED","window":"CLOSED","window_detection":"OFF"}'

#end first automation

debug 2023-04-26 07:02:35: Received Zigbee message from 'Thermostat black', type 'commandDataResponse', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[0,0,0,210],"type":"Buffer"},"datatype":2,"dp":3}],"seq":297}' from endpoint 1 with groupID 0
info  2023-04-26 07:02:35: MQTT publish: topic 'zigbee2mqtt/Thermostat black', payload '{"battery":80,"boost_heating":"OFF","boost_heating_countdown":0,"boost_heating_countdown_time_set":300,"child_lock":"UNLOCK","current_heating_setpoint":10,"eco_mode":"OFF","eco_temperature":18,"linkquality":61,"local_temperature":21,"local_temperature_calibration":0,"max_temperature":45,"min_temperature":5,"position":25,"preset":"manual","programming_mode":"06:00/20°C  11:30/21°C  13:30/22°C  17:30/23°C  06:00/24°C  12:00/23°C  14:30/22°C  17:30/21°C  06:00/19°C  12:30/20°C  14:30/21°C  18:30/20°C","running_state":"idle","system_mode":"heat","update":{"installed_version":-1,"latest_version":-1,"state":null},"update_available":null,"valve_state":"CLOSED","window":"CLOSED","window_detection":"OFF"}'
debug 2023-04-26 07:32:40: Received Zigbee message from 'Thermostat black', type 'commandMcuSyncTime', cluster 'manuSpecificTuya', data '{"payloadSize":28937}' from endpoint 1 with groupID 0

*#begin 2nd automation:*

debug 2023-04-26 07:44:22: Received MQTT message on 'zigbee2mqtt/Thermostat black/set/current_heating_setpoint' with data '26.0'
debug 2023-04-26 07:44:22: Publishing 'set' 'current_heating_setpoint' to 'Thermostat black'
debug 2023-04-26 07:44:22: Received Zigbee message from 'Thermostat black', type 'commandDataResponse', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[0,0,0,26],"type":"Buffer"},"datatype":2,"dp":2}],"seq":42}' from endpoint 1 with groupID 0
info  2023-04-26 07:44:22: MQTT publish: topic 'zigbee2mqtt/Thermostat black', payload '{"battery":80,"boost_heating":"OFF","boost_heating_countdown":0,"boost_heating_countdown_time_set":300,"child_lock":"UNLOCK","current_heating_setpoint":26,"eco_mode":"OFF","eco_temperature":18,"linkquality":61,"local_temperature":21,"local_temperature_calibration":0,"max_temperature":45,"min_temperature":5,"position":25,"preset":"manual","programming_mode":"06:00/20°C  11:30/21°C  13:30/22°C  17:30/23°C  06:00/24°C  12:00/23°C  14:30/22°C  17:30/21°C  06:00/19°C  12:30/20°C  14:30/21°C  18:30/20°C","running_state":"idle","system_mode":"heat","update":{"installed_version":-1,"latest_version":-1,"state":null},"update_available":null,"valve_state":"CLOSED","window":"CLOSED","window_detection":"OFF"}'
debug 2023-04-26 07:44:22: Received Zigbee message from 'Thermostat black', type 'commandDataResponse', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[0],"type":"Buffer"},"datatype":4,"dp":7}],"seq":298}' from endpoint 1 with groupID 0
info  2023-04-26 07:44:22: MQTT publish: topic 'zigbee2mqtt/Thermostat black', payload '{"battery":80,"boost_heating":"OFF","boost_heating_countdown":0,"boost_heating_countdown_time_set":300,"child_lock":"UNLOCK","current_heating_setpoint":26,"eco_mode":"OFF","eco_temperature":18,"linkquality":61,"local_temperature":21,"local_temperature_calibration":0,"max_temperature":45,"min_temperature":5,"position":25,"preset":"manual","programming_mode":"06:00/20°C  11:30/21°C  13:30/22°C  17:30/23°C  06:00/24°C  12:00/23°C  14:30/22°C  17:30/21°C  06:00/19°C  12:30/20°C  14:30/21°C  18:30/20°C","running_state":"heat","system_mode":"heat","update":{"installed_version":-1,"latest_version":-1,"state":null},"update_available":null,"valve_state":"OPEN","window":"CLOSED","window_detection":"OFF"}'
#reversing back to 10 degrees.

debug 2023-04-26 07:50:22: Received MQTT message on 'zigbee2mqtt/Thermostat black/set/current_heating_setpoint' with data '10.0'
debug 2023-04-26 07:50:22: Publishing 'set' 'current_heating_setpoint' to 'Thermostat black'
debug 2023-04-26 08:00:35: Received Zigbee message from 'Thermostat black', type 'commandDataResponse', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[0,0,0,220],"type":"Buffer"},"datatype":2,"dp":3}],"seq":298}' from endpoint 1 with groupID 0

*#temperature is still 26*

info  2023-04-26 08:00:35: MQTT publish: topic 'zigbee2mqtt/Thermostat black', payload '{"battery":80,"boost_heating":"OFF","boost_heating_countdown":0,"boost_heating_countdown_time_set":300,"child_lock":"UNLOCK",**"current_heating_setpoint":26**,"eco_mode":"OFF","eco_temperature":18,"linkquality":58,"local_temperature":22,"local_temperature_calibration":0,"max_temperature":45,"min_temperature":5,"position":25,"preset":"manual","programming_mode":"06:00/20°C  11:30/21°C  13:30/22°C  17:30/23°C  06:00/24°C  12:00/23°C  14:30/22°C  17:30/21°C  06:00/19°C  12:30/20°C  14:30/21°C  18:30/20°C","running_state":"heat","system_mode":"heat","update":{"installed_version":-1,"latest_version":-1,"state":null},"update_available":null,"valve_state":"OPEN","window":"CLOSED","window_detection":"OFF"}'
debug 2023-04-26 08:16:19: Received Zigbee message from 'Thermostat black', type 'commandDataResponse', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[0,0,0,80],"type":"Buffer"},"datatype":2,"dp":14}],"seq":554}' from endpoint 1 with groupID 0
info  2023-04-26 08:16:19: MQTT publish: topic 'zigbee2mqtt/Thermostat black', payload '{"battery":80,"boost_heating":"OFF","boost_heating_countdown":0,"boost_heating_countdown_time_set":300,"child_lock":"UNLOCK","current_heating_setpoint":26,"eco_mode":"OFF","eco_temperature":18,"linkquality":61,"local_temperature":22,"local_temperature_calibration":0,"max_temperature":45,"min_temperature":5,"position":25,"preset":"manual","programming_mode":"06:00/20°C  11:30/21°C  13:30/22°C  17:30/23°C  06:00/24°C  12:00/23°C  14:30/22°C  17:30/21°C  06:00/19°C  12:30/20°C  14:30/21°C  18:30/20°C","running_state":"heat","system_mode":"heat","update":{"installed_version":-1,"latest_version":-1,"state":null},"update_available":null,"valve_state":"OPEN","window":"CLOSED","window_detection":"OFF"}'
debug 2023-04-26 08:16:19: Received Zigbee message from 'Thermostat black', type 'commandDataResponse', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[1],"type":"Buffer"},"datatype":4,"dp":9}],"seq":810}' from endpoint 1 with groupID 0
info  2023-04-26 08:16:19: MQTT publish: topic 'zigbee2mqtt/Thermostat black', payload '{"battery":80,"boost_heating":"OFF","boost_heating_countdown":0,"boost_heating_countdown_time_set":300,"child_lock":"UNLOCK","current_heating_setpoint":26,"eco_mode":"OFF","eco_temperature":18,"linkquality":61,"local_temperature":22,"local_temperature_calibration":0,"max_temperature":45,"min_temperature":5,"position":25,"preset":"manual","programming_mode":"06:00/20°C  11:30/21°C  13:30/22°C  17:30/23°C  06:00/24°C  12:00/23°C  14:30/22°C  17:30/21°C  06:00/19°C  12:30/20°C  14:30/21°C  18:30/20°C","running_state":"heat","system_mode":"heat","update":{"installed_version":-1,"latest_version":-1,"state":null},"update_available":null,"valve_state":"OPEN","window":"CLOSED","window_detection":"OFF"}'
debug 2023-04-26 08:16:19: Received Zigbee message from 'Thermostat black', type 'commandDataResponse', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[0],"type":"Buffer"},"datatype":1,"dp":4}],"seq":1066}' from endpoint 1 with groupID 0
info  2023-04-26 08:16:19: MQTT publish: topic 'zigbee2mqtt/Thermostat black', payload '{"battery":80,"boost_heating":"OFF","boost_heating_countdown":0,"boost_heating_countdown_time_set":300,"child_lock":"UNLOCK","current_heating_setpoint":26,"eco_mode":"OFF","eco_temperature":18,"linkquality":61,"local_temperature":22,"local_temperature_calibration":0,"max_temperature":45,"min_temperature":5,"position":25,"preset":"manual","programming_mode":"06:00/20°C  11:30/21°C  13:30/22°C  17:30/23°C  06:00/24°C  12:00/23°C  14:30/22°C  17:30/21°C  06:00/19°C  12:30/20°C  14:30/21°C  18:30/20°C","running_state":"heat","system_mode":"heat","update":{"installed_version":-1,"latest_version":-1,"state":null},"update_available":null,"valve_state":"OPEN","window":"CLOSED","window_detection":"OFF"}'
debug 2023-04-26 08:33:10: Received Zigbee message from 'Thermostat black', type 'commandMcuSyncTime', cluster 'manuSpecificTuya', data '{"payloadSize":29961}' from endpoint 1 with groupID 0
debug 2023-04-26 08:42:31: Received Zigbee message from 'Thermostat black', type 'commandDataResponse', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[0,0,0,230],"type":"Buffer"},"datatype":2,"dp":3}],"seq":1066}' from endpoint 1 with groupID 0
info  2023-04-26 08:42:31: MQTT publish: topic 'zigbee2mqtt/Thermostat black', payload '{"battery":80,"boost_heating":"OFF","boost_heating_countdown":0,"boost_heating_countdown_time_set":300,"child_lock":"UNLOCK","current_heating_setpoint":26,"eco_mode":"OFF","eco_temperature":18,"linkquality":61,"local_temperature":23,"local_temperature_calibration":0,"max_temperature":45,"min_temperature":5,"position":25,"preset":"manual","programming_mode":"06:00/20°C  11:30/21°C  13:30/22°C  17:30/23°C  06:00/24°C  12:00/23°C  14:30/22°C  17:30/21°C  06:00/19°C  12:30/20°C  14:30/21°C  18:30/20°C","running_state":"heat","system_mode":"heat","update":{"installed_version":-1,"latest_version":-1,"state":null},"update_available":null,"valve_state":"OPEN","window":"CLOSED","window_detection":"OFF"}'
debug 2023-04-26 08:42:31: Received Zigbee message from 'Thermostat black', type 'commandDataResponse', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[0,0,0,75],"type":"Buffer"},"datatype":2,"dp":104}],"seq":1322}' from endpoint 1 with groupID 0
info  2023-04-26 08:42:31: MQTT publish: topic 'zigbee2mqtt/Thermostat black', payload '{"battery":80,"boost_heating":"OFF","boost_heating_countdown":0,"boost_heating_countdown_time_set":300,"child_lock":"UNLOCK","current_heating_setpoint":26,"eco_mode":"OFF","eco_temperature":18,"linkquality":61,"local_temperature":23,"local_temperature_calibration":0,"max_temperature":45,"min_temperature":5,"position":75,"preset":"manual","programming_mode":"06:00/20°C  11:30/21°C  13:30/22°C  17:30/23°C  06:00/24°C  12:00/23°C  14:30/22°C  17:30/21°C  06:00/19°C  12:30/20°C  14:30/21°C  18:30/20°C","running_state":"heat","system_mode":"heat","update":{"installed_version":-1,"latest_version":-1,"state":null},"update_available":null,"valve_state":"OPEN","window":"CLOSED","window_detection":"OFF"}'

*#manual intervention*

debug 2023-04-26 09:09:40: Received MQTT message on 'zigbee2mqtt/Thermostat black/set/current_heating_setpoint' with data '9.0'
debug 2023-04-26 09:09:40: Publishing 'set' 'current_heating_setpoint' to 'Thermostat black'
debug 2023-04-26 09:09:40: Received Zigbee message from 'Thermostat black', type 'commandDataResponse', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[0,0,0,9],"type":"Buffer"},"datatype":2,"dp":2}],"seq":44}' from endpoint 1 with groupID 0
info  2023-04-26 09:09:40: MQTT publish: topic 'zigbee2mqtt/Thermostat black', payload '{"battery":80,"boost_heating":"OFF","boost_heating_countdown":0,"boost_heating_countdown_time_set":300,"child_lock":"UNLOCK","current_heating_setpoint":9,"eco_mode":"OFF","eco_temperature":18,"linkquality":61,"local_temperature":23,"local_temperature_calibration":0,"max_temperature":45,"min_temperature":5,"position":75,"preset":"manual","programming_mode":"06:00/20°C  11:30/21°C  13:30/22°C  17:30/23°C  06:00/24°C  12:00/23°C  14:30/22°C  17:30/21°C  06:00/19°C  12:30/20°C  14:30/21°C  18:30/20°C","running_state":"heat","system_mode":"heat","update":{"installed_version":-1,"latest_version":-1,"state":null},"update_available":null,"valve_state":"OPEN","window":"CLOSED","window_detection":"OFF"}'
debug 2023-04-26 09:09:41: Received Zigbee message from 'Thermostat black', type 'commandDataResponse', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[1],"type":"Buffer"},"datatype":4,"dp":7}],"seq":300}' from endpoint 1 with groupID 0
info  2023-04-26 09:09:41: MQTT publish: topic 'zigbee2mqtt/Thermostat black', payload '{"battery":80,"boost_heating":"OFF","boost_heating_countdown":0,"boost_heating_countdown_time_set":300,"child_lock":"UNLOCK","current_heating_setpoint":9,"eco_mode":"OFF","eco_temperature":18,"linkquality":61,"local_temperature":23,"local_temperature_calibration":0,"max_temperature":45,"min_temperature":5,"position":75,"preset":"manual","programming_mode":"06:00/20°C  11:30/21°C  13:30/22°C  17:30/23°C  06:00/24°C  12:00/23°C  14:30/22°C  17:30/21°C  06:00/19°C  12:30/20°C  14:30/21°C  18:30/20°C","running_state":"idle","system_mode":"heat","update":{"installed_version":-1,"latest_version":-1,"state":null},"update_available":null,"valve_state":"CLOSED","window":"CLOSED","window_detection":"OFF"}'
debug 2023-04-26 09:33:40: Received Zigbee message from 'Thermostat black', type 'commandMcuSyncTime', cluster 'manuSpecificTuya', data '{"payloadSize":30473}' from endpoint 1 with groupID 0

I notice that in the second run of the automation, I do not get zigbee reply. Is there a way to ensure that zigbee command is executed? Creating automation to check automation sounds crazy, but this is the only solution I see. I also had it before with ventilation that it was not stopping, but it somehow fixed itself.

Any ideas? Thanks in advance!