# Loads default set of integrations. Do not remove. default_config: # Load frontend themes from the themes folder frontend: themes: !include_dir_merge_named themes automation: !include automations.yaml script: !include scripts.yaml scene: !include scenes.yaml mqtt: !include mqtt.yaml sensor: - platform: template sensors: washer_door_lock: friendly_name: "Washer Door Lock" value_template: "{{ state_attr('sensor.stiralnaia_mashina','door_lock') }}" washer_time_display: friendly_name: "Washer Time Display" value_template: > {% if is_state('sensor.stiralnaia_mashina_run_state', '-') %} {% elif is_state('sensor.stiralnaia_mashina_run_state', 'unavailable') %} {% elif is_state('sensor.stiralnaia_mashina_run_state', 'Standby') %} -:-- {% else %} {{ state_attr("sensor.stiralnaia_mashina","remain_time").split(":")[:-1] | join(':') }} {% endif %} blank: friendly_name: "Blank Sensor" value_template: ""