|
@@ -61,3 +61,24 @@ input_number:
|
|
|
mode: slider
|
|
mode: slider
|
|
|
icon: mdi:timer-outline
|
|
icon: mdi:timer-outline
|
|
|
initial: 25
|
|
initial: 25
|
|
|
|
|
+
|
|
|
|
|
+template:
|
|
|
|
|
+ - sensor:
|
|
|
|
|
+ - name: "Car Heater Status"
|
|
|
|
|
+ unique_id: car_heater_status_display
|
|
|
|
|
+ state: >
|
|
|
|
|
+ {% if is_state('switch.shelly_car_heater', 'off') %}
|
|
|
|
|
+ Gray
|
|
|
|
|
+ {% elif states('sensor.shelly_car_heater_power') | float(0) > 5 %}
|
|
|
|
|
+ Green
|
|
|
|
|
+ {% else %}
|
|
|
|
|
+ Yellow
|
|
|
|
|
+ {% endif %}
|
|
|
|
|
+ icon: >
|
|
|
|
|
+ {% if is_state('switch.shelly_car_heater', 'off') %}
|
|
|
|
|
+ mdi:power-off
|
|
|
|
|
+ {% elif states('sensor.shelly_car_heater_power') | float(0) > 5 %}
|
|
|
|
|
+ mdi:radiator
|
|
|
|
|
+ {% else %}
|
|
|
|
|
+ mdi:alert-circle-outline
|
|
|
|
|
+ {% endif %}
|