code: function init(pluginInterface) {
      pi = pluginInterface;
      log = pi.log;
      localStorage = pi.localStorage;
  
      pollLog = localStorage.getItem('pollLog', []);
  
      resetPolling();
  }
docs: Initialize plugin
  @param {object} pluginInterface The interface of picogw plugin