@kala4ek/homebridge-starline
Version:
StarLine plugin for Homebridge
18 lines (14 loc) • 378 B
JavaScript
const AccessoryBaseClass = require('./AccessoryBaseClass');
module.exports = class Webasto extends AccessoryBaseClass {
constructor(hap, obj) {
super(hap, obj);
this.code = 'Webasto';
this.name = obj.name || 'Webasto';
this.type = 'Switch';
this.key = 'webasto';
this.init();
}
getAccessoryState(data) {
return data.car_state.webasto;
}
}