snowdd1 / homebridge-knx-de

German Issue/Discussion forum for homebridge-knx
https://github.com/snowdd1/homebridge-knx
20 stars 4 forks source link

BatteryService #72

Open CyberChris79 opened 3 years ago

CyberChris79 commented 3 years ago

Hallo,

kann mir jemand mit dem BatteryService Device helfen.

Ich habe folgendes in der knx config hinzugefügt `{ "DeviceName": "Wasserstand Zisterne", "Services": [ { "ServiceType": "BatteryService", "Handler": "Wasserstand", "ServiceName": "Wasserstand Zisterne", "Characteristics": [ { "Type": "BatteryLevel" }, { "Type": "ChargingState" }, { "Type": "StatusLowBattery" } ], "KNXObjects": [ { "Type": "BCDA", "Listen": "1/4/23", "DPT": "DPT1" } ], "KNXReadRequests": [ "1/4/23" ], "LocalConstants": {

                }
            }
        ]
    }`

aber leider kommt ein Fehler obwohl die Syntax stimmt. Einen Custom Handler namens Wasserstand.js

`/ jshint esversion: 6, strict: true, node: true /

'use strict'; /* @type {HandlerPattern} */ var HandlerPattern = require('./handlerpattern.js');

/**

} // class

module.exports= Wasserstand;

`

habe ich auch eingefügt. Es ist erstmal alles leer und soll später mit einer Funktion gefüllt werden.

Danke vorab.

Christian