This code produces the following card in HA. Dependences include:
- replace the occurance of
sensor.gw1100c_outdoor_temperaturewith your outdoor temperature - replace the occurance of
sensor.bedroom_temperaturewith your indoor temperature
This code produces the following card in HA. Dependences include:
sensor.gw1100c_outdoor_temperature with your outdoor temperaturesensor.bedroom_temperature with your indoor temperature| type: vertical-stack | |
| cards: | |
| - type: custom:mushroom-title-card | |
| title: BEDROOM DASHBOARD 🛌 | |
| subtitle: "" | |
| - type: vertical-stack | |
| cards: | |
| - type: horizontal-stack | |
| cards: | |
| - type: custom:mini-graph-card | |
| name: Temperature | |
| entities: | |
| - sensor.bedroom_temperature | |
| show: | |
| labels: true | |
| color_thresholds: | |
| - value: 30 | |
| color: "#f39c12" | |
| - value: 23 | |
| color: "#d35400" | |
| - value: 15 | |
| color: "#c0392b" | |
| - type: custom:mini-graph-card | |
| name: Humidity | |
| entities: | |
| - sensor.bedroom_humidity | |
| show: | |
| labels: true | |
| color_thresholds: | |
| - value: 90 | |
| color: "#1688A0" | |
| - value: 70 | |
| color: "#D0E4F5" | |
| - value: 60 | |
| color: "#F5F5F5" | |
| - type: markdown | |
| content: >- | |
| {% if (states('sensor.gw1100c_outdoor_temperature') | float < states('sensor.bedroom_temperature') | float)%} <ha-icon icon="mdi:snowflake"></ha-icon> It is cooler outside than it is inside. | |
| {% elif (states('sensor.gw1100c_outdoor_temperature') | float > states('sensor.bedroom_temperature') | float)%} <ha-icon icon="mdi:thermometer-alert"></ha-icon> It is hotter outside than it is inside. | |
| {% endif %} | |
| - Outside Temp: {{states('sensor.gw1100c_outdoor_temperature')}} °C |