I have a running widget sensor, showing 2 values and it works fine. Except that I miss an argument for adding °C to my value (and it’s not auto transported from HA)
Tried to “hack” it via CSS “after” code - got it to work if I manually edit the compiled css but that gets lots on each refresh state_text::after { content: ' °C';}
I’m trying to avoid to change the py code since that part is in Docker and would get overwritten on the next refresh.
Ignore the below - I was able to make it (so far) as a template sensor. (and just realized @ ReneTode suggested the same!)
sensor:
- platform: template
sensors:
temp_living_room:
friendly_name: Living Room Temp
value_template: "{{ states.sensor.living_room_sensor_3.state }} °C | {{ states.sensor.living_room_sensor_2.state}} %"
I need help… I can’t figure it out (as I lack coding logic skills). I tried many different examples but I can’t crack it.
This doesn’t work. And this closest example I found wouldn’t do exaclty what I want as I can’t figure out how to concatenate values and unit of measure… I’m simply trying to get this as result:
</s> <s>This only outputs an error</s> <s> Error loading /config/configuration.yaml: mapping values are not allowed here in “/config/configuration.yaml”, line 132, column 23 ``` Thanks