Code Monkey home page Code Monkey logo

neeo-api's Introduction

Table of Contents

discoverBrains

Find all brains connected to the local network

Returns Array<NeeoBrain> All discovered brains on the local network

NeeoBrain

Class representing a NEEO Brain.

name

The brain name

Type: string

host

The brain host

Type: string

port

The brain port

Type: number

apiVersion

The brain API version

Type: string

getSystemInfo

Get system info.

Returns Promise

blink

Make the LED blink

Returns Promise

getRooms

Get all rooms

Returns Promise<Array<Room>>

getRecipes

Get all recipes

Returns Promise<Array<Recipe>>

getActiveRecipes

Get all active recipes

Returns Promise<Array<Recipe>>

setForwardActions

Set the forward actions endpoint config

Parameters

  • options Object The forward actions options
    • options.host string The forward actions server host
    • options.port string The forward actions server port
    • options.path string The forward actions server path (optional, default '/neeo')

Returns Promise

deleteForwardActions

Delete the forward actions endpoint config

Returns Promise

Room

Class representing a NEEO Recipe.

brain

The brain this room belongs to

Type: NeeoBrain

name

The room name

Type: string

key

The room key

Type: string

deviceCount

The number of devices assigned to this room

Type: number

devices

The devices assigned to this room

Type: Array<Device>

getDevice

Get a device that belongs to this room

Parameters

  • name string The name of the device to get

Returns Device The matched device

Device

Class representing a NEEO Device.

brain

The brain this device belongs to

Type: NeeoBrain

name

The name of the device

Type: string

roomName

The name of the room this device is assigned to

Type: string

type

The device type

Type: string

manufacturer

The device manufacturer name

Type: string

key

The device key

Type: string

macros

The macros for this device

Type: Array<Macro>

getMacro

Get a macro that belongs to this device

Parameters

  • name string The name of the macro to get

Returns Macro

Macro

Class representing a NEEO Device Macro.

brain

The brain this macro belongs to

Type: NeeoBrain

name

The macro name

Type: string

key

The macro key

Type: string

label

The macro label

Type: string

deviceName

The device name this macro belongs to

Type: string

deviceKey

The device key this macro belongs to

Type: string

roomName

The room name this macro belongs to

Type: string

roomKey

The room key this macro belongs to

Type: string

trigger

Trigger this macro on the brain

Returns Promise

Recipe

Class representing a NEEO Recipe.

brain

The brain this recipe belongs to

Type: NeeoBrain

key

The recipe key

Type: string

name

The recipe name

Type: string

roomKey

The room key this recipe belongs to

Type: string

roomName

The room name this recipe belongs to

Type: string

devices

The devices in this recipe

Type: Array<Device>

getDevice

Get a device that belongs to this recipe

Parameters

  • name string The name of the device to get

Returns Device The matched device

powerOn

Power on the recipe

Returns Promise

powerOff

Power off the recipe

Returns Promise

neeo-api's People

Contributors

shepless avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.