Copy entity from one thermostat dashboard card to another

I am trying to find an entity that must be in one dashboard card and use it to replace an entity in another card.
Using ZHA I have added a Sonoff TRVZB device.

Then I added a standard ‘Thermostat’ card to my Home Dashboard in a view called ‘Test Panel’ selecting the TRVZB device.

But this only shows the measured temperature from the TRV itself.
None of the other TRV controls / entities (setpoint) do or show anything.

I then also added a ‘Better Thermostat’ card, which just seems to work ok.
It shows the target setpoint from the TRV and can adjust it.
But it requires a separate temperature sensing device to measure room temperature for its control.
I have used a Sonoff SNZB-02D for this purpose. So the measured temperature display is from this device.

However, I would like to remove the SNZB-02D and use the TRV measured temperature in the ‘Better Thermostat’ configuration.
It doesn’t show up as a selectable entity when configuring the Better Thermostat. In fact I can’t find it anywhere.
But it must exist, as it is the only thing that works in the standard thermostat card.

I would like to find the code for the two thermostats and copy the measured TRVZB entity and replace the Better Thermostat card measured entity with it.
Is this possible and is it as easy as I seem to be making it?

I’ve used file editor to look in homeassistant/ directories expecting to find something related to ‘My Home Dash’ & Test Panel and then thermosat cards.

But I can’t find anything. Am I looking in the correct place?

Could anyone please give some guidance on how - (if it is possible) - this is done.
I’ve tried various searches, but no luck.

HA is on a RPi 4.
Core 2024.7.0
Supervisor 2024.08.0
Operating System 12.4
Frontend 20240703.0

What does the climate entity of the TRV look like in more info?

Did you mean ‘Device Info’ from the 3 dots menu?

The Better Thermostat version has less info on it than the Standard Card:-

Standard card Device info:-

The ‘local temperature’ entity is an offset available for calibration in the TRV.

Click on the “Thermostat” under controls on the page with ZigBee.

Ok. Then clicking the Settings cog gives:-

So then, that entity is:-
climate.sonoff_trv_mels_thermostat

Thanks.

How do I now change the actual temperature measurement entity used in Better Thermostat card to use that, instead of the SNZB-02D it is currently using?

But you shouldn’t press the cog.
Just click on thermostat.

That should give you the climate entity controls.

But I don’t understand why you want to use the temperature sensor on the TRV.
That is sitting on a radiator and will give false values.

If I click on Thermostat in this view,

I get:-

So I then clicked on the settings cog which gave the entitiy display:-

I realise the accuracy is compromised, but I wish to use this TRV (and maybe others if I can get it to work) as a ‘Passive Mode’ device.

It will not be capable of firing the boiler when the actual temperature drops below its setpoint.

But if other devices call for heat and fire the boiler, it can then provide heat for the room it’s in, up to its setpoint temperature.
It doesn’t need a separate room stat for this.

I may include some setpoint changes depending on night/day or winter/summer etc. from HA. Of course monitoring is also available in HA.

The central heating is actually controlled by a Drayton Wiser installation.
That has room stats in some rooms and not in others.
The iTRV’s are good enough for some rooms and there has been a passive mode introduced through HA, but I’m not happy with it.

So this would be an alternative.
TRV’s are cheaper also.

Yes there is the climate entity.
Just below

Just outside the screenshot, there is a mode button below, isn’t that where you turn on the climate entity?

Some integrations only accept the state of an entity as input, but climate entities often have the heating mode as the state and then temperature values as attributes.
You might then need to make a template sensor that extract that attribute and present it as a state.

Look on the state-based template here:

Ahhhh.

When in the Thermostat Card Configuration edit mode, there is a Features option.
The only option available in this is ‘Climate HVAC modes’. That adds two Mode buttons on the card.
You are correct, pressing the LH button selects Heat mode and the other values pop up.

It was only brief and then returned to the original version with just the measured value.

I suspected the Better Thermostat was interfering with it, so have deleted that and removed the integration.
The standard card is now persistent when heat button is pressed.

Its now using the TRV value as I was hoping for.

Thanks for your help.

I’ll experiment a little further now.

Thanks for this info.
I’ll have a read.