das ist der komplette code fuer die page.
es ist egal ob ich diesen teil oben rein kopiere oder bei der ueberschrift.
anbei hoffe ich jetzt mit der richtigen formatierung der komplette code der testseite
Code: Alles auswählen
config:
label: Testlayout Farben Temperatur im Haus
order: "20"
sidebar: true
style:
background: silver
backgroundImage: /static/garage.jpg
stylesheet: |
.item-after {
color: blue;
font-weight: bold;
font-size: 120%
color: blue;
background-color: yellow;
}
.card-header {
color: blue;
font-weight: bold;
font-size: 100%;
color: blue;
background-color: orange;
}
blocks:
- component: oh-block
config: {}
slots:
default:
- component: oh-grid-row
config: {}
slots:
default:
- component: oh-grid-col
config: {}
slots:
default:
- component: oh-list-card
config: {}
slots:
default:
- component: oh-list-item
config:
listButton: true
style:
background-color: wheat
font-size: 120%
font-weight: bold;
textColor: red
title: Temperatur Steckdosen
- component: oh-label-item
config:
badge: =@'Ankleidezimmer_Drucker_Temperatur'
badgeColor: =['black', 'teal','blue', 'yellow',
'green','orange','red'][Math.max(Math.min(~~((#'Ankleidezimmer_Drucker_Temperatur'
-10)/3),6),0)]
icon: temperature
iconUseState: true
style:
background-color: white
font-size: 100%
font-weight: bold;
textColor: black
title: Ankleidezimmer
- component: oh-label-item
config:
badge: =@'Treppe_oben_Beleuchtung_Temperatur'
badgeColor: =['black', 'teal','blue', 'yellow',
'green','orange','red'][Math.max(Math.min(~~((#'Treppe_oben_Beleuchtung_Temperatur'
-10)/3),6),0)]
icon: Temperature
iconUseState: true
style:
background-color: white
font-size: 100%
font-weight: bold;
textColor: black
title: Flur 1 tes OG
- component: oh-label-item
config:
badge: =@'Wohnzimmerschrank_Temperatur'
badgeColor: =['black', 'teal','blue', 'yellow',
'green','orange','red'][Math.max(Math.min(~~((#'Wohnzimmerschrank_Temperatur'
-10)/3),6),0)]
icon: temperature
iconUseState: true
style:
background-color: white
font-size: 100%
font-weight: bold;
textColor: black
title: Wohnzimmer
- component: oh-list-item
config:
listButton: true
style:
background-color: wheat
font-size: 100%
font-weight: bold;
textColor: black
title: Hue Sensor - API V2 - Sensor
- component: oh-label-item
config:
badge: =@'Hue_Sensor_1_API_V2__Test_Buero_Temperature'
badgeColor: =['black', 'teal','blue', 'yellow',
'green','orange','red'][Math.max(Math.min(~~((#'Hue_Sensor_1_API_V2__Test_Buero_Temperature'
-10)/3),6),0)]
icon: temperature
iconUseState: true
style:
background-color: PapayaWhip
font-size: 100%
font-weight: bold;
textColor: red
title: Hue Test Sensor 1 ( Kellertreppe unten )
- component: oh-label-item
config:
badge: =@'Hue_Sensor_2_API_V2__Test_Buero_Temperature'
badgeColor: =['black', 'teal','blue', 'yellow',
'green','orange','red'][Math.max(Math.min(~~((#'Hue_Sensor_2_API_V2__Test_Buero_Temperature'
-10)/3),6),0)]
icon: temperature
iconUseState: true
style:
background-color: PapayaWhip
font-size: 100%
font-weight: bold;
textColor: red
title: Hue Test Sensor 2 ( Kellertreppe oben )
- component: oh-label-item
config:
badge: =@'Hue_Sensor_3_API_V2__Test_Buero_Temperature'
badgeColor: =['black', 'teal','blue', 'yellow',
'green','orange','red'][Math.max(Math.min(~~((#'Hue_Sensor_3_API_V2__Test_Buero_Temperature'
-10)/3),6),0)]
icon: temperature
iconUseState: true
style:
background-color: PapayaWhip
font-size: 100%
font-weight: bold;
textColor: red
title: Hue Test Sensor 3 ( Treppe 1 OG unten )
- component: oh-label-item
config:
badge: =@'Hue_Sensor_4_API_V2__Test_Buero_Temperature'
badgeColor: =['black', 'teal','blue', 'yellow',
'green','orange','red'][Math.max(Math.min(~~((#'Hue_Sensor_4_API_V2__Test_Buero_Temperature'
-10)/3),6),0)]
icon: temperature
iconUseState: true
style:
background-color: PapayaWhip
font-size: 100%
font-weight: bold;
textColor: red
title: Hue Test Sensor 4 ( Treppe 1 OG oben )
- component: oh-grid-col
config: {}
slots:
default:
- component: oh-list-card
config: {}
slots:
default:
- component: oh-list-item
config:
listButton: true
style:
background-color: wheat
font-size: 120%
font-weight: bold;
textColor: red
title: Temperatur Steckdosen
- component: oh-label-item
config:
badge: =@'Esszimmertisch_Temperatur'
badgeColor: =['black', 'teal','blue', 'yellow',
'green','orange','red'][Math.max(Math.min(~~((#'Esszimmertisch_Temperatur'
-10)/3),6),0)]
icon: temperature
iconUseState: true
style:
background-color: white
font-size: 100%
font-weight: bold;
textColor: black
title: Esszimmertisch
- component: oh-label-item
config:
badge: =@'Terrassentuer_Temperatur'
badgeColor: =['black', 'teal','blue', 'yellow',
'green','orange','red'][Math.max(Math.min(~~((#'Terrassentuer_Temperatur'
-10)/3),6),0)]
icon: temperature
iconUseState: true
style:
background-color: white
font-size: 100%
font-weight: bold;
textColor: black
title: Terrassentuer
- component: oh-label-item
config:
badge: =@'Kueche_oben_Rechts_Temperatur'
badgeColor: =['black', 'teal','blue', 'yellow',
'green','orange','red'][Math.max(Math.min(~~((#'Kueche_oben_Rechts_Temperatur'
-10)/3),6),0)]
icon: temperature
iconUseState: true
style:
background-color: white
font-size: 100%
font-weight: bold;
textColor: black
title: Kueche
- component: oh-list-item
config:
listButton: true
style:
background-color: wheat
font-size: 100%
font-weight: bold;
textColor: black
title: Aktuelle Temperatur Heizkoerper
- component: oh-label-item
config:
badge: =@'Heizkorperregler_Wintergarten_Aktuelle_Temperatur'
badgeColor: =['black', 'teal','blue', 'yellow',
'green','orange','red'][Math.max(Math.min(~~((#'Heizkorperregler_Wintergarten_Aktuelle_Temperatur'
-10)/3),6),0)]
icon: temperature
iconUseState: true
style:
background-color: LemonChiffon
font-size: 100%
font-weight: bold;
textColor: black
title: Wintergarten
- component: oh-label-item
config:
badge: =@'Heizkorperregler_Bad_oben_Aktuelle_Temperatur'
badgeColor: =['black', 'teal','blue', 'yellow',
'green','orange','red'][Math.max(Math.min(~~((#'Heizkorperregler_Bad_oben_Aktuelle_Temperatur'
-10)/3),6),0)]
icon: temperature
iconUseState: true
style:
background-color: gold
font-size: 100%
font-weight: bold;
textColor: red
title: Bad 1 tes OG
- component: oh-label-item
config:
badge: =@'Heizkorperregler_Bad_unten_Aktuelle_Temperatur'
badgeColor: =['black', 'teal','blue', 'yellow',
'green','orange','red'][Math.max(Math.min(~~((#'Heizkorperregler_Bad_unten_Aktuelle_Temperatur'
-10)/3),6),0)]
icon: temperature
iconUseState: true
style:
background-color: gold
font-size: 100%
font-weight: bold;
textColor: red
title: Bad EG
- component: oh-label-item
config:
badge: =@'Heizkorperregler_Schlafzimmer_Aktuelle_Temperatur'
badgeColor: =['black', 'teal','blue', 'yellow',
'green','orange','red'][Math.max(Math.min(~~((#'Heizkorperregler_Schlafzimmer_Aktuelle_Temperatur'
-10)/3),6),0)]
icon: temperature
iconUseState: true
style:
background-color: white
font-size: 100%
font-weight: bold;
textColor: black
title: Schlafzimmer 1 tes OG
- component: oh-grid-col
config: {}
slots:
default:
- component: oh-list-card
config: {}
slots:
default:
- component: oh-list-item
config:
listButton: true
style:
background-color: wheat
font-size: 120%
font-weight: bold;
textColor: red
title: Temperatur Steckdosen
- component: oh-label-item
config:
badge: =@'Wintergarten_Temperatur'
badgeColor: =['black', 'teal','blue', 'yellow',
'green','orange','red'][Math.max(Math.min(~~((#'Wintergarten_Temperatur'
-10)/3),6),0)]
icon: temperature
iconUseState: true
style:
background-color: white
font-size: 100%
font-weight: bold;
textColor: black
title: Wintergarten
- component: oh-label-item
config:
badge: =@'Universal_Temperatur'
badgeColor: =['black', 'teal','blue', 'yellow',
'green','orange','red'][Math.max(Math.min(~~((#'Universal_Temperatur'
-10)/3),6),0)]
icon: temperature
iconUseState: true
style:
background-color: white
font-size: 100%
font-weight: bold;
textColor: black
title: Universal
- component: oh-label-item
config:
badge: =@'Gartenhaus_Temperatur'
badgeColor: =['black', 'teal','blue', 'yellow',
'green','orange','red'][Math.max(Math.min(~~((#'Gartenhaus_Temperatur'
-10)/3),6),0)]
icon: temperature
iconUseState: true
style:
background-color: LightSlateGray
font-size: 100%
font-weight: bold;
textColor: white
title: Gartenhaus Stromstein Vorgarten
- component: oh-label-item
config:
badge: =@'Hecke_Temperatur'
badgeColor: =['black', 'teal','blue', 'yellow',
'green','orange','red'][Math.max(Math.min(~~((#'Hecke_Temperatur'
-10)/3),6),0)]
icon: temperature
iconUseState: true
style:
background-color: LightSlateGray
font-size: 100%
font-weight: bold;
textColor: white
title: Gartenhaus Stromstein Steingarten
- component: oh-block
config: {}
slots:
default:
- component: oh-grid-row
config: {}
slots:
default:
- component: oh-grid-col
config: {}
slots:
default:
- component: oh-list-card
config: {}
slots:
default:
- component: oh-list-item
config:
listButton: true
style:
background-color: wheat
font-size: 100%
font-weight: bold;
textColor: black
title: Heizkörperregler Aktuelle Temperatur
- component: oh-label-item
config:
badge: =@'Heizkorperregler_Wintergarten_Aktuelle_Temperatur'
badgeColor: =['black', 'teal','blue', 'yellow',
'green','orange','red'][Math.max(Math.min(~~((#'Heizkorperregler_Wintergarten_Aktuelle_Temperatur'
-10)/3),6),0)]
icon: temperature
iconUseState: true
style:
background-color: white
font-size: 100%
font-weight: bold;
textColor: black
title: Wintergarten
- component: oh-grid-col
config: {}
slots:
default:
- component: oh-list-card
config: {}
slots:
default:
- component: oh-list-item
config:
listButton: true
style:
background-color: wheat
font-size: 100%
font-weight: bold;
textColor: black
title: Heizkörperregler Aktuelle Temperatur
- component: oh-label-item
config:
badge: =@'Heizkorperregler_Bad_oben_Aktuelle_Temperatur'
badgeColor: =['black', 'teal','blue', 'yellow',
'green','orange','red'][Math.max(Math.min(~~((#'Heizkorperregler_Bad_oben_Aktuelle_Temperatur'
-10)/3),6),0)]
icon: temperature
iconUseState: true
style:
background-color: white
font-size: 100%
font-weight: bold;
textColor: black
title: Bad 1 tes OG
- component: oh-label-item
config:
badge: =@'Heizkorperregler_Schlafzimmer_Aktuelle_Temperatur'
badgeColor: =['black', 'teal','blue', 'yellow',
'green','orange','red'][Math.max(Math.min(~~((#'Heizkorperregler_Schlafzimmer_Aktuelle_Temperatur'
-10)/3),6),0)]
icon: temperature
iconUseState: true
style:
background-color: white
font-size: 100%
font-weight: bold;
textColor: black
title: Schlafzimmer 1 tes OG
- component: oh-grid-col
config: {}
slots:
default:
- component: oh-list-card
config: {}
slots:
default:
- component: oh-list-item
config:
listButton: true
style:
background-color: wheat
font-size: 100%
font-weight: bold;
textColor: black
title: Heizkörperregler Aktuelle Temperatur
- component: oh-label-item
config:
badge: =@'Heizkorperregler_Bad_unten_Aktuelle_Temperatur'
badgeColor: =['black', 'teal','blue', 'yellow',
'green','orange','red'][Math.max(Math.min(~~((#'Heizkorperregler_Bad_unten_Aktuelle_Temperatur'
-10)/3),6),0)]
icon: temperature
iconUseState: true
style:
background-color: white
font-size: 100%
font-weight: bold;
textColor: black
title: Bad EG
- component: oh-block
config: {}
slots:
default:
- component: oh-grid-row
config: {}
slots:
default:
- component: oh-grid-col
config: {}
slots:
default:
- component: oh-list-card
config: {}
slots:
default:
- component: oh-list-item
config:
listButton: true
style:
background-color: wheat
font-size: 100%
font-weight: bold;
textColor: black
title: Temperatur Rauchmelder
- component: oh-label-item
config:
badge: =@'Fibaro_Node_004_FGSD002_Smoke_Detector_Dachboden_Temperature_Sensor'
badgeColor: =['black', 'teal','blue', 'yellow',
'green','orange','red'][Math.max(Math.min(~~((#'Fibaro_Node_004_FGSD002_Smoke_Detector_Dachboden_Temperature_Sensor'
-10)/3),6),0)]
icon: temperature
iconUseState: true
style:
background-color: white
font-size: 100%
font-weight: bold;
textColor: black
title: Dachboden
- component: oh-label-item
config:
badge: =@'Fibaro_Node_005_FGSD002_Smoke_Detector_Bad_1_tes_OG_Temperature_Sensor'
badgeColor: =['black', 'teal','blue', 'yellow',
'green','orange','red'][Math.max(Math.min(~~((#'Fibaro_Node_005_FGSD002_Smoke_Detector_Bad_1_tes_OG_Temperature_Sensor'
-10)/3),6),0)]
icon: temperature
iconUseState: true
style:
background-color: white
font-size: 100%
font-weight: bold;
textColor: black
title: Bad 1 tes OG
- component: oh-label-item
config:
badge: =@'Fibaro_Node_006_FGSD002_Smoke_Detector_Flur_1_tes_OG_Temperature_Sensor'
badgeColor: =['black', 'teal','blue', 'yellow',
'green','orange','red'][Math.max(Math.min(~~((#'Fibaro_Node_006_FGSD002_Smoke_Detector_Flur_1_tes_OG_Temperature_Sensor'
-10)/3),6),0)]
icon: Temperature
iconUseState: true
style:
background-color: white
font-size: 100%
font-weight: bold;
textColor: black
title: Flur 1 tes OG
- component: oh-label-item
config:
badge: =@'Fibaro_Node_005_FGSD002_Smoke_Detector_Bad_1_tes_OG_Temperature_Sensor'
badgeColor: =['black', 'teal','blue', 'yellow',
'green','orange','red'][Math.max(Math.min(~~((#'Fibaro_Node_005_FGSD002_Smoke_Detector_Bad_1_tes_OG_Temperature_Sensor'
-10)/3),6),0)]
icon: temperature
iconUseState: true
style:
background-color: white
font-size: 100%
font-weight: bold;
textColor: black
title: Schlafzimmer
- component: oh-label-item
config:
badge: =@'Fibaro_Node_006_FGSD002_Smoke_Detector_Flur_1_tes_OG_Temperature_Sensor'
badgeColor: =['black', 'teal','blue', 'yellow',
'green','orange','red'][Math.max(Math.min(~~((#'Fibaro_Node_006_FGSD002_Smoke_Detector_Flur_1_tes_OG_Temperature_Sensor'
-10)/3),6),0)]
icon: Temperature
iconUseState: true
style:
background-color: white
font-size: 100%
font-weight: bold;
textColor: black
title: Ankleidezimmer
- component: oh-grid-col
config: {}
slots:
default:
- component: oh-list-card
config: {}
slots:
default:
- component: oh-list-item
config:
listButton: true
style:
background-color: wheat
font-size: 100%
font-weight: bold;
textColor: black
title: Temperatur Rauchmelder
- component: oh-label-item
config:
badge: =@'Fibaro_Node_007_FGSD002_Smoke_Detector_Flur_EG_Temperature_Sensor'
badgeColor: =['black', 'teal','blue', 'yellow',
'green','orange','red'][Math.max(Math.min(~~((#'Fibaro_Node_007_FGSD002_Smoke_Detector_Flur_EG_Temperature_Sensor'
-10)/3),6),0)]
icon: temperature
iconUseState: true
style:
background-color: white
font-size: 100%
font-weight: bold;
textColor: black
title: Flur EG
- component: oh-label-item
config:
badge: =@'Fibaro_Node_008_FGSD002_Smoke_Detector_Kueche_Temperature_Sensor'
badgeColor: =['black', 'teal','blue', 'yellow',
'green','orange','red'][Math.max(Math.min(~~((#'Fibaro_Node_008_FGSD002_Smoke_Detector_Kueche_Temperature_Sensor'
-10)/3),6),0)]
icon: temperature
iconUseState: true
style:
background-color: white
font-size: 100%
font-weight: bold;
textColor: black
title: Kueche
- component: oh-label-item
config:
badge: =@'Fibaro_Node_009_FGSD002_Smoke_Detector_Wohnzimmer_Temperature_Sensor'
badgeColor: =['black', 'teal','blue', 'yellow',
'green','orange','red'][Math.max(Math.min(~~((#'Fibaro_Node_009_FGSD002_Smoke_Detector_Wohnzimmer_Temperature_Sensor'
-10)/3),6),0)]
icon: temperature
iconUseState: true
style:
background-color: white
font-size: 100%
font-weight: bold;
textColor: black
title: Wohnzimmer
- component: oh-label-item
config:
badge: =@'Fibaro_Node_009_FGSD002_Smoke_Detector_Wohnzimmer_Temperature_Sensor'
badgeColor: =['black', 'teal','blue', 'yellow',
'green','orange','red'][Math.max(Math.min(~~((#'Fibaro_Node_009_FGSD002_Smoke_Detector_Wohnzimmer_Temperature_Sensor'
-10)/3),6),0)]
icon: temperature
iconUseState: true
style:
background-color: white
font-size: 100%
font-weight: bold;
textColor: black
title: Test ( Kinderzimmer )
- component: oh-grid-col
config: {}
slots:
default:
- component: oh-list-card
config: {}
slots:
default:
- component: oh-list-item
config:
listButton: true
style:
background-color: wheat
font-size: 100%
font-weight: bold;
textColor: black
title: Temperatur Rauchmelder
- component: oh-label-item
config:
badge: =@'Fibaro_Node_010_FGSD002_Smoke_Detector_Flur_Keller_Temperature_Sensor'
badgeColor: =['black', 'teal','blue', 'yellow',
'green','orange','red'][Math.max(Math.min(~~((#'Fibaro_Node_010_FGSD002_Smoke_Detector_Flur_Keller_Temperature_Sensor'
-10)/3),6),0)]
icon: temperature
iconUseState: true
style:
background-color: white
font-size: 100%
font-weight: bold;
textColor: black
title: Flur Keller
- component: oh-label-item
config:
badge: =@'Fibaro_Node_011_FGSD002_Smoke_Detector_Gaestezimmer_Temperature_Sensor'
badgeColor: =['black', 'teal','blue', 'yellow',
'green','orange','red'][Math.max(Math.min(~~((#'Fibaro_Node_011_FGSD002_Smoke_Detector_Gaestezimmer_Temperature_Sensor'
-10)/3),6),0)]
icon: temperature
iconUseState: true
style:
background-color: white
font-size: 100%
font-weight: bold;
textColor: black
title: Gaestezimmer
- component: oh-label-item
config:
badge: =@'Fibaro_Node_012_FGSD002_Smoke_Detector_Buero_Temperature_Sensor'
badgeColor: =['black', 'teal','blue', 'yellow',
'green','orange','red'][Math.max(Math.min(~~((#'Fibaro_Node_012_FGSD002_Smoke_Detector_Buero_Temperature_Sensor'
-10)/3),6),0)]
icon: temperature
iconUseState: true
style:
background-color: white
font-size: 100%
font-weight: bold;
textColor: black
title: Buero
- component: oh-label-item
config:
badge: =@'Fibaro_Node_013_FGCD001_Carbon_Monoxide_Sensor_Heitzungskeller_Temperature_Sensor'
badgeColor: =['black', 'teal','blue', 'yellow',
'green','orange','red'][Math.max(Math.min(~~((#'Fibaro_Node_013_FGCD001_Carbon_Monoxide_Sensor_Heitzungskeller_Temperature_Sensor'
-10)/3),6),0)]
icon: Temperature
iconUseState: true
style:
background-color: white
font-size: 100%
font-weight: bold;
textColor: black
title: Heitzungskeller CO2
- component: oh-label-item
config:
badge: =@'Fibaro_Node_003_FGSD002_Smoke_Detector_Vorratsraum_Test_Temperature_Sensor'
badgeColor: =['black', 'teal','blue', 'yellow',
'green','orange','red'][Math.max(Math.min(~~((#'Fibaro_Node_003_FGSD002_Smoke_Detector_Vorratsraum_Test_Temperature_Sensor'
-10)/3),6),0)]
icon: Temperature
iconUseState: true
style:
background-color: white
font-size: 100%
font-weight: bold;
textColor: black
title: Vorratsraum
masonry: []
grid: []
canvas: []