automation: - alias: "Cambia valore termo" - trigger: platform: state entity_id: switch.clima_thermo - action: - service: switch.turn_on - service: http.post data_template: url: "http://192.168.1.252:8081/user/action.cgi" params: clima: 0 thermo: set val: "{{ states.switch.clima_thermo.state }}"