Automation not triggered on climate hvac change

Team,
I’m quite newbie to HA so I have some doubts.

I have a tado thermostat with the controller.
I’ve installed both the original TADO integration (via cloud) as well as the Homekit integration.

I’ve read TADO has requested NOT to hammer their servers more than once every 5 minutes, while the Homekit controller should be LAN only.

My test is to power on a light when the Thermostat is in heating mode.

I’ve created 2 automations and they work fine:
This is the one via Tado Cloud

- id: '1642015836377'
  alias: FanCoil Sync
  description: ''
  trigger:
  - platform: state
    entity_id: sensor.piano_interrato_heating
  condition: []
  action:
  - choose:
    - conditions:
      - condition: numeric_state
        entity_id: sensor.piano_interrato_heating
        above: '1'
      sequence:
      - service: switch.turn_on
        target:
          entity_id: switch.1000f7f6ae_2
      - service: notify.mobile_app_iphone_sucks
        data:
          title: Fancoil Sync - On
          message: T.06-2 On
    default:
    - service: switch.turn_off
      target:
        entity_id: switch.1000f7f6ae_2
    - service: notify.mobile_app_iphone_sucks
      data:
        message: T.06-2 Off
        title: Fancoil Sync - Off
  mode: single

This is the one via HomeKit:

- id: '1642957094557'
  alias: FanCoil Sync (HomeKit)
  description: ''
  trigger:
  - platform: state
    attribute: hvac_action
    from: heating
    entity_id: climate.piano_interrato_hk
  condition: []
  action:
  - choose:
    - conditions:
      - condition: state
        entity_id: climate.piano_interrato_hk
        state: heating
        attribute: hvac_action
      sequence:
      - service: switch.turn_on
        target:
          entity_id: switch.1000f7f6ae_2
      - service: notify.mobile_app_iphone_sucks
        data:
          title: Fancoil Sync - On - HomeKit
          message: T.06-2 On HomeKit
    default:
    - service: switch.turn_off
      target:
        entity_id: switch.1000f7f6ae_2
    - service: notify.mobile_app_iphone_sucks
      data:
        message: T.06-2 Off HomeKit
        title: Fancoil Sync - Off HomeKit
  mode: single

If I run them manually is perfect :slight_smile: the switch on and off

I’ve left the first one active and it is triggered every 20 min exactly but never in between

BUT they do not work as expected when I controll the thermostat:
When I change the temp to max → starting heating → sometimes the HK works, but often does not
When I chage the temp to off → it goes in iddle → it does not switch off the light

I’ve waited 2 minutes on each test.
Repeated the test multiple times.

What am I doing wrong?

I can understand the Tado Cloud should be updated every 5 min but why for me is every 20?

The HomeKit being lan should not be triggered in real time?

Thank you for the help

I’ve left the automation running for 2 days and I cannot understand the behavior.
If I look at history of the climate property I see what I would expect but the automation is not triggered.
No changes on lan, connection etc.
What can I be doing wrong?

Hi

I’m being in the same situation
Have you find the solution
Thank you in advance

I found a solution using State hvac_action without any condition and then on option 1 I use heating otherwise is off
now it works.
I’m using the homekit virtual component