type:power-switch - Power switches¶
Things marked with power-switch are switches that control something.
Switches commonly control power outlets,
power channels and lights.
if(thing.matches('type:power-switch')) {
// This is a power switch
}
Implementing type¶
const { PowerSwitch } = require('abstract-things/electrical');
class Example extends PowerSwitch.with(...) {
}