Skip to content

Instantly share code, notes, and snippets.

@GuySie
Last active October 2, 2023 06:19
Show Gist options
  • Save GuySie/d8a2df745aaccc80f95a90f6b224063c to your computer and use it in GitHub Desktop.
Save GuySie/d8a2df745aaccc80f95a90f6b224063c to your computer and use it in GitHub Desktop.
Home Assistant corner temperature complication
{{ "🛏️ " }}{%- 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 %}
@GuySie
Copy link
Author

GuySie commented Oct 2, 2023

Modified to check for sensor availability. Otherwise, this would result in error messages on your watch face.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment