ScratMan / HASmartThermostat

Smart Thermostat with PID controller for HomeAssistant
336 stars 48 forks source link

Add an HVAC function to specifie witch mode to turn on the termostat #103

Closed fasavard closed 1 year ago

fasavard commented 1 year ago

I currently have a setup with multiple insteon thermostat. Witch all have many hvac function ( Heat, cool, fan)

Currently, the tool support a on/off toggle switch to support the pid control. It would be great to have an option to specify the signal send to turn on the thermostat. Something like: `configuration.yaml climate:

fasavard commented 1 year ago

So i found (probably the solution that others are doing) to fix this. For other people having this issue, using the template system can be use to convert you entitie heat into a switch.

For this, you can go in your configuration.yaml file, and add something like this:

switch:
  - platform: template
    switches:
      heated_floor_living_room:
        turn_on:
          service: climate.set_hvac_mode
          data:
            hvac_mode: "heat"
          target:
            entity_id: climate.34_d2_34_main
        turn_off:
          service: climate.set_hvac_mode
          data:
            hvac_mode: "cool"
          target:
            entity_id: climate.34_d2_34_main

Setup is not entirely working but the switch part of the termostat is good.