uwap-home, heater diningroom: show boost/window open state
This commit is contained in:
parent
01ed36e5be
commit
a6aef2ee9a
1 changed files with 40 additions and 0 deletions
|
|
@ -248,6 +248,34 @@ const config: Config = {
|
||||||
},
|
},
|
||||||
defaultValue: "126.5"
|
defaultValue: "126.5"
|
||||||
},
|
},
|
||||||
|
heaterdiningroomWindowEnd: {
|
||||||
|
state: {
|
||||||
|
name: "tele/home-rust/fritzbox/device/diningroom",
|
||||||
|
type: (msg) => {
|
||||||
|
const json = JSON.parse(msg.toString());
|
||||||
|
if (!json || !json["windowopenactiveendtime"]) {
|
||||||
|
return "inactive";
|
||||||
|
} else {
|
||||||
|
return new Date(json["windowopenactiveendtime"] * 1000).toLocaleTimeString();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
defaultValue: "unavailable"
|
||||||
|
},
|
||||||
|
heaterdiningroomBoostEnd: {
|
||||||
|
state: {
|
||||||
|
name: "tele/home-rust/fritzbox/device/diningroom",
|
||||||
|
type: (msg) => {
|
||||||
|
const json = JSON.parse(msg.toString());
|
||||||
|
if (!json || !json["boostactiveendtime"]) {
|
||||||
|
return "inactive";
|
||||||
|
} else {
|
||||||
|
return new Date(json["windowopenactiveendtime"] * 1000).toLocaleTimeString();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
defaultValue: "unavailable"
|
||||||
|
},
|
||||||
heaterBedroomTsoll: {
|
heaterBedroomTsoll: {
|
||||||
state: {
|
state: {
|
||||||
name: "tele/home-rust/fritzbox/device/bedroom/tsoll",
|
name: "tele/home-rust/fritzbox/device/bedroom/tsoll",
|
||||||
|
|
@ -747,6 +775,18 @@ const config: Config = {
|
||||||
{ value: 18, label: "18°C" },
|
{ value: 18, label: "18°C" },
|
||||||
{ value: 28, label: "28°C" }
|
{ value: 28, label: "28°C" }
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: "text",
|
||||||
|
text: "Window open mode till",
|
||||||
|
icon: svg(icons.mdiSortClockAscending),
|
||||||
|
topic: "heaterdiningroomWindowEnd"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: "text",
|
||||||
|
text: "Boost mode till",
|
||||||
|
icon: svg(icons.mdiSortClockDescending),
|
||||||
|
topic: "heaterdiningroomBoostEnd"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue