Integrating text into the Floorplan (temperature) #362
Replies: 3 comments 10 replies
-
|
I'm stupid and that's that. closing. |
Beta Was this translation helpful? Give feedback.
-
|
Thank you @OzGav! That has worked beautifully! Just one question: Is there a way to have the text update immediantly if the state of the attribute changes? So in this example: If I select a higher or lower temperature on the heater, it does not update the text with that new "target-temperature". I'd have to reload the entire dashboard for the value to upate on the floorplan. |
Beta Was this translation helpful? Give feedback.
-
If you mean that it's fixed, because it reads "target_temp: 17" in the config above ... this is simply how the code is written (see the "full config example" on: https://www.home-assistant.io/integrations/generic_thermostat/) . When you change the target temperature in the UI (using a climate card of some sort) it updates that line (or more specifically it updates the value / number) in the code and thus then also updates the floorplan text element. |
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
I hope somebody can help.
I'm trying to show the current temperature of a room in a text field on the floorplan. Lights (svg layers on/off) are working fine. However, I can't get the floorplan.set_text function to work. I've followed this example and adapted it slightly (e.g. the "-" don't work in my config, I need to remove those for some reason). Below you can find the yaml code. I've also made a screenshot of the card; I'd want the "Udestue C" placeholder text to be replaced with the temperature.
Ideally, going forward, I might also have a "/ set temp" field (i.e. if the current temp is 19°C and the set-temp is 21°C it would say "19°C / 21°C"). But that's a problem for future me....
My attempt at getting the temperature into the floorplan is all the way at the bottom of the yaml-code.
Thank you!!
(yes, I know the "light" effect isn't nice (yet), this is just pre-going live.)
Beta Was this translation helpful? Give feedback.
All reactions