Generic Thermostat with different switch to on and off

Hi everyone.

I got a unusual device to control mi home temperature.

Simplifying it, I got one switch with a momentary button which one turn on/off the presence. Using this, I can switch on/off but I haven’t got the state in home assistant. We can call it switch.presence.

To stop it I got a different one. switch.turn_off. Momentary push.

To turn it on, I got a another one. switch.turn_on. Momentary push.

The presence button keeps the state always, no matter if I switch on or off the general turn-on turn_off. BUT, only can be operate when the general device is on.

Of course, I also got a sensor which one reports the temp.

So…is there any way to create a thermostat with this configuration.

switch.toogle_presence - momentary push button, turn on /off presence without status report. Only works when the general heater is on.
switch.turn_on- momentary push button, turn on general heater.
switch.turn_off - momentary button, turn off general heater.
sensor.home_temp - reports home temp.

This installation works in that way because I’m using a relay to push physical buttons of this device. Is not possible to replace it.

image

Thanks!

Not according to the documentation:

heater string Required entity_id for heater switch, must be a toggle device. Becomes air conditioning switch when ac_mode is set to true.

My only thought is you create a sensor that is set by the two switches through an automation. And when the thermostat sets the sensor you have another automation that shuts off the system. see here

Thanks! with the linked guide, I have created a helper which works as a toogle. This can show the status of the general installation ussing the next configuration.

HELPER:
input_boolean.calefaccion

AUTOMATION OFF

alias: CALEFACCION - OFF
description: ''
trigger:
  - platform: state
    entity_id: input_boolean.calefaccion
    to: 'off'
condition: []
action:
  - service: switch.turn_on
    data: {}
    target:
      entity_id: switch.apagar
mode: single

AUTOMATION ON

alias: CALEFACCION - ON
description: ''
trigger:
  - platform: state
    entity_id: input_boolean.calefaccion
    to: 'on'
condition: []
action:
  - service: switch.turn_on
    data: {}
    target:
      entity_id: switch.encender_manual
mode: single

Now…i’m trying to use it to create a generic thermostat…any advice?

You can use any temperature sensor in the room. I do my gas fireplace Like this

climate:
  - platform: generic_thermostat
    name: Family Room Fireplace
    heater: switch.family_room_fireplace   <-- This would be input boolean
    target_sensor: sensor.multisensor_6_air_temperature  <---- A temperature sensor
    min_temp: 15
    max_temp: 25
    target_temp: 20
    away_temp: 17
    initial_hvac_mode: heat

Thanks! Thats solve my problem.