############################################################################### # CAR HEATER HELPERS ############################################################################### # ------------------------- # INPUT DATETIMES (TIME ONLY) # ------------------------- input_datetime: heater_time1: name: Heater A Time 1 has_date: false has_time: true heater_time2: name: Heater A Time 2 has_date: false has_time: true heater_time3: name: Heater A Time 3 has_date: false has_time: true heater_time4: name: Heater A Time 4 has_date: false has_time: true heater_once_time: name: Heater A One-Time Departure has_date: false has_time: true # ------------------------- # INPUT BOOLEANS (ENABLE/FLAGS) # ------------------------- input_boolean: heater_time1_active: name: Heater A Time 1 Active heater_time2_active: name: Heater A Time 2 Active heater_time3_active: name: Heater A Time 3 Active heater_time4_active: name: Heater A Time 4 Active heater_once_active: name: Heater A One-Time Active heater_force_on: name: Heater A Force ON # ------------------------- # OPTIONAL: INPUT NUMBER (AFTER HEAT TIME) # If you want the 25min window adjustable in UI. # ------------------------- input_number: heater_afterheat_minutes: name: Heater Afterheat Time min: 0 max: 120 step: 1 unit_of_measurement: "min" mode: slider icon: mdi:timer-outline 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 %}