RZL: Add all kitchen light slider
This commit is contained in:
parent
f2cc0eaa2a
commit
e3150d200c
2 changed files with 31 additions and 1 deletions
|
|
@ -163,6 +163,18 @@ const config : Config = {
|
|||
defaultValue: "",
|
||||
values: {},
|
||||
type: msg => JSON.parse(msg.toString()).progress || 0
|
||||
},
|
||||
kitchen_light_color: {
|
||||
state: "/service/openhab/out/kitchen_light_all_color_temperature/state",
|
||||
command: "/service/openhab/in/kitchen_light_all_color_temperature/command",
|
||||
defaultValue: "0",
|
||||
values: {}
|
||||
},
|
||||
kitchen_light_brightness: {
|
||||
state: "/service/openhab/out/kitchen_light_all_brightness/state",
|
||||
command: "/service/openhab/in/kitchen_light_all_brightness/command",
|
||||
defaultValue: "0",
|
||||
values: {}
|
||||
}
|
||||
},
|
||||
floalt.topics("65537"),
|
||||
|
|
@ -510,6 +522,24 @@ const config : Config = {
|
|||
position: [325, 407],
|
||||
icon: "ceiling-light",
|
||||
ui: [
|
||||
{
|
||||
type: "slider",
|
||||
min: 0,
|
||||
max: 100,
|
||||
text: "Helligkeit",
|
||||
icon: "brightness-7",
|
||||
topic: "kitchen_light_brightness",
|
||||
delayedApply: true
|
||||
},
|
||||
{
|
||||
type: "slider",
|
||||
min: 0,
|
||||
max: 100,
|
||||
text: "Farbtemperatur",
|
||||
icon: "weather-sunset-down",
|
||||
topic: "kitchen_light_color",
|
||||
delayedApply: true
|
||||
},
|
||||
{
|
||||
type: "section",
|
||||
text: "Lampe Eingang"
|
||||
|
|
|
|||
|
|
@ -123,7 +123,7 @@ export default class UiItemList extends React.Component<UiItemListProps> {
|
|||
on(control.delayedApply)();
|
||||
}}
|
||||
onDragStop={on(false)}
|
||||
style={{width: 100, marginTop: 54}}
|
||||
style={{width: 100}}
|
||||
/></MuiThemeProvider>
|
||||
</ListItemSecondaryAction>
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue