home-automation-home-assistant/tileboard/pages/humidity.js

133 righe
4.5 KiB
JavaScript

2019-10-19 23:42:09 +00:00
var PAGE_HUMIDITY = {
title: 'Luftfeuchtigkeit',
bg: 'images/background.png',
2019-10-19 23:42:09 +00:00
icon: 'mdi-water-percent',
groupMarginCss: '20px 16px',
groups: [
{
title: 'Badezimmer',
2019-10-19 23:42:09 +00:00
width: 2,
height: 2,
2019-10-19 23:42:09 +00:00
items: [
{
position: [0, 0],
type: TYPES.SENSOR,
title: 'Elternbad',
id: 'sensor.hygro_bathroom_parents_temperature',
2019-10-19 23:42:09 +00:00
unit: 'C',
state: false,
filter: function (value) { // optional
var num = parseFloat(value);
return num && !isNaN(num) ? num.toFixed(1) : value;
}
},
createGauge([1, 0], 'Elternbad', 'hygro_bathroom_parents_humidity'),
2019-10-19 23:42:09 +00:00
{
position: [0, 1],
type: TYPES.SENSOR,
title: 'Kinderbad',
id: 'sensor.hygro_bathroom_kids_temperature',
2019-10-19 23:42:09 +00:00
unit: 'C',
state: false,
filter: function (value) { // optional
var num = parseFloat(value);
return num && !isNaN(num) ? num.toFixed(1) : value;
}
},
createGauge([1, 1], 'Kinderbad', 'hygro_bathroom_kids_humidity'),
/*{
position: [0, 2],
type: TYPES.SENSOR,
title: 'Schlafzimmer',
id: 'sensor.temperature_11',
unit: 'C',
state: false,
filter: function (value) { // optional
var num = parseFloat(value);
return num && !isNaN(num) ? num.toFixed(1) : value;
}
},
createGauge([1, 2], 'Schlafzimmer', 'humidity_12'),*/
2019-10-19 23:42:09 +00:00
]
},
{
title: 'Aufenthaltsräume',
2019-10-19 23:42:09 +00:00
width: 2,
height: 2,
2019-10-19 23:42:09 +00:00
items: [
{
position: [0, 0],
type: TYPES.SENSOR,
title: 'Wohnzimmer',
2019-10-19 23:42:09 +00:00
id: 'sensor.temperature_3',
unit: 'C',
state: false,
filter: function (value) { // optional
var num = parseFloat(value);
return num && !isNaN(num) ? num.toFixed(1) : value;
}
},
createGauge([1, 0], 'Wohnzimmer', 'humidity_4'),
2019-10-19 23:42:09 +00:00
{
position: [0, 1],
type: TYPES.SENSOR,
title: 'Büro',
2019-10-19 23:42:09 +00:00
id: 'sensor.temperature_14',
unit: 'C',
state: false,
filter: function (value) { // optional
var num = parseFloat(value);
return num && !isNaN(num) ? num.toFixed(1) : value;
}
},
createGauge([1, 1], 'Büro', 'humidity_15'),
/*{
2019-10-19 23:42:09 +00:00
position: [0, 2],
type: TYPES.SENSOR,
title: 'Gästezimmer',
2019-10-19 23:42:09 +00:00
id: 'sensor.temperature_17',
unit: 'C',
state: false,
filter: function (value) { // optional
var num = parseFloat(value);
return num && !isNaN(num) ? num.toFixed(1) : value;
}
},
createGauge([1, 2], 'Gästezimmer', 'humidity_18'),*/
2019-10-19 23:42:09 +00:00
]
},
{
title: 'Sonstige',
2019-10-19 23:42:09 +00:00
width: 2,
height: 2,
2019-10-19 23:42:09 +00:00
items: [
{
position: [0, 0],
type: TYPES.SENSOR,
title: 'Hauswirtschaftsraum',
id: 'sensor.hygro_hwr_temperature',
2019-10-19 23:42:09 +00:00
unit: 'C',
state: false,
filter: function (value) { // optional
var num = parseFloat(value);
return num && !isNaN(num) ? num.toFixed(1) : value;
}
},
createGauge([1, 0], 'Hauswirtschaftsraum', 'hygro_hwr_humidity'),
2019-10-19 23:42:09 +00:00
{
position: [0, 1],
type: TYPES.SENSOR,
title: 'Dachboden',
2019-10-19 23:42:09 +00:00
id: 'sensor.attic_temperature_2',
unit: 'C',
state: false,
filter: function (value) { // optional
var num = parseFloat(value);
return num && !isNaN(num) ? num.toFixed(1) : value;
}
},
createGauge([1, 1], 'Dachboden', 'attic_humidity_2'),
2019-10-19 23:42:09 +00:00
]
}
]
}