rework Lüftung/Heizung Büro
This commit is contained in:
parent
fdb49f79a5
commit
4e316f9e47
1 changed files with 43 additions and 11 deletions
|
|
@ -170,6 +170,28 @@ 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"
|
||||||
|
},
|
||||||
|
heaterOfficeNachtabsenkung: {
|
||||||
|
state: {
|
||||||
|
name: "home-rust/temperature-control/office_heating/heat_request/4",
|
||||||
|
type: types.option({ true: "off", false: "on" })
|
||||||
|
},
|
||||||
|
command: {
|
||||||
|
name: "home-rust/temperature-control/office_heating/heat_request/4",
|
||||||
|
type: types.option({ off: "true", on: "false" })
|
||||||
|
},
|
||||||
|
defaultValue: "on"
|
||||||
|
},
|
||||||
tucanaPower: {
|
tucanaPower: {
|
||||||
state: {
|
state: {
|
||||||
name: "home-rust/switch/office/8",
|
name: "home-rust/switch/office/8",
|
||||||
|
|
@ -309,26 +331,30 @@ const config: Config = {
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
officeFan: {
|
officeFan: {
|
||||||
name: "Lüftung Büro",
|
name: "Lüftung/Heizung Büro",
|
||||||
position: [140, 658],
|
position: [140, 658],
|
||||||
icon: svg(icons.mdiFan),
|
icon: withState(({heaterOfficeAuto}) =>
|
||||||
iconColor: ({fanOfficeState}) =>
|
(heaterOfficeAuto === "on" ?
|
||||||
(fanOfficeState === "on" ? hex("#00FF00") : hex("#000000")),
|
|
||||||
|
svg(icons.mdiRadiator).color(({heaterOfficeTsoll}) => (heaterOfficeTsoll === "254" ? hex("#FF0000") : hex("#000000")))
|
||||||
|
: svg(icons.mdiFan).color(({fanOfficeState}) => (fanOfficeState === "on" ? hex("#00FF00") : hex("#000000")))
|
||||||
|
|
||||||
|
)),
|
||||||
ui: [
|
ui: [
|
||||||
|
{
|
||||||
|
type: "section",
|
||||||
|
text: "Lüftung"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
type: "toggle",
|
type: "toggle",
|
||||||
topic: "fanOfficeState",
|
topic: "fanOfficeState",
|
||||||
text: "Ein/Ausschalten",
|
text: "Ein/Ausschalten",
|
||||||
icon: svg(icons.mdiPower)
|
icon: svg(icons.mdiPower)
|
||||||
},
|
},
|
||||||
{
|
|
||||||
type: "section",
|
|
||||||
text: "Lüftungs-Automatik"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
type: "toggle",
|
type: "toggle",
|
||||||
topic: "fanOfficeAuto",
|
topic: "fanOfficeAuto",
|
||||||
text: "On/Off",
|
text: "Automatik",
|
||||||
icon: svg(icons.mdiAirConditioner)
|
icon: svg(icons.mdiAirConditioner)
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -347,14 +373,20 @@ const config: Config = {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "section",
|
type: "section",
|
||||||
text: "Heizungs-Automatik"
|
text: "Heizung"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "toggle",
|
type: "toggle",
|
||||||
topic: "heaterOfficeAuto",
|
topic: "heaterOfficeAuto",
|
||||||
text: "On/Off",
|
text: "Automatik",
|
||||||
icon: svg(icons.mdiRadiator)
|
icon: svg(icons.mdiRadiator)
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
type: "toggle",
|
||||||
|
topic: "heaterOfficeNachtabsenkung",
|
||||||
|
text: "Nachtabsekung",
|
||||||
|
icon: svg(icons.mdiWeatherNight)
|
||||||
|
},
|
||||||
{
|
{
|
||||||
type: "slider",
|
type: "slider",
|
||||||
min: 15,
|
min: 15,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue