Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type: vertical-stack
- title: Deumidificatore 💦
- cards:
- - type: custom:swipe-card
- cards:
- - type: custom:mini-graph-card
- name: Umidità
- entities:
- - entity: sensor.umidita_camera
- name: Camera
- show_state: true
- color: red
- - entity: sensor.umidita_soggiorno
- name: Soggiorno
- show_state: true
- color: blue
- unit: '%'
- hour24: true
- show:
- graph: true
- icon: true
- extrema: false
- fill: true
- state: true
- labels: true
- animate: true
- align_state: center
- hours_to_show: 24
- tap_action:
- action: none
- - type: custom:mini-graph-card
- name: Temperature
- entities:
- - entity: sensor.broadlink_rm4_camera_temperature
- name: Camera
- show_state: true
- color: red
- - entity: sensor.broadlink_rm4_soggiorno_temperature
- name: Soggiorno
- show_state: true
- color: blue
- hour24: true
- show:
- graph: true
- icon: true
- extrema: false
- fill: true
- state: true
- labels: true
- animate: true
- align_state: center
- hours_to_show: 24
- tap_action:
- action: none
- - type: entities
- show_header_toggle: false
- entities:
- - entity: humidifier.deumidificatore
- toggle: false
- show_state: false
- type: custom:multiple-entity-row
- name: Impostazioni
- icon: mdi:water-percent
- state_header: Stato
- entities:
- - attribute: humidity
- name: Target
- unit: '%'
- - entity: sensor.deumidificatore_humidity
- name: Attuale
- - entity: sensor.umidita_camera
- toggle: false
- type: custom:multiple-entity-row
- name: Camere
- icon: mdi:water-percent
- state_header: Camera
- entities:
- - entity: sensor.umidita_soggiorno
- name: Soggiorno
- - entity: binary_sensor.deumidificatore_defrosting
- toggle: false
- type: custom:multiple-entity-row
- name: Stato
- icon: mdi:format-list-bulleted-type
- state_header: Defrosting
- entities:
- - entity: sensor.deumidificatore_temperature
- name: Temperature
- - type: horizontal-stack
- cards:
- - type: custom:button-card
- tap_action:
- action: call-service
- service: humidifier.toggle
- service_data:
- entity_id: humidifier.deumidificatore
- entity_id: humidifier.deumidificatore
- entity: humidifier.deumidificatore
- extra_styles: |
- @keyframes bounce {
- 0%, 20%, 50%, 80%, 100% { transform: translateX(0); }
- 40% { transform: translateX(-15px); }
- 60% { transform: translateX(-10px); }
- }
- name: Deumidificatore
- icon: mdi:air-humidifier
- label: Spento
- show_label: true
- show_icon: true
- show_name: false
- styles:
- label:
- - color: white
- icon:
- - color: white
- card:
- - background-color: red
- state:
- - value: 'on'
- icon: mdi:tailwind
- label: Acceso
- styles:
- card:
- - background-color: limegreen
- label:
- - color: black
- icon:
- - icon: mdi:tailwind
- - color: black
- - animation: bounce 2s infinite
- - type: custom:button-card
- entity: binary_sensor.deumidificatore_tank_full
- name: Vuoto
- show_icon: true
- show_name: true
- state:
- - value: 'on'
- icon: mdi:beaker-alert
- name: Pieno
- styles:
- card:
- - background-color: orange
- - animation: blink 2s infinite
- - operator: default
- icon: mdi:beaker-outline
- - type: custom:button-card
- entity: fan.deumidificatore_fan
- show_icon: true
- show_name: true
- tap_action:
- action: call-service
- service: script.conta_fan_deumidificatore
- state:
- - operator: template
- value: |
- [[[
- return (states['fan.deumidificatore_fan'].attributes.preset_mode === 'High' ) && states['humidifier.deumidificatore'].state === 'on'
- ]]]
- icon: mdi:fan
- name: Turbo
- color: black
- styles:
- name:
- - color: black
- icon:
- - animation:
- - rotating 0.5s linear infinite
- card:
- - background-color: '#D2D180'
- - operator: template
- value: |
- [[[
- return (states['fan.deumidificatore_fan'].attributes.preset_mode === 'Medium' ) && states['humidifier.deumidificatore'].state === 'on'
- ]]]
- icon: mdi:fan
- name: Medio
- color: black
- styles:
- name:
- - color: black
- icon:
- - animation:
- - rotating 1s linear infinite
- card:
- - background-color: '#E5E483'
- - operator: template
- value: |
- [[[
- return (states['fan.deumidificatore_fan'].attributes.preset_mode === 'Low' ) && states['humidifier.deumidificatore'].state === 'on'
- ]]]
- icon: mdi:fan
- name: Lento
- color: black
- styles:
- name:
- - color: black
- icon:
- - animation:
- - rotating 2s linear infinite
- card:
- - background-color: '#F1F5A8'
- - operator: default
- icon: mdi:fan
- color: white
- name: 'Off'
- - type: entities
- show_header_toggle: false
- entities:
- - type: custom:text-divider-row
- text: Modalità
- - type: custom:paper-buttons-row
- buttons:
- - tap_action:
- action: call-service
- service: humidifier.set_mode
- service_data:
- entity_id: humidifier.deumidificatore
- mode: Set
- icon: mdi:water-percent
- layout: icon_name
- name: Target
- style:
- button:
- background-color: >
- {% if is_state_attr('humidifier.deumidificatore', 'mode',
- 'Set' ) and is_state('humidifier.deumidificatore', 'on') %}
- limegreen
- {% else%}
- {% endif %}
- color: >
- {% if is_state_attr('humidifier.deumidificatore', 'mode',
- 'Set' ) and is_state('humidifier.deumidificatore', 'on') %}
- white
- {% else%}
- {% endif %}
- border-radius: 10px
- opacity: 1
- - icon: mdi:robot
- tap_action:
- action: call-service
- service: humidifier.set_mode
- service_data:
- entity_id: humidifier.deumidificatore
- mode: Smart
- layout: icon_name
- name: Smart
- style:
- button:
- background-color: >
- {% if is_state_attr('humidifier.deumidificatore', 'mode',
- 'Smart' ) and is_state('humidifier.deumidificatore', 'on') %}
- limegreen
- {% else%}
- {% endif %}
- color: >
- {% if is_state_attr('humidifier.deumidificatore', 'mode',
- 'Smart' ) and is_state('humidifier.deumidificatore', 'on') %}
- white
- {% else%}
- {% endif %}
- border-radius: 10px
- opacity: 1
- - icon: mdi:autorenew
- name: Continuo
- layout: icon_name
- tap_action:
- action: call-service
- service: humidifier.set_mode
- service_data:
- entity_id: humidifier.deumidificatore
- mode: Continuous
- style:
- button:
- background-color: >
- {% if is_state_attr('humidifier.deumidificatore', 'mode',
- 'Continuous' ) and is_state('humidifier.deumidificatore',
- 'on') %}
- limegreen
- {% else%}
- {% endif %}
- color: >
- {% if is_state_attr('humidifier.deumidificatore', 'mode',
- 'Continuous' ) and is_state('humidifier.deumidificatore',
- 'on') %}
- white
- {% else%}
- {% endif %}
- border-radius: 10px
- opacity: 1
- - icon: mdi:tshirt-crew
- name: Asciutto
- layout: icon_name
- tap_action:
- action: call-service
- service: humidifier.set_mode
- service_data:
- entity_id: humidifier.deumidificatore
- mode: Dry
- style:
- button:
- background-color: >
- {% if is_state_attr('humidifier.deumidificatore', 'mode',
- 'Dry' ) and is_state('humidifier.deumidificatore', 'on') %}
- limegreen
- {% else%}
- {% endif %}
- color: >
- {% if is_state_attr('humidifier.deumidificatore', 'mode',
- 'Dry' ) and is_state('humidifier.deumidificatore', 'on') %}
- white
- {% else%}
- {% endif %}
- border-radius: 10px
- opacity: 1
- - type: custom:text-divider-row
- text: Seleziona velocità ventola
- - type: custom:paper-buttons-row
- buttons:
- - icon: mdi:fan-speed-1
- name: Lento
- layout: icon_name
- tap_action:
- action: call-service
- service: fan.set_preset_mode
- service_data:
- entity_id: fan.deumidificatore_fan
- preset_mode: Low
- style:
- button:
- background-color: >
- {% if is_state_attr('fan.deumidificatore_fan', 'preset_mode',
- 'Low' ) and is_state('humidifier.deumidificatore', 'on') %}
- limegreen
- {% else%}
- {% endif %}
- color: >
- {% if is_state_attr('fan.deumidificatore_fan', 'preset_mode',
- 'Low' ) and is_state('humidifier.deumidificatore', 'on') %}
- white
- {% else%}
- {% endif %}
- border-radius: 10px
- opacity: 1
- - icon: mdi:fan-speed-2
- name: Medio
- layout: icon_name
- tap_action:
- action: call-service
- service: fan.set_preset_mode
- service_data:
- entity_id: fan.deumidificatore_fan
- preset_mode: Medium
- style:
- button:
- background-color: >
- {% if is_state_attr('fan.deumidificatore_fan', 'preset_mode',
- 'Medium' ) and is_state('humidifier.deumidificatore', 'on')
- %}
- limegreen
- {% else%}
- {% endif %}
- color: >
- {% if is_state_attr('fan.deumidificatore_fan', 'preset_mode',
- 'Medium' ) and is_state('humidifier.deumidificatore', 'on')
- %}
- white
- {% else%}
- {% endif %}
- border-radius: 10px
- opacity: 1
- - icon: mdi:fan-speed-3
- name: Forte
- layout: icon_name
- tap_action:
- action: call-service
- service: fan.set_preset_mode
- service_data:
- entity_id: fan.deumidificatore_fan
- preset_mode: High
- style:
- button:
- background-color: >
- {% if is_state_attr('fan.deumidificatore_fan', 'preset_mode',
- 'High' ) and is_state('humidifier.deumidificatore', 'on') %}
- limegreen
- {% else%}
- {% endif %}
- color: >
- {% if is_state_attr('fan.deumidificatore_fan', 'preset_mode',
- 'High' ) and is_state('humidifier.deumidificatore', 'on') %}
- white
- {% else%}
- {% endif %}
- border-radius: 10px
- opacity: 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement