uwap-home-stuff (#127)
* Move Icons to match new background * Use step 0.1 for temperatures Because I want to set the target to 21.5 (which is the max of the slider anyway) * Add officeLight
This commit is contained in:
parent
890960fe23
commit
195728631a
1 changed files with 48 additions and 0 deletions
|
|
@ -217,6 +217,31 @@ const config: Config = {
|
||||||
},
|
},
|
||||||
defaultValue: "OFF"
|
defaultValue: "OFF"
|
||||||
},
|
},
|
||||||
|
officeBrightness: {
|
||||||
|
state: {
|
||||||
|
name: "home-rust/bulb/office/brightness",
|
||||||
|
type: types.string
|
||||||
|
},
|
||||||
|
command: {
|
||||||
|
name: "zigbee2mqtt/bulb_office/set",
|
||||||
|
type: (value) => JSON.stringify({ brightness: value.toString() })
|
||||||
|
},
|
||||||
|
defaultValue: "0"
|
||||||
|
},
|
||||||
|
officeState: {
|
||||||
|
state: {
|
||||||
|
name: "home-rust/bulb/office/state",
|
||||||
|
type: types.option({
|
||||||
|
OFF: "off",
|
||||||
|
ON: "on"
|
||||||
|
})
|
||||||
|
},
|
||||||
|
command: {
|
||||||
|
name: "zigbee2mqtt/bulb_office/set",
|
||||||
|
type: (value) => JSON.stringify({ state: value.toString() })
|
||||||
|
},
|
||||||
|
defaultValue: "OFF"
|
||||||
|
},
|
||||||
...topicTasmota("speakerOffice", "sonoff-office-speaker")
|
...topicTasmota("speakerOffice", "sonoff-office-speaker")
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
@ -285,6 +310,7 @@ const config: Config = {
|
||||||
type: "slider",
|
type: "slider",
|
||||||
min: 10,
|
min: 10,
|
||||||
max: 21.5,
|
max: 21.5,
|
||||||
|
step: 0.1,
|
||||||
text: "Zieltemperatur",
|
text: "Zieltemperatur",
|
||||||
icon: mdi("oil-temperature"),
|
icon: mdi("oil-temperature"),
|
||||||
topic: "fanBedroomTarget"
|
topic: "fanBedroomTarget"
|
||||||
|
|
@ -337,12 +363,34 @@ const config: Config = {
|
||||||
type: "slider",
|
type: "slider",
|
||||||
min: 10,
|
min: 10,
|
||||||
max: 21.5,
|
max: 21.5,
|
||||||
|
step: 0.1,
|
||||||
text: "Zieltemperatur",
|
text: "Zieltemperatur",
|
||||||
icon: mdi("oil-temperature"),
|
icon: mdi("oil-temperature"),
|
||||||
topic: "fanOfficeTarget"
|
topic: "fanOfficeTarget"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
officeLight: {
|
||||||
|
name: "Büro",
|
||||||
|
position: [210, 570],
|
||||||
|
icon: mdi("ceiling-light"),
|
||||||
|
ui: [
|
||||||
|
{
|
||||||
|
type: "toggle",
|
||||||
|
topic: "officeState",
|
||||||
|
text: "Ein/Ausschalten",
|
||||||
|
icon: mdi("power")
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: "slider",
|
||||||
|
min: 0,
|
||||||
|
max: 255,
|
||||||
|
text: "Helligkeit",
|
||||||
|
icon: mdi("brightness-7"),
|
||||||
|
topic: "officeBrightness"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
hallwayLight: {
|
hallwayLight: {
|
||||||
name: "Flur",
|
name: "Flur",
|
||||||
position: [520, 370],
|
position: [520, 370],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue