-
Ah yes, I need new help because I just don't understand how to do it, so I tried something!
Is this even the right way?
- name: Temperature
entities:
- sensor.povprecje_temperature_di
- sensor.povprecje_temperature_jedilnica
- sensor.povprecje_temperature_kopalnica
- sensor.povprecje_temperature_michele
- sensor.povprecje_temperature_nata
- sensor.povprecje_temperature_spalnica
- sensor.povprecje_temperature_vhod
state_action:
- service: floorplan.text_set
service_data: >-
${(entity.state !== undefined) ?
Math.round(entity.state * 10) / 10 + "°" :
"unknown"}
- service: floorplan.class_set
service_data:
class: static-temp
Od HA dobim povprečno temperaturo za vsako sobo posebej! in CSS i have: .static-temp {
fill: none;
stroke: none;
font-size: 10px;
color: aliceblue;
font-style: italic;
z-index: 10;
} Apparently, again, my current knowledge ends here! |
Beta Was this translation helpful? Give feedback.
Answered by
Trzinka
Jan 25, 2024
Replies: 1 comment
-
With the help of watching a video and a bit of surfing the web, I solved the problem!!!
- entities:
- sensor.povprecje_temperature_di
- sensor.povprecje_temperature_jedilnica
- sensor.povprecje_temperature_kopalnica
- sensor.povprecje_temperature_michele
- sensor.povprecje_temperature_nata
- sensor.povprecje_temperature_spalnica
- sensor.povprecje_temperature_vhod
state_action:
- service: floorplan.text_set
service_data: >-
${(entity.state !== undefined) ?
Math.round(entity.state * 10) / 10 + "°" :
"unknown"}
- service: floorplan.class_set
service_data:
class: static-temp
tap_action: null
This one was tough |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Trzinka
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With the help of watching a video and a bit of surfing the web, I solved the problem!!!
In Inkscape I added text over the sidebar to get this:
Then I checked through Dev tools to see what the hell was going on:
Fixed in fp.yaml