function BaallAction (opts, knx) {
  if(!opts.id) {
    console.log('no id given');
    return null;
  } else if(!opts.name) {
    console.log('no gad given');
    return null;
  } else if(!opts.type) {
    console.log('no type given');
    return null;
  }
  
  this.id = opts.id;
  this.name = opts.name;
  this.type = opts.type

  Action.call(this, this.name);

  this.value = null;

  this.handler = function ballrequest() {
    if(this.newValue != null) {
      knx.write(this.id, this.newValue);
    }
  } 
}
/**
 * Model for Base Baall Actions
 *
 * turn on/off devices
 */
Model for Base Baall Actions
turn on/off devices
Model for Base Baall Actions turn on / off devices
function BaallAction (opts, knx) {
  if(!opts.id) {
    console.log('no id given');
    return null;
  } else if(!opts.name) {
    console.log('no gad given');
    return null;
  } else if(!opts.type) {
    console.log('no type given');
    return null;
  }
  this.id = opts.id;
  this.name = opts.name;
  this.type = opts.type
  Action.call(this, this.name);
  this.value = null;
  this.handler = function ballrequest() {
    if(this.newValue != null) {
      knx.write(this.id, this.newValue);
    }
  } 
}
function BaallAction ( opts , knx ) { if ( ! opts . id ) { console . log ( 'no id given' ) ; return null ; } else if ( ! opts . name ) { console . log ( 'no gad given' ) ; return null ; } else if ( ! opts . type ) { console . log ( 'no type given' ) ; return null ; } this . id = opts . id ; this . name = opts . name ; this . type = opts . type Action . call ( this , this . name ) ; this . value = null ; this . handler = function ballrequest ( ) { if ( this . newValue != null ) { knx . write ( this . id , this . newValue ) ; } } }
Model for Base Baall Actions
 turn on/off devices
Model for Base Baall Actions turn on / off devices