Custom thermostat using ifttt integration

Since my thermostat (ThermoSmart) is not available as an integration, but can be controlled via ifttt I made the integration with ifttt, api key and made 3 events: pause, unpause, settemp.

Made the ifttt integration and tested the service call manually: all okay so far.

Now need some help: how can I make integration in frontend/lovelace?

  1. is there a custom thermostat card to integrate service_calls?
  2. do I have to make a input_boolean with automation and a entity button card?

Examples are more than welcome (or url) since I’m a total noob :slight_smile:

Thanks a lot in advance guys!
Frederik.

I am also interested in something similar.

Have you managed to make it work?

Regards,
John

Yep, works like a charm…
Just tell me with which part you need some info, and I’ll get it for you asap!
just needed the ifttt service to my thermostat, and some code in HA (yaml).

Well my scenario is as follows. I have 3 Devolo thermostats with the Control Unit that I can control either with IFTTT or REST API.
Since the thermostats don’t offer the possibility to set the position of the valve, I have created some calls that set them to 28 degrees (this should open the valve to max) and to 4 degrees (this should close the valve).

The temperatures I read from some sensors I have in the rooms,

The desired temperature I want to set in a custom thermostat which will call the 2 services as needed (set to 28 if the desired temperature is lower than the measured one and set to 4 for the opposite or when the measured temperature reaches the desired one).

Thank you in advance for any tips on how to implement this.

Regards,
Ioan

OKay, I’ll give you all I configured, hope you can start with this to make your own implementation:

Lovelace UI:

code behind:
cards:

  • entity: script.thermosmart_set15
    hold_action:
    action: more-info
    icon: ‘mdi:thermometer-minus’
    icon_height: 60px
    name: Force 15°C
    show_icon: true
    show_name: true
    tap_action:
    action: call-service
    service: script.thermosmart_set15
    theme: darkcyan
    type: entity-button
  • entity: script.thermosmart_set19
    hold_action:
    action: more-info
    icon: ‘mdi:thermometer-lines’
    icon_height: 60px
    name: Force 19°C
    show_icon: true
    show_name: true
    tap_action:
    action: call-service
    service: script.thermosmart_set19
    theme: darkcyan
    type: entity-button
  • entity: script.thermosmart_set21
    hold_action:
    action: more-info
    icon: ‘mdi:thermometer-plus’
    icon_height: 60px
    name: Force 21°C
    show_icon: true
    show_name: true
    tap_action:
    action: call-service
    service: script.thermosmart_set21
    theme: darkcyan
    type: entity-button
    type: horizontal-stack

in /config/scripts.yaml:

thermosmart_set15:
sequence:
- service: ifttt.trigger
data_template: {“event”:“Temp_thermosmart”, “value1”:“15”}

thermosmart_set19:
sequence:
- service: ifttt.trigger
data_template: {“event”:“Temp_thermosmart”, “value1”:“19”}

thermosmart_set21:
sequence:
- service: ifttt.trigger
data_template: {“event”:“Temp_thermosmart”, “value1”:“21”}

in /config/configuration.yaml:

ifttt:
key: ……………………

input_boolean:
thermosmart:
name: ThermoSmart
initial: on

Please let me know if this helped you out!
Frederik.

Thank you, I’ll try it as soon as I have some free moments.

John