Houses are the highest level objects in the library. They hold an array of Rooms
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" //}) ] }) const room = new Room({name:"Test Room",controllers:[controller]}) new House({name:"Test House",rooms:[room]})
The display name of the House
Houses are the highest level objects in the library. They hold an array of Rooms
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" //}) ] }) const room = new Room({name:"Test Room",controllers:[controller]}) new House({name:"Test House",rooms:[room]})