package de.root1.logiccollection;
import de.root1.kad.knxservice.KnxServiceException;
import de.root1.kad.logicplugin.Logic;
public class LogicHaustür extends Logic {
String gaFingerhash = "Haustür Fingerhash";
String gaMessage = "Haustür Meldung";
@Override
public void init() {
setPA("1.0.101");
listenTo(gaFingerhash);
listenTo(gaMessage);
}
@Override
public void onDataWrite(String ga, String value) throws KnxServiceException {
if (ga.equals(gaFingerhash)){
log.info("Fingerhash: {}", String.format("0x%02x", Integer.parseInt(value)));
} else if (ga.equals(gaMessage)) {
log.info("Meldung: {}", value);
}
}
}