const { Client } = require('overkiz-client');

const Cozytouch = async (options, callback) => {
  const client = new Client(console, {
    service: 'cozytouch',
    user: options.user,
    password: options.password,
    refreshPeriod: 15,
  });

  const devices = await client.getDevices();

  devices.forEach(device => {
    device.on('states', (_states) => callback(device));
  });

  await client.refreshAllStates();
};

module.exports = Cozytouch;

@@ -213,16 +213,19 @@
 ord,%0A   
+ //
  refresh

Use default refresh period