Rooms are a semantic organization unit for Controllers used in Houses
const device = new Device({ name:"testDevice", actions:[ new HttpAction({ name:"on", method:"GET", base:"http://device.ip/", path:"turnOn" }) ] }) const controller = new Controller({ name:"Test Controller", layout:[ <Button action={device.getAction("on")} icon="power-on"/> //OR //new Button({ // action:device.getAction("on"), // icon:"power-on" //}) ] }) new Room({name:"Test Room",controllers:[controller]})
Rooms are a semantic organization unit for Controllers used in Houses
example
const device = new Device({ name:"testDevice", actions:[ new HttpAction({ name:"on", method:"GET", base:"http://device.ip/", path:"turnOn" }) ] }) const controller = new Controller({ name:"Test Controller", layout:[ <Button action={device.getAction("on")} icon="power-on"/> //OR //new Button({ // action:device.getAction("on"), // icon:"power-on" //}) ] }) new Room({name:"Test Room",controllers:[controller]})