Wondering what’s next for npm?Check out our public roadmap! »

    homebridge-sensor-stub

    0.1.29 • Public • Published

    This is regression test package I created to simulate a contact and motion sensor for use in testing events with homebridge-alexa

    Config.JSON

    "accessories": [{
      "accessory": "Stub",
      "name": "Motion",
      "service": "motion",
      "interval": 10,
      "value": true
    }, {
      "accessory": "Stub",
      "name": "Contact",
      "service": "Contact",
      "interval": 10
    },
    {
     "accessory": "Stub",
     "name": "Contact-Fault",
     "service": "Contact-fault",
     "interval": 10
    },
    {
     "accessory": "Stub",
     "name": "Contact-battery",
     "service": "Contact-battery",
     "interval": 10
    },
    {
     "accessory": "Stub",
     "name": "Contact-error",
     "service": "Contact-error",
     "interval": 10
    },
    {
     "accessory": "Stub",
     "name": "Contact-tamper",
     "service": "Contact-tamper",
     "interval": 10
    },
    {
     "accessory": "Stub",
     "name": "Contact-Reach",
     "service": "Contact-reach",
     "interval": 10
    }]
    

    options

    • name - device name for the Home app
    • service - Sensor type to create
    • interval - in seconds of state changes, defaults to 30 seconds
    • value - initial state of sensor, defaults to false

    Install

    npm i homebridge-sensor-stub

    DownloadsWeekly Downloads

    1

    Version

    0.1.29

    License

    Apache-2.0

    Unpacked Size

    6.66 kB

    Total Files

    4

    Last publish

    Collaborators

    • avatar