cyberjunky / home-assistant-toon_climate

This component provides a climate device for rooted Toon thermostats.
MIT License
32 stars 8 forks source link

Room temperature #15

Closed Sticker298 closed 3 years ago

Sticker298 commented 3 years ago

Is it possible to put the room temperature in a badge? 93468616-9287-49BF-BAE8-AD47891F4EAC

rbak69 commented 3 years ago

Hi was reading through the open issues. This has nothing to do with the Toon climate component but it seems to be a more generic Home Assistant question. Nevertheless you can simply do this by creating a sensor template. I have created a quick sensor to validate and to be able to show you how it is done:

platform: template sensors: toon_current_room_temperature: friendly_name: "Room" unit_of_measurement: 'degrees' value_template: "{{ state_attr('climate.thermostaat', 'current_temperature') }}"

If you add this as a new sensor and add that sensor as a badge it will do exactly what you requested. Please note that my Toon is called "thermostaat" hence the "climate.thermostaat". If your Toon is called differently like Toon or the default "Thermostat" you need to replace that part to correctly reflect your Toon.

Toon temp badge

toon current temp.yaml.txt

cyberjunky commented 3 years ago

@Sticker298 @rbak69 I have updated the README

cyberjunky commented 3 years ago

Closed, solution documented.