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: []
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.