Now with sliders!
Seriously, someone really should clean this mess of code up soon
This commit is contained in:
parent
d121928df6
commit
efc5af37ce
3 changed files with 45 additions and 2 deletions
|
|
@ -32,6 +32,13 @@ const config : Config = {
|
|||
values: { off: "blackout", yellow: "yellow", purple: "purple",
|
||||
blue: "blue", green: "green", red: "red", random: "random",
|
||||
cycle: "cycle-random" }
|
||||
},
|
||||
onkyo_volume: {
|
||||
state: "/service/onkyo/status/volume",
|
||||
command: "/service/onkyo/set/volume",
|
||||
value: 0,
|
||||
values: {},
|
||||
parseState: msg => JSON.parse(msg.toString()).val
|
||||
}
|
||||
},
|
||||
controls: {
|
||||
|
|
@ -109,6 +116,20 @@ const config : Config = {
|
|||
enableCondition: val => val != "off"
|
||||
}
|
||||
]
|
||||
},
|
||||
onkyo: {
|
||||
name: "Onkyo",
|
||||
position: [350, 350],
|
||||
icon: "",
|
||||
ui: [
|
||||
{
|
||||
type: "slider",
|
||||
text: "Volume",
|
||||
topic: "onkyo_volume",
|
||||
min: 0,
|
||||
max: 100
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue