Options
All
  • Public
  • Public/Protected
  • All
Menu

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]})

Hierarchy

  • Room

Constructors

Properties

Methods

Constructors

constructor

  • new Room(__namedParameters: object): Room

Parameters

  • __namedParameters: object

Returns Room

Properties

controllers

controllers: Controller[]

name

name: string

Methods

Static fromJSON

  • fromJSON(json: any): Room

Parameters

  • json: any

Returns Room

  • Inherited
  • Protected
  • Private
  • Static
  • Module
  • Object
  • Property
  • Function
  • Variable
  • Index
  • Type
  • Class
  • Interface
  • Enum
  • Constructor
  • Getter/Setter
Made with ❤️ by pirix-gh. Documentation generated by TypeDoc.