Temperature Display Trick in Dashboard

Hey everyone, I stumbled upon a neat trick to display sensor temperatures directly on my Dashboard icons. I thought I’d share it with you in case anyone else finds it useful! :thermometer:

Basically, I created a virtual device of type Thermostat. The cool thing about this is that the Thermostat icon always shows the set temperature right on it. I then linked this virtual device to my actual temperature sensor using a simple Flow. Here’s how I did it:

  1. Create a Virtual Thermostat: Go to your devices section and add a new virtual device. Choose the Thermostat type and pick an icon you like.
  2. Set Up the Flow: I used a HomeyScript to update the Thermostat’s target temperature whenever my sensor detects a change. Here’s the script I used:

javascript
const tempThermostat = await Homey.devices.getDevice({id: “your_thermostat_id”});
const sensorDevice = await Homey.devices.getDevice({id: “your_sensor_id”});
const sensorTemp = sensorDevice.capabilitiesObj.measure_temperature;

await Homey.devices.setCapabilityValue({
deviceId: tempThermostat.id,
capabilityId: ‘target_temperature’,
value: sensorTemp.value
});

  1. Link IDs: You’ll need the IDs of both your virtual Thermostat and your sensor. You can find these in the developer tools section.

One thing to note is that the minimum temperature the Thermostat can display is 4°C. If your sensor reads below that, the display won’t update. But for most cases, this works perfectly!

I love how clean and informative my Dashboard looks now. It’s a small tweak, but it makes a big difference in how I monitor my home. If anyone has questions or needs help setting this up, feel free to ask! :blush: