homebridge-index-counter

Simple counter for Homebridge: https://github.com/nfarina/homebridge

Usage no npm install needed!

<script type="module">
  import homebridgeIndexCounter from 'https://cdn.skypack.dev/homebridge-index-counter';
</script>

README

Homebridge Index Counter

Example config.json:

    "accessories": [
        {
            "accessory": "IndexCounter",
            "name": "My Counter",
            "max": 6,
            "randomizeAfterDelay": true,
            "delay": 300000
        }  
    ]

With this plugin, you can keep track of an index and increment or randomize it at will. This is useful in HomeKit since it provides a simple variable that can be used with automations.