Thermostat control - Using an Attribute

I have a bathroom towel rail that runs in summer when the underfloor heating is off. It has no controls, it is just a resistance but is an intelligent cable outlet (Legrand).

I have installed an intelligent thermostat (tuya) for the underfloor heating which HA finds and connects to through the tuya integration.

I want to use the current temperature Attribute of the thermostat to manage the on/off state of the towel rail resistance to regulate the room temperature. Technically, it should be able to regulate both heating systems at the same time.

My searches indicate I should be able to see the Attributes linked to the thermostat but I cannot find a way to do so.

So, how do I access the Attribute to allow me to use it to trigger an automation to control the room temperature please?

This should get you started. It’s the beginning of an automation that looks that the current temperature of my thermostat. What logic to use when triggered, etc. I will leave to you.

description: ""
mode: single
triggers:
  - trigger: state
    entity_id:
      - climate.tstat_d89a66_t6_pro_thermostat
    attribute: current_temperature
conditions: []
actions: []

Hi pkscout,

Apologies for the delayed response but I have been unwell.

I will look into your suggestion but I have never really tried to get to grips with YAML. Maybe now is the time!

Geoff

You shouldn’t have to do any YAML for that. Here’s what that same thing looks like in the UI.

I started a new automation, added a trigger, selected and picked the entity trigger. From there you pick the thermostat, then in the attribute part pick the current temperature.