uwap-home: Allow manual control of office heater
This commit is contained in:
parent
6e63404724
commit
6b78cc0a2f
1 changed files with 9 additions and 16 deletions
|
|
@ -313,20 +313,10 @@ const config: Config = {
|
||||||
},
|
},
|
||||||
defaultValue: "OFF"
|
defaultValue: "OFF"
|
||||||
},
|
},
|
||||||
heaterOfficeTsoll: {
|
|
||||||
state: {
|
|
||||||
name: "tele/home-rust/fritzbox/device/office/tsoll",
|
|
||||||
type: (msg) => (msg.toString().split(" ")[1])
|
|
||||||
},
|
|
||||||
command: {
|
|
||||||
name: "home-rust/fritzbox/device/office/tsoll/set",
|
|
||||||
type: types.string
|
|
||||||
},
|
|
||||||
defaultValue: "253"
|
|
||||||
},
|
|
||||||
|
|
||||||
...topicHeating("diningroom"),
|
...topicHeating("diningroom"),
|
||||||
...topicHeating("bedroom"),
|
...topicHeating("bedroom"),
|
||||||
|
...topicHeating("office"),
|
||||||
|
|
||||||
heaterBedroomSummermode: {
|
heaterBedroomSummermode: {
|
||||||
state: {
|
state: {
|
||||||
|
|
@ -479,8 +469,8 @@ const config: Config = {
|
||||||
|
|
||||||
heaterOfficeAuto === "on" ?
|
heaterOfficeAuto === "on" ?
|
||||||
|
|
||||||
svg(icons.mdiRadiator).color(({heaterOfficeTsoll}) =>
|
svg(icons.mdiRadiator).color(({heaterofficeTsoll}) =>
|
||||||
(heaterOfficeTsoll === "254" ? hex("#FF0000") : hex("#000000")))
|
(heaterofficeTsoll === "127" ? hex("#FF0000") : hex("#000000")))
|
||||||
|
|
||||||
: svg(icons.mdiFan).color(({fanOfficeState}) =>
|
: svg(icons.mdiFan).color(({fanOfficeState}) =>
|
||||||
(fanOfficeState === "on" ? hex("#00FF00") : hex("#000000")))
|
(fanOfficeState === "on" ? hex("#00FF00") : hex("#000000")))
|
||||||
|
|
@ -518,7 +508,7 @@ const config: Config = {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "section",
|
type: "section",
|
||||||
text: "Heizung"
|
text: "Heizung (Automatik)"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "toggle",
|
type: "toggle",
|
||||||
|
|
@ -545,8 +535,11 @@ const config: Config = {
|
||||||
{ value: 20, label: "20°C" },
|
{ value: 20, label: "20°C" },
|
||||||
{ value: 25, label: "25°C" }
|
{ value: 25, label: "25°C" }
|
||||||
]
|
]
|
||||||
}
|
},
|
||||||
]
|
{
|
||||||
|
type: "section",
|
||||||
|
text: "Heizung (Manuell)"
|
||||||
|
}].concat(radiatorUI("office"))
|
||||||
},
|
},
|
||||||
tucana: {
|
tucana: {
|
||||||
name: "tucana",
|
name: "tucana",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue