2.8.1 • Published 4 years ago

@bridgerakol/samsung-smart-api v2.8.1

Weekly downloads
2,033
License
-
Repository
-
Last release
4 years ago

#bridgerakol #samsung-smart-api

Quick Start

Install the samsung-smart-api module

$ npm install @bridgerakol/samsung-smart-api

Import the module

const smartthings = require("@bridgerakol/samsung-smart-api");
let st = new smartthings.SmartThings("Token");

Get a list of all devices:

st.devices.getList().then(res => {
    console.log(res.status) // True for success and False for Failure
    console.log(res.data)
})

Get the device status

st.devices.getStatus(deviceID).then(res => {
    console.log(res.status) // True for success and False for Failure
    console.log(res.data)
})

List of Functionality

  • devices
    • getList()
    • getStatus(deviceId)
    • devices.getListLocation(locationId)
    • devices.getBulkStatus(deviceId)
    • devices.commands(deviceId,on/off)
  • locations
    • getList()
    • getDetail(locationId)
    • create(payload)
    • remove(locationId)
    • update(locationId, payload)
  • rooms
    • getList()
    • getDetail(locationId, roomId)
    • create(locationId, payload)
    • remove(locationId, roomId)
    • update(locationId, roomId,payload)
2.8.1

4 years ago

2.8.0

4 years ago

2.7.0

4 years ago

2.6.0

4 years ago

2.5.0

4 years ago

2.4.1

4 years ago

2.4.0

4 years ago

2.3.0

4 years ago

2.2.0

4 years ago

2.1.3

4 years ago

2.1.2

4 years ago

2.1.1

4 years ago

2.1.0

4 years ago

2.0.3

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.0.0

4 years ago