From 6a98e9c470f67fd5fe5997ffdb57d73defbdf528 Mon Sep 17 00:00:00 2001 From: MTD <77180362+MTDWOR@users.noreply.github.com> Date: Mon, 23 Jan 2023 21:37:53 +0100 Subject: [PATCH] Create hmip-scth230.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Schaltaktor (Kanal 1) des HmIP-SCT230 hinzufügen. --- homematic-devices/hmip-scth230.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 homematic-devices/hmip-scth230.js diff --git a/homematic-devices/hmip-scth230.js b/homematic-devices/hmip-scth230.js new file mode 100644 index 0000000..190e5f6 --- /dev/null +++ b/homematic-devices/hmip-scth230.js @@ -0,0 +1,9 @@ +const Accessory = require('./lib/accessory'); + +module.exports = class HmipSCTH230 extends Accessory { + init(config) { + this.addService('Switch', config.name) + .get('On', config.deviceAddress + ':8.STATE') + .set('On', config.deviceAddress + ':8.STATE'); + } +};