UNPKG

@bridgerakol/samsung-smart-api

Version:

Node Module For Connecting Samsung Smartthings API

15 lines (14 loc) 774 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); //const smartthings = require("@bridgerakol/samsung-smart-api"); const index_1 = require("./index"); let st = new index_1.SmartThings("bcd5334b-7d67-4234-9bb5-5cd0591dc4db"); // let arr = ["cfc99c8e-00f8-4ac3-8561-3e62383a1d5a", "6ecdbe93-d152-1bd6-d6c7-75c196b98cff", "695d451a-fa5d-44a8-acb6-2598cc074d9f"] st.devices.getBulkHealth(['695d451a-fa5d-44a8-acb6-2598cc074d9f', '6ecdbe93-d152-1bd6-d6c7-75c196b98cff']).then(res => { // res.forEach(element => { // console.log(element.data.components) // }) console.log(res); // console.log(res.data.response.statusText) }); // st.devices.getListLocation("37440dea-9c40-4ad7-acb3-2d99ad2815b3").then(console.log)