text: /* Magic Mirror
   * Module: MMM-CECControl
   *
   * By Thierry Nischelwitzer http://nischi.ch
   * MIT Licensed.
   */
  
  Module.register("MMM-CECControl",{
  	defaults: {
      comport: 'RPI',
      offOnStartup: true,
      xscreensaver: false
    },
  
  	start: function() {
      this.sendSocketNotification('CONFIG', this.config);
  
      if (this.config.offOnStartup) {
        this.sendSocketNotification('CECControl', 'off');
      }
    },
  
    socketNotificationReceived: function(notification, payload) {
      Log.log(this.name + " received a socket notification: " + notification + " - Payload: " + payload);
    },
  
    notificationReceived: function(notification, payload, sender) {
      if (notification === 'CECControl') {
        Log.log(this.name + " received a module notification: " + notification);
        this.sendSocketNotification('CECControl', payload);
      }
    }
  });