Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type: vertical-stack
- cards:
- - type: custom:button-card
- styles:
- grid:
- - grid-template-areas: '"weather ute stue kjeller kaffe vvb mode automode"'
- - grid-template-columns: 110px 180px 180px 180px 90px 90px 90px 90px
- card:
- - padding: 10px
- - height: 92px
- - background-color: '#262626'
- - width: 1025px
- custom_fields:
- weather:
- card:
- type: custom:button-card
- show_entity_picture: true
- size: 100%
- styles:
- card:
- - height: 100px
- - top: '-1.88em'
- entity_picture: |
- [[[
- var weatherIconsDay = {
- clear: "day",
- "clear-night": "night",
- cloudy: "cloudy",
- fog: "cloudy",
- hail: "rainy-7",
- lightning: "thunder",
- "lightning-rainy": "thunder",
- partlycloudy: "cloudy-day-3",
- pouring: "rainy-6",
- rainy: "rainy-5",
- snowy: "snowy-6",
- "snowy-rainy": "rainy-7",
- sunny: "day",
- windy: "cloudy",
- "windy-variant": "cloudy-day-3",
- exceptional: "!!",
- };
- var weatherIconsNight = {
- ...weatherIconsDay,
- clear: "night",
- sunny: "night",
- partlycloudy: "cloudy-night-3",
- "windy-variant": "cloudy-night-3",
- };
- var weather = states["weather.home"].state;
- var sun = states["sun.sun"].state;
- if (sun == 'below_horizon') {
- var icon = weatherIconsNight[weather];
- return "https://cdn.jsdelivr.net/gh/bramkragten/weather-card/dist/icons/" + icon + ".svg";
- }
- else {
- var icon = weatherIconsDay[weather];
- return "https://cdn.jsdelivr.net/gh/bramkragten/weather-card/dist/icons/" + icon + ".svg";
- }
- ]]]
- tap_action:
- action: navigate
- navigation_path: /google-nest/var
- automode:
- card:
- type: custom:button-card
- entity: input_boolean.automation_house
- icon: mdi:solar-power
- size: 40%
- name: Auto
- tap_action:
- action: toggle
- styles:
- card:
- - top: '-1.8em'
- - height: 80px
- - width: 80px
- - box-shadow: 0px 0px 10px 0px
- - border-radius: 40px
- - padding: 15px 15px
- name:
- - font-size: 20px
- color_type: card
- color: green
- ute:
- card:
- type: custom:button-card
- entity: sensor.temperature_ute_veranda
- show_state: true
- icon: mdi:thermometer
- name: Ute
- show_units: true
- show_icon: false
- styles:
- card:
- - font-size: 50px
- - top: '-0.8em'
- name:
- - font-size: 30px
- color_type: icon
- color: grey
- tap_action:
- action: navigate
- navigation_path: /google-nest/temperatur
- stue:
- card:
- type: custom:button-card
- entity: sensor.temperature_spisestue
- show_state: true
- icon: mdi:thermometer
- name: Stue
- show_units: true
- show_icon: false
- styles:
- card:
- - font-size: 50px
- - top: '-0.8em'
- name:
- - font-size: 30px
- color_type: icon
- color: grey
- tap_action:
- action: navigate
- navigation_path: /google-nest/temperatur
- kjeller:
- card:
- type: custom:button-card
- entity: sensor.temperature_hall_1etg
- show_state: true
- icon: mdi:thermometer
- name: Kjeller
- show_units: true
- show_icon: false
- styles:
- card:
- - font-size: 50px
- - top: '-0.8em'
- name:
- - font-size: 30px
- color_type: icon
- color: grey
- tap_action:
- action: navigate
- navigation_path: /google-nest/temperatur
- post:
- card:
- type: custom:button-card
- entity: sensor.post_levering
- show_state: true
- icon: mdi:mail
- name: Post
- show_units: true
- show_icon: false
- styles:
- card:
- - height: 70px
- - font-size: 25px
- - top: '-1.7em'
- name:
- - font-size: 20px
- - color: grey
- color_type: icon
- color: grey
- mode:
- card:
- type: custom:button-card
- size: 40%
- entity: input_select.house_mode
- tap_action:
- action: call-service
- service: input_select.select_next
- service_data:
- entity_id: input_select.house_mode
- color_type: card
- show_name: false
- show_state: true
- color: '#1C1C1C'
- styles:
- card:
- - top: '-1.8em'
- - height: 80px
- - width: 80px
- - box-shadow: 0px 0px 10px 0px
- - border-radius: 40px
- - padding: 15px 15px
- name:
- - font-size: 20px
- state:
- - value: Av
- color: grey
- icon: mdi:radiator-off
- - value: Eco
- color: yellow
- icon: hass:weather-night
- - value: Comfy
- color: green
- icon: hass:white-balance-sunny
- - value: Boost
- color: red
- icon: hass:heat-wave
- vvb:
- card:
- type: custom:button-card
- size: 40%
- styles:
- card:
- - top: '-1.8em'
- - height: 80px
- - width: 80px
- - animation: >
- [[[ if (states['input_boolean.vvb_kjorer'].state == 'on' )
- return 'blink 4s ease infinite'; ]]]
- - box-shadow: 0px 0px 10px 0px
- - border-radius: 40px
- - padding: 15px 15px
- name:
- - font-size: 20px
- icon: hass:water-boiler
- entity: switch.varmtvannsbereder
- name: VVB
- show_name: true
- color_type: card
- color: green
- kaffe:
- card:
- type: custom:button-card
- size: 40%
- styles:
- card:
- - top: '-1.8em'
- - height: 80px
- - width: 80px
- - animation: >
- [[[ if (states['input_boolean.kaffemaskin_kjorer'].state ==
- 'on' ) return 'blink 4s ease infinite'; ]]]
- - box-shadow: 0px 0px 10px 0px
- - border-radius: 40px
- - padding: 15px 15px
- name:
- - font-size: 20px
- icon: hass:coffee
- entity: switch.kaffemaskin
- name: Kaffe
- show_name: true
- color_type: card
- color: green
- - type: custom:button-card
- styles:
- grid:
- - grid-template-areas: '"calendar info"'
- - grid-template-columns: 370px 1fr
- card:
- - padding: 0px
- - background-color: black
- - width: 1025px
- - height: 430px
- custom_fields:
- info:
- card:
- type: vertical-stack
- cards:
- - type: custom:button-card
- styles:
- card:
- - font-size: 150px
- - padding: 0px
- - height: 130px
- entity: sensor.time
- show_icon: false
- show_state: true
- show_name: false
- - type: grid
- cards:
- - type: gauge
- entity: sensor.power_production_now
- max: 5000
- name: Lages
- min: 0
- severity:
- green: 1
- yellow: 0
- red: 0
- style: |
- div.name {
- font-size: 30px;
- }
- ha-card.type-gauge {
- padding: 1x;
- }
- - type: gauge
- entity: sensor.power_ovre_masan_26
- min: 0
- max: 20000
- name: Kjøpes
- severity:
- green: 1
- yellow: 10000
- red: 12500
- style: |
- div.name {
- font-size: 20px;
- }
- ha-card.type-gauge {
- padding: 1px;
- }
- - type: gauge
- entity: sensor.oppvarming_power_rounded
- min: 0
- max: 8410
- name: Oppvarming
- severity:
- green: 1
- yellow: 0
- red: 0
- style: |
- div.name {
- font-size: 20px;
- }
- ha-card.type-gauge {
- padding: 1px;
- }
- - type: gauge
- entity: sensor.power_production_ovre_masan_26
- min: 0
- max: 5400
- name: Selges
- style: |
- div.name {
- font-size: 20px;
- }
- ha-card.type-gauge {
- padding: 1px;
- }
- columns: 4
- square: false
- - type: grid
- cards:
- - type: custom:button-card
- size: 30%
- entity: input_boolean.oppvaskmaskin_kjorer
- name: Oppvask
- show_name: true
- show_icon: false
- color_type: card
- state:
- - value: 'on'
- color: green
- styles:
- card:
- - animation: blink 3s ease infinite
- tap_action:
- action: none
- styles:
- card:
- - border-radius: 200px
- - height: 30px
- - type: custom:button-card
- size: 30%
- entity: input_boolean.vaskemaskin_kjorer
- name: Klesvask
- show_name: true
- show_icon: false
- color_type: card
- state:
- - value: 'on'
- color: green
- styles:
- card:
- - animation: blink 3s ease infinite
- tap_action:
- action: none
- styles:
- card:
- - border-radius: 200px
- - height: 30px
- - type: custom:button-card
- size: 30%
- entity: input_boolean.torketrommel_kjorer
- name: Tørketrommel
- show_name: true
- show_icon: false
- color_type: card
- state:
- - value: 'on'
- color: green
- styles:
- card:
- - animation: blink 3s ease infinite
- tap_action:
- action: none
- styles:
- card:
- - border-radius: 200px
- - height: 30px
- square: false
- columns: 3
- - type: grid
- cards:
- - type: custom:button-card
- color_type: icon
- styles:
- card:
- - height: 70px
- - box-shadow: 0px 0px 10px 1px
- - border-radius: 40px
- - width: 140px
- - padding: 15px 15px
- - background-color: '#3D3D3D'
- name:
- - font-size: 25px
- tap_action:
- action: navigate
- navigation_path: /google-nest/multi
- icon: mdi:information-outline
- show_icon: false
- name: Info
- - type: custom:button-card
- color_type: icon
- styles:
- card:
- - height: 70px
- - box-shadow: 0px 0px 10px 1px
- - border-radius: 40px
- - width: 140px
- - padding: 15px 15px
- - background-color: '#3D3D3D'
- name:
- - font-size: 25px
- tap_action:
- action: navigate
- navigation_path: /google-nest/sonos
- name: Sonos
- icon: mdi:music
- show_icon: false
- show_name: true
- - type: custom:button-card
- color_type: icon
- styles:
- card:
- - height: 70px
- - box-shadow: 0px 0px 10px 1px
- - border-radius: 40px
- - width: 140px
- - padding: 15px 15px
- - background-color: '#3D3D3D'
- name:
- - font-size: 25px
- tap_action:
- action: call-service
- service: nodered.trigger
- service_data:
- entity_id: switch.nyheter_kjokken
- name: Nyheter
- icon: mdi:music
- show_icon: false
- label: Kjøkken
- show_label: true
- - type: custom:button-card
- color_type: icon
- styles:
- card:
- - height: 70px
- - box-shadow: 0px 0px 10px 1px
- - border-radius: 40px
- - width: 140px
- - padding: 15px 15px
- - background-color: '#3D3D3D'
- name:
- - font-size: 25px
- tap_action:
- action: call-service
- service: button.press
- service_data:
- entity_id: button.stop_alle_sonos
- name: Stopp
- label: All Musikk
- icon: mdi:stop
- show_icon: false
- show_label: true
- columns: 4
- square: false
- calendar:
- card:
- type: custom:atomic-calendar-revive
- name: Kalender
- enableModeChange: true
- entities:
- - calendar.suneworld_gmail_com
- - calendar.natalie_narud_gmail_com
- firstDayOfWeek: 1
- refreshInterval: 60
- maxDaysToShow: 10
- sortByStartTime: true
- hideDuplicates: true
- hideFinishedEvents: false
- showWeekDay: true
- disableEventLink: true
- showNoEventsForToday: true
- showFullDayProgress: false
- showEventIcon: false
- showHiddenText: false
- showLastCalendarWeek: true
- disableCalEventLink: true
- disableCalLocationLink: true
- disableCalLink: true
- calShowDescription: false
- dimFinishedEvents: false
- showLocation: false
- showDate: true
- showProgressBar: false
- showRelativeTime: false
- cardHeight: 410px
- style: |
- .event-title {
- text-align: left;
- font-size: 23px
- }
- .event-titleRunning {
- text-align: left;
- font-size: 23px
- }
- div.hoursHTML, div.relativeTime {
- color: grey;
- font-size: 30px
- }
- div.calDate {
- font-size: 27px
- }
- - type: custom:button-card
- styles:
- grid:
- - grid-template-areas: >-
- "brukt produsert solgt pris kam_inne kam_terrasse kam_hushjorne
- kam_inngang alarm"
- - grid-template-columns: 180px 180px 180px 200px 50px 60px 55px 55px 55px
- card:
- - padding: 10px
- - height: 65px
- - background-color: '#262626'
- - width: 1025px
- custom_fields:
- brukt:
- card:
- type: custom:button-card
- show_state: true
- name: Brukt i dag/i går
- state_display: >
- [[[ return +
- Math.round(Number(states['sensor.used_object'].attributes.daily)) +
- ' / ' +
- Math.round(Number(states['sensor.used_object'].attributes.daily_last_period))
- + ' kWt']]]
- size: 35px
- styles:
- card:
- - background-color: '#262626'
- - font-size: 25px
- - top: '-0.6em'
- name:
- - font-size: 20px
- - color: '#989898'
- color_type: icon
- produsert:
- card:
- type: custom:button-card
- show_state: true
- name: Kostnad i dag/i går
- state_display: >
- [[[ return +
- Math.round(Number(states['sensor.cost_object'].attributes.daily)) +
- ' / ' +
- Math.round(Number(states['sensor.cost_object'].attributes.daily_last_period))
- + ' kr']]]
- size: 35px
- styles:
- card:
- - height: 70px
- - font-size: 25px
- - top: '-0.6em'
- - background-color: '#262626'
- name:
- - font-size: 20px
- - color: '#989898'
- color_type: icon
- solgt:
- card:
- type: custom:button-card
- show_state: true
- name: Solgt i dag/i går
- state_display: >
- [[[ return +
- Math.round(Number(states['sensor.sold_object'].attributes.daily)) +
- ' / ' +
- Math.round(Number(states['sensor.sold_object'].attributes.daily_last_period))
- + ' kWt']]]
- size: 35px
- styles:
- card:
- - height: 70px
- - font-size: 25px
- - top: '-0.6em'
- - background-color: '#262626'
- name:
- - font-size: 20px
- - color: '#989898'
- color_type: icon
- pris:
- card:
- type: custom:button-card
- show_state: true
- name: Pr time nå/Pr kWt
- state_display: |
- [[[ return +
- (states['sensor.cost_balance'].state)
- + '/ '+
- Math.round(Number(states['sensor.price_pr_kwh_including_nettleie_and_compensation'].state)*100)/100
- + ' kr']]]
- size: 35px
- styles:
- card:
- - height: 70px
- - font-size: 25px
- - top: '-0.6em'
- - background-color: '#262626'
- name:
- - font-size: 20px
- - color: '#989898'
- color_type: icon
- alarm:
- card:
- type: custom:button-card
- entity: alarm_control_panel.verisure_alarm
- show_name: true
- name: Alarm
- icon: mdi:security
- show_icon: true
- show_state: false
- color_type: icon
- state:
- - value: disarmed
- operator: '=='
- color: green
- size: 30px
- styles:
- card:
- - height: 50px
- - color: white
- - padding: 0%
- - top: '-1.0em'
- - font-size: 15px
- - background-color: '#262626'
- - operator: default
- color: red
- size: 20px
- styles:
- card:
- - height: 50px
- - color: white
- - padding: 0%
- - top: '-1.0em'
- - font-size: 15px
- - background-color: '#262626'
- kam_inne:
- card:
- type: custom:button-card
- entity: alarm_control_panel.aarlo_inne
- show_icon: true
- color_type: icon
- state:
- - value: armed_away
- operator: '=='
- color: red
- styles:
- card:
- - height: 50px
- - color: white
- - padding: 0%
- - top: '-1.0em'
- - font-size: 15px
- - background-color: '#262626'
- - operator: default
- color: green
- styles:
- card:
- - height: 50px
- - padding: 0%
- - background-color: '#262626'
- - top: '-1.0em'
- - font-size: 15px
- kam_terrasse:
- card:
- type: custom:button-card
- entity: alarm_control_panel.aarlo_terrasse
- show_icon: true
- color_type: icon
- state:
- - value: armed_away
- operator: '=='
- color: red
- styles:
- card:
- - height: 50px
- - color: white
- - padding: 0%
- - top: '-1.0em'
- - font-size: 15px
- - background-color: '#262626'
- - operator: default
- color: green
- styles:
- card:
- - height: 50px
- - padding: 0%
- - background-color: '#262626'
- - top: '-1.0em'
- - font-size: 15px
- kam_hushjorne:
- card:
- type: custom:button-card
- entity: alarm_control_panel.aarlo_hushjorne
- show_icon: true
- color_type: icon
- name: Hjørne
- state:
- - value: armed_away
- operator: '=='
- color: red
- styles:
- card:
- - height: 50px
- - color: white
- - padding: 0%
- - top: '-1.0em'
- - font-size: 15px
- - background-color: '#262626'
- - operator: default
- color: green
- styles:
- card:
- - height: 50px
- - padding: 0%
- - background-color: '#262626'
- - top: '-1.0em'
- - font-size: 15px
- kam_inngang:
- card:
- type: custom:button-card
- entity: alarm_control_panel.aarlo_inngangsdor
- show_icon: true
- name: Inngang
- color_type: icon
- state:
- - value: armed_away
- operator: '=='
- color: red
- styles:
- card:
- - height: 50px
- - color: white
- - padding: 0%
- - top: '-1.0em'
- - font-size: 15px
- - background-color: '#262626'
- - operator: default
- color: green
- styles:
- card:
- - height: 50px
- - padding: 0%
- - background-color: '#262626'
- - top: '-1.0em'
- - font-size: 15px
Advertisement
Add Comment
Please, Sign In to add comment