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 av eco comfy automode"'
- - grid-template-columns: 100px 100px 100px 100px 104px 104px 104px 104px 104px 104px
- card:
- - padding: 10px
- - height: 69px
- - 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.3em'
- 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
- name: Autohus
- tap_action:
- action: toggle
- styles:
- card:
- - font-size: 90%
- - top: '-1.9em'
- 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: 25px
- - top: '-1.3em'
- name:
- - font-size: 20px
- - color: grey
- 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: 25px
- - top: '-1.3em'
- name:
- - font-size: 20px
- - color: grey
- 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: 25px
- - top: '-1.3em'
- name:
- - font-size: 20px
- - color: grey
- 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.3em'
- name:
- - font-size: 20px
- - color: grey
- color_type: icon
- color: grey
- eco:
- card:
- type: custom:button-card
- entity: input_select.house_mode
- icon: hass:weather-night
- name: Øko
- tap_action:
- action: call-service
- service: input_select.select_option
- service_data:
- option: Eco
- entity_id: input_select.house_mode
- state:
- - value: Eco
- color: yellow
- color_type: card
- color: '#1C1C1C'
- styles:
- card:
- - font-size: 90%
- - top: '-1.9em'
- av:
- card:
- type: custom:button-card
- entity: input_select.house_mode
- icon: mdi:radiator-off
- name: Av
- tap_action:
- action: call-service
- service: input_select.select_option
- service_data:
- option: Av
- entity_id: input_select.house_mode
- state:
- - value: Av
- color: grey
- color_type: card
- color: '#1C1C1C'
- styles:
- card:
- - font-size: 90%
- - top: '-1.9em'
- comfy:
- card:
- type: custom:button-card
- entity: input_select.house_mode
- icon: hass:white-balance-sunny
- name: Komfort
- tap_action:
- action: call-service
- service: input_select.select_option
- service_data:
- option: Comfy
- entity_id: input_select.house_mode
- state:
- - value: Comfy
- color: green
- color_type: card
- color: '#1C1C1C'
- styles:
- card:
- - font-size: 90%
- - top: '-1.9em'
- vvb:
- card:
- type: custom:button-card
- size: 40%
- styles:
- card:
- - font-size: 90%
- - top: '-1.9em'
- 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:
- - font-size: 90%
- - top: '-1.9em'
- 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: 400px 1fr
- card:
- - padding: 0px
- - background-color: black
- - width: 1025px
- - height: 450px
- custom_fields:
- info:
- card:
- type: vertical-stack
- cards:
- - type: custom:button-card
- styles:
- card:
- - font-size: 180px
- - padding: 0px
- - height: 160px
- entity: sensor.time
- show_icon: false
- show_state: true
- show_name: false
- - type: grid
- cards:
- - type: gauge
- entity: sensor.inverter_total_ac_output_washed
- max: 5000
- name: Lages
- min: 0
- severity:
- green: 1
- yellow: 0
- red: 0
- style: |
- div.name {
- font-size: 20px;
- }
- 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.watt_total_oppvarming
- 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: 5000
- 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
- color_type: icon
- styles:
- card:
- - height: 130px
- - box-shadow: 0px 0px 20px -1px
- - border-radius: 40px
- - width: 140px
- - padding: 15px 15px
- - background-color: '#3D3D3D'
- name:
- - font-size: 25px
- tap_action:
- action: navigate
- navigation_path: /google-nest/forbruk
- icon: mdi:information-outline
- show_icon: true
- name: Info
- - type: custom:button-card
- color_type: icon
- styles:
- card:
- - height: 130px
- - box-shadow: 0px 0px 20px -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: true
- show_name: true
- - type: custom:button-card
- color_type: icon
- styles:
- card:
- - height: 130px
- - box-shadow: 0px 0px 20px -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: true
- label: Kjøkken
- show_label: true
- - type: custom:button-card
- color_type: icon
- styles:
- card:
- - height: 130px
- - box-shadow: 0px 0px 20px -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: true
- 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
- 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_i_dag brukt_i_gar produsert_i_dag produsert_i_gar solgt_i_dag
- solgt_i_gar alarm"
- - grid-template-columns: 150px 150px 150px 150px 150px 150px 140px
- card:
- - padding: 10px
- - height: 70px
- - background-color: '#262626'
- - width: 1025px
- custom_fields:
- brukt_i_dag:
- card:
- type: custom:button-card
- show_state: true
- icon: mdi:flash
- name: Brukt idag
- state_display: >
- [[[ return
- Math.round(Number(states['sensor.energy'].attributes.daily)) + '
- kWt' ]]]
- size: 35px
- styles:
- card:
- - height: 70px
- - font-size: 30px
- - top: '-0.5em'
- name:
- - font-size: 20px
- - color: grey
- color_type: icon
- color: grey
- brukt_i_gar:
- card:
- type: custom:button-card
- show_state: true
- icon: mdi:flash
- name: Brukt igår
- state_display: >
- [[[ return
- Math.round(Number(states['sensor.energy'].attributes.daily_last_period))
- + ' kWt' ]]]
- size: 35px
- styles:
- card:
- - height: 70px
- - font-size: 30px
- - top: '-0.5em'
- name:
- - font-size: 20px
- - color: grey
- color_type: icon
- color: grey
- produsert_i_dag:
- card:
- type: custom:button-card
- show_state: true
- icon: mdi:flash
- name: Prod i dag
- state_display: >
- [[[ return
- Math.round(Number(states['sensor.power_produced'].attributes.this_day))
- + ' kWt' ]]]
- size: 35px
- styles:
- card:
- - height: 70px
- - font-size: 30px
- - top: '-0.5em'
- name:
- - font-size: 20px
- - color: grey
- color_type: icon
- color: grey
- produsert_i_gar:
- card:
- type: custom:button-card
- show_state: true
- icon: mdi:flash
- name: Prod i går
- state_display: >
- [[[ return
- Math.round(Number(states['sensor.power_produced'].attributes.daily_last_period))
- + ' kWt' ]]]
- size: 35px
- styles:
- card:
- - height: 70px
- - font-size: 30px
- - top: '-0.5em'
- name:
- - font-size: 20px
- - color: grey
- color_type: icon
- color: grey
- solgt_i_dag:
- card:
- type: custom:button-card
- show_state: true
- icon: mdi:flash
- name: Solgt i dag
- state_display: >
- [[[ return
- Math.round(Number(states['sensor.power_sold'].attributes.this_day))
- + ' kWt' ]]]
- size: 35px
- styles:
- card:
- - height: 70px
- - font-size: 30px
- - top: '-0.5em'
- name:
- - font-size: 20px
- - color: grey
- color_type: icon
- color: grey
- solgt_i_gar:
- card:
- type: custom:button-card
- show_state: true
- icon: mdi:flash
- name: Solgt i går
- state_display: >
- [[[ return
- Math.round(Number(states['sensor.power_sold'].attributes.daily_last_period))
- + ' kWt' ]]]
- size: 35px
- styles:
- card:
- - height: 70px
- - font-size: 30px
- - top: '-0.5em'
- name:
- - font-size: 20px
- - color: grey
- color_type: icon
- color: grey
- alarm:
- card:
- type: custom:button-card
- entity: alarm_control_panel.verisure_alarm
- show_name: false
- show_icon: true
- show_state: true
- color_type: icon
- state:
- - value: disarmed
- operator: '=='
- color: '#43A047'
- icon: mdi:shield
- size: 40px
- styles:
- card:
- - color: white
- - padding: 0%
- - background-color: '#262626'
- - top: '-1.1em'
- - operator: default
- color: red
- icon: mdi:shield-off
- styles:
- card:
- - color: red
- - height: 70px
- - padding: 0%
- - background-color: '#262626'
- - top: '-1.1em'
- vvb:
- card:
- type: custom:button-card
- size: 40%
- styles:
- card:
- - font-size: 90%
- - top: '-1.1em'
- icon: hass:water-boiler
- entity: switch.varmtvannsbereder
- name: VVB
- show_name: true
- color_type: card
- color: green
Add Comment
Please, Sign In to add comment