Different entities for thermostat?

Hi I have the following added in my configuration.yaml file for thermostatic room control using a temperature sensor and zigbee plug attached to a heater in each room

  - platform: generic_thermostat
    name: bathroom heater
    unique_id: bathroom heater thermostat
    heater: switch.bathroom_heater
    target_sensor: sensor.loft_esp8266_bathroom_temperature
    cold_tolerance: 0.0
    hot_tolerance: 0.2
    max_temp: 27
    min_temp: 15

But the heater in my lounge is controlled by sending IR commands to it using two different entity ID’s (scripts)

script.lounge_heater_1kw
script.lounge_heater_0kw

Is there a way for incorporating this into the climate control yaml config above please, as it only allows one “heater:” item?

Thanks

You would need to add actions to your switch.bathroom heater to run both scripts as needed. The actions section of the template switch lets you do multiple actions as well as logic blocks. Do you have to run both scripts every time to get any heat, or do you run one or the other based on some logic.