UNPKG

domoticz-api

Version:

Advanced api based on your current Domoticz api with well formated results ;)

17 lines (15 loc) 495 B
"use strict"; class Device { constructor(_device) { this.idx = _device.idx; this.id = _device.id; this.name = _device.name; this.room = _device.room; this.lastUpdate = _device.lastUpdate; this.type = _device.type; this.subType = _device.subType; this.batteryLevel = _device.batteryLevel; this.signalLevel = _device.signalLevel; }; }; module.exports.Device = Device;