"template": "pincode"

This pair template shows a pincode input. When the pincode is correct, it will proceed to the next view.


const Homey = require('homey');

class MyDriver extends Homey.Driver {
  onPair(session) {
    session.setHandler('pincode', async (pincode) => {
      return pincode === '1234';


Key Type Default Description
type string "number" Either number or text
length number 4 The number of characters
hint i18n-object ""
title i18n-object "Enter pincode:"