bulb_office is now rgb, too
This commit is contained in:
parent
5b62bc9325
commit
4d39149e77
2 changed files with 46 additions and 11 deletions
Binary file not shown.
|
|
@ -262,6 +262,17 @@ const config: Config = {
|
||||||
...topicBulbNumber("ledstrip_livingroom", "brightness"),
|
...topicBulbNumber("ledstrip_livingroom", "brightness"),
|
||||||
...topicBulbState("ledstrip_livingroom"),
|
...topicBulbState("ledstrip_livingroom"),
|
||||||
|
|
||||||
|
...topicBulbHomeRust("office", "r"),
|
||||||
|
...topicBulbHomeRust("office", "g"),
|
||||||
|
...topicBulbHomeRust("office", "b"),
|
||||||
|
...topicBulbHomeRust("office", "h"),
|
||||||
|
...topicBulbHomeRust("office", "s"),
|
||||||
|
...topicBulbHomeRust("office", "v"),
|
||||||
|
...topicBulbHomeRust("office", "x"),
|
||||||
|
...topicBulbHomeRust("office", "y"),
|
||||||
|
...topicBulbNumber("office", "brightness"),
|
||||||
|
...topicBulbState("office"),
|
||||||
|
|
||||||
|
|
||||||
...topicBulbNumber("bedroom", "brightness"),
|
...topicBulbNumber("bedroom", "brightness"),
|
||||||
...topicBulbNumber("bedroom", "color_temp"),
|
...topicBulbNumber("bedroom", "color_temp"),
|
||||||
|
|
@ -274,9 +285,6 @@ const config: Config = {
|
||||||
...topicBulbNumber("3d_printer", "brightness"),
|
...topicBulbNumber("3d_printer", "brightness"),
|
||||||
...topicBulbState("3d_printer"),
|
...topicBulbState("3d_printer"),
|
||||||
|
|
||||||
...topicBulbNumber("office", "brightness"),
|
|
||||||
...topicBulbState("office"),
|
|
||||||
|
|
||||||
...topicBulbNumber("hallway", "brightness"),
|
...topicBulbNumber("hallway", "brightness"),
|
||||||
...topicBulbState("hallway"),
|
...topicBulbState("hallway"),
|
||||||
|
|
||||||
|
|
@ -715,7 +723,7 @@ const config: Config = {
|
||||||
position: [210, 570],
|
position: [210, 570],
|
||||||
icon: svg(icons.mdiCeilingLight).color(({officeState}) =>
|
icon: svg(icons.mdiCeilingLight).color(({officeState}) =>
|
||||||
(officeState === "on" ? hex("#00FF00") : hex("#000000"))),
|
(officeState === "on" ? hex("#00FF00") : hex("#000000"))),
|
||||||
ui: [
|
ui: ([
|
||||||
{
|
{
|
||||||
type: "toggle",
|
type: "toggle",
|
||||||
topic: "officeState",
|
topic: "officeState",
|
||||||
|
|
@ -729,8 +737,29 @@ const config: Config = {
|
||||||
text: "Helligkeit",
|
text: "Helligkeit",
|
||||||
icon: svg(icons.mdiBrightness7),
|
icon: svg(icons.mdiBrightness7),
|
||||||
topic: "officebrightness"
|
topic: "officebrightness"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: "section",
|
||||||
|
text: "RGB"
|
||||||
}
|
}
|
||||||
]
|
]).concat(sliderRGB("office", "r"))
|
||||||
|
.concat(sliderRGB("office", "g"))
|
||||||
|
.concat(sliderRGB("office", "b"))
|
||||||
|
.concat([
|
||||||
|
{
|
||||||
|
type: "section",
|
||||||
|
text: "HSV"
|
||||||
|
}
|
||||||
|
]).concat(sliderH("office", "h"))
|
||||||
|
.concat(sliderSVXY("office", "s"))
|
||||||
|
.concat(sliderSVXY("office", "v"))
|
||||||
|
.concat([
|
||||||
|
{
|
||||||
|
type: "section",
|
||||||
|
text: "XY"
|
||||||
|
}
|
||||||
|
]).concat(sliderSVXY("office", "x"))
|
||||||
|
.concat(sliderSVXY("office", "y"))
|
||||||
},
|
},
|
||||||
hallwayLight: {
|
hallwayLight: {
|
||||||
name: "Flur",
|
name: "Flur",
|
||||||
|
|
@ -1221,10 +1250,10 @@ const config: Config = {
|
||||||
livingroomLedStrip: {
|
livingroomLedStrip: {
|
||||||
name: "Ledstreifen Wohnzimmer",
|
name: "Ledstreifen Wohnzimmer",
|
||||||
position: [450, 73],
|
position: [450, 73],
|
||||||
icon: svg(icons.mdiWhiteBalanceIridescent),
|
|
||||||
/* eslint-disable camelcase */
|
/* eslint-disable camelcase */
|
||||||
iconColor: ({ledstrip_livingroomState}) =>
|
icon: svg(icons.mdiWhiteBalanceIridescent).color(
|
||||||
(ledstrip_livingroomState === "on" ? hex("#00FF00") : hex("#000000")),
|
({ledstrip_livingroomState}) =>
|
||||||
|
(ledstrip_livingroomState === "on" ? hex("#00FF00") : hex("#000000"))),
|
||||||
/* eslint-enable camelcase */
|
/* eslint-enable camelcase */
|
||||||
ui: ([
|
ui: ([
|
||||||
{
|
{
|
||||||
|
|
@ -1282,10 +1311,10 @@ const config: Config = {
|
||||||
livingroomLedStripWled: {
|
livingroomLedStripWled: {
|
||||||
name: "Ledstreifen Wohnzimmer",
|
name: "Ledstreifen Wohnzimmer",
|
||||||
position: [550, 200],
|
position: [550, 200],
|
||||||
icon: svg(icons.mdiWhiteBalanceIridescent),
|
|
||||||
/* eslint-disable camelcase */
|
/* eslint-disable camelcase */
|
||||||
iconColor: ({ledstrip_livingroomState}) =>
|
icon: svg(icons.mdiWhiteBalanceIridescent).color(
|
||||||
(ledstrip_livingroomState === "on" ? hex("#00FF00") : hex("#000000")),
|
({wled_livingroom_brightness}) =>
|
||||||
|
(wled_livingroom_brightness !== "0" ? hex("#00FF00") : hex("#000000"))),
|
||||||
/* eslint-enable camelcase */
|
/* eslint-enable camelcase */
|
||||||
ui: ([
|
ui: ([
|
||||||
{
|
{
|
||||||
|
|
@ -1304,6 +1333,12 @@ const config: Config = {
|
||||||
text: "Helligkeit",
|
text: "Helligkeit",
|
||||||
icon: svg(icons.mdiBrightness7),
|
icon: svg(icons.mdiBrightness7),
|
||||||
topic: "wled_livingroom_brightness"
|
topic: "wled_livingroom_brightness"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: "link",
|
||||||
|
link: "http://192.168.0.61/",
|
||||||
|
text: "Open Webinterface",
|
||||||
|
icon: svg(icons.mdiOpenInNew)
|
||||||
}
|
}
|
||||||
])
|
])
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue