Cannot use thermostat generic or better thermostat

Good morning,

I’m new to home automation.

I am trying to achieve zone heating management with SNZB-02 Zigbee sensors. The goal is to recover the information from the probes of each zone and to supply one of the outputs of an ESP32 corresponding to the zone according to the temperature read and the set temperature.

Where I get stuck is finding out whether a thermostat is required or not. I tried the generic thermostat with codes found online. I also tried Better Thermostat, where on the other hand, I found in the automations the possibility of selecting a more or less corresponding attribute.

As a test, when I have a heat request, I send a notification to my smartphone.

Here is the code used with better thermostat;

platform: state
entity_id:

  • climate.thermostat_salon_2
    attribute: call_for_heat

I thank you in advance for your help.