Last active
October 2, 2023 06:19
-
-
Save GuySie/d8a2df745aaccc80f95a90f6b224063c to your computer and use it in GitHub Desktop.
Home Assistant corner temperature complication
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{ "🛏️ " }}{%- if states("sensor.bedroom_temperature") != 'unavailable' %}{{ (states("sensor.bedroom_temperature"))|round(1) }}{{ "°" }}{% else %}{{ "N/A" }}{% endif %} | |
{{ " 💻 " }}{%- if states("sensor.studio_temperature") != 'unavailable' %}{{ (states("sensor.studio_temperature"))|round(1) }}{{ "°" }}{% else %}{{ "N/A" }}{% endif %} | |
{{ "🛋️ " }}{%- if states("sensor.livingroom_temperature") != 'unavailable' %}{{ (states("sensor.livingroom_temperature"))|round(1) }}{{ "°" }}{% else %}{{ "N/A" }}{% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Modified to check for sensor availability. Otherwise, this would result in error messages on your watch face.