Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type: vertical-stack
- cards:
- - type: custom:bubble-pop-up
- card_type: pop-up
- hash: '#ventilasjon'
- entity: ''
- state: null
- back_open: true
- bg_opacity: '50'
- bg_blur: '20'
- - type: vertical-stack
- cards:
- - square: false
- columns: 1
- type: grid
- cards:
- - square: false
- type: grid
- cards:
- - type: custom:button-card
- entity: input_select.viftemodus
- icon: mdi:fan-remove
- aspect_ratio: 1/1
- show_state: false
- show_name: false
- name: Av
- styles:
- icon:
- - color: |
- [[[
- if (entity.state == 'Av' ) return 'green'
- else return '#50729c';
- ]]]
- tap_action:
- action: call-service
- service: input_select.select_option
- service_data:
- entity_id: input_select.viftemodus
- option: Av
- - type: custom:button-card
- entity: input_select.viftemodus
- icon: mdi:fan-speed-1
- aspect_ratio: 1/1
- show_state: false
- show_name: false
- name: Lav
- styles:
- icon:
- - color: |
- [[[
- if (entity.state == 'Lav' ) return 'green'
- else return '#50729c';
- ]]]
- tap_action:
- action: call-service
- service: input_select.select_option
- service_data:
- entity_id: input_select.viftemodus
- option: Lav
- - type: custom:button-card
- entity: input_select.viftemodus
- icon: mdi:fan-speed-2
- aspect_ratio: 1/1
- show_state: false
- show_name: false
- name: Medium
- styles:
- icon:
- - color: |
- [[[
- if (entity.state == 'Medium' ) return 'green'
- else return '#50729c';
- ]]]
- tap_action:
- action: call-service
- service: input_select.select_option
- service_data:
- entity_id: input_select.viftemodus
- option: Medium
- - type: custom:button-card
- entity: input_select.viftemodus
- icon: mdi:fan-speed-3
- aspect_ratio: 1/1
- show_state: false
- show_name: false
- name: Høy
- styles:
- icon:
- - color: |
- [[[
- if (entity.state == 'Høy' ) return 'green'
- else return '#50729c';
- ]]]
- tap_action:
- action: call-service
- service: input_select.select_option
- service_data:
- entity_id: input_select.viftemodus
- option: Høy
- - type: custom:button-card
- entity: input_boolean.boost_ventilasjon
- icon: mdi:fan-plus
- aspect_ratio: 1/1
- show_state: false
- show_name: false
- name: Høy
- styles:
- icon:
- - color: |
- [[[
- if (entity.state == 'on' ) return 'green'
- else return '#50729c';
- ]]]
- tap_action:
- action: call-service
- service: input_boolean.toggle
- service_data:
- entity_id: input_boolean.boost_ventilasjon
- columns: 5
- - square: false
- columns: 3
- type: grid
- cards:
- - type: custom:stack-in-card
- mode: horizontal
- cards:
- - type: custom:mushroom-template-card
- entity: sensor.netatmo_stue_co2
- tap_action:
- action: more-info
- primary: |
- {{ states('sensor.netatmo_stue_co2')}}°
- secondary: CO2
- icon: mdi:molecule-co2
- icon_color: >-
- {% if (states['sensor.netatmo_stue_co2'].state) | float >
- 1200 %}
- 255, 87, 34
- {% elif (states['sensor.netatmo_stue_co2'].state) | float
- < 800 %}
- green
- {% else %}
- yellow
- {% endif %}
- card_mod:
- style: |
- ha-card {
- border-radius: 0px;
- background: none;
- box-shadow: none;
- --ha-card-border-width: 0;
- --card-primary-font-size: 12px;
- --card-secondary-font-size: 10px;
- }
- :host {
- flex: 1 1 0% !important;
- min-width:
- min-content !important;
- }
- - type: custom:stack-in-card
- mode: horizontal
- cards:
- - type: custom:mushroom-template-card
- entity: sensor.temp_bad_humidity
- tap_action:
- action: more-info
- primary: |
- {{ states('sensor.temp_bad_humidity') | float | int}} %
- secondary: Bad
- icon: >-
- {% if states['sensor.temp_bad_humidity'].state | float >
- 70 %}
- mdi:water-percent-alert
- {% else %}
- mdi:water-percent
- {% endif %}
- icon_color: >-
- {% if states['sensor.temp_bad_humidity'].state | float >
- 70 %}
- 255, 87, 34
- {% elif states['sensor.temp_bad_humidity'].state | float <
- 60 %}
- green
- {% else %}
- yellow
- {% endif %}
- card_mod:
- style: |
- ha-card {
- border-radius: 0px;
- background: none;
- box-shadow: none;
- --ha-card-border-width: 0;
- --card-primary-font-size: 12px;
- --card-secondary-font-size: 10px;
- }
- :host {
- flex: 1 1 0% !important;
- min-width:
- min-content !important;
- }
- - type: custom:stack-in-card
- mode: horizontal
- cards:
- - type: custom:mushroom-template-card
- entity: sensor.netatmo_stue_temperature
- tap_action:
- action: more-info
- primary: >
- {{ states('sensor.netatmo_stue_temperature') | float | int
- }}°
- secondary: Stue
- icon: mdi:home-thermometer-outline
- icon_color: >-
- {% if (states['sensor.netatmo_stue_temperature'].state) |
- float > 25 %}
- 255, 87, 34
- {% elif (states['sensor.netatmo_stue_temperature'].state)
- | float < 23 %}
- blue
- {% else %}
- green
- {% endif %}
- card_mod:
- style: |
- ha-card {
- border-radius: 0px;
- background: none;
- box-shadow: none;
- --ha-card-border-width: 0;
- --card-primary-font-size: 12px;
- --card-secondary-font-size: 10px;
- }
- :host {
- flex: 1 1 0% !important;
- min-width:
- min-content !important;
- }
- - type: horizontal-stack
- cards:
- - type: custom:mushroom-entity-card
- entity: input_select.viftemodus
- name: Viftemodus
- - type: custom:mushroom-entity-card
- entity: input_select.ventilasjon_temperatur
- name: Tilluft mål
- - type: custom:auto-entities
- card:
- type: entities
- filter:
- include:
- - entity_id: sensor.vtr*
- - entity_id: sensor.ventilasjon_power
- exclude:
- - entity_id: sensor.vtr300_air_fan_level
- - entity_id: sensor.vtr300_time_days_filter_change
- sort:
- method: domain
- reverse: false
- ignore_case: false
- - type: entities
- entities:
- - entity: sensor.ac_maned
- secondary_info: Forbuk
- type: custom:multiple-entity-row
- name: AC
- format: precision0
- unit: false
- icon: mdi:air-conditioner
- state_header: Måned
- styles:
- width: 37px
- font-weight: bold
- text-align: right
- entities:
- - entity: sensor.ac_power
- name: W nå
- format: precision0
- unit: false
- styles:
- width: 35px
- text-align: right
- - entity: sensor.ac_time
- name: Time
- format: precision2
- unit: false
- styles:
- width: 30px
- text-align: right
- - entity: sensor.ac_dag
- format: precision2
- name: Dag
- unit: false
- styles:
- width: 35px
- text-align: right
- - entity: sensor.klima_maned
- secondary_info: Forbuk
- type: custom:multiple-entity-row
- name: Klima
- format: precision0
- unit: false
- icon: mdi:heat-pump-outline
- state_header: Måned
- styles:
- width: 37px
- font-weight: bold
- text-align: right
- entities:
- - entity: sensor.ventilasjon_power
- name: W nå
- unit: false
- format: precision0
- styles:
- width: 35px
- text-align: right
- - entity: sensor.klima_time
- name: Time
- format: precision2
- unit: false
- styles:
- width: 30px
- text-align: right
- - entity: sensor.klima_dag
- format: precision2
- name: Dag
- unit: false
- styles:
- width: 35px
- text-align: right
Advertisement
Add Comment
Please, Sign In to add comment