Automation with INKBIRD TH3 (in TUYA integration) and TAPO 100

Hello everyone :-), I have an issue with the following code as the trigger does not work even if the current humidity of my room overspend 59%. The following code has been copied/ pasted in the automations.yaml file with the terminal of my rapsberry, but the automation never starts…
Is it due to the use of 2 different entities from TUYA and TAPO ? For information, my home assistant has been installed in a docker, this is not the OS version.
Thanks a lot for your kind answers, Antoine

alias: ‘Activer et éteindre la prise TAPO si humidité > 59%’
trigger:

  • platform: numeric_state
    entity_id: sensor.ibs_th3_plus_humidity
    above: 59
    action:
  • service: switch.turn_on
    target:
    entity_id: switch.tapo # Remplace par l’entité correcte de la prise TAPO
  • delay:
    hours: 2 # Délai de 2 heures
  • service: switch.turn_off
    target:
    entity_id: switch.tapo # Éteindre la prise TAPO après 2 heures
    mode: restart

https://community.home-assistant.io/t/how-to-help-us-help-you-or-how-to-ask-a-good-question/114371#oneone-format-it-properly-16