homebridge-rfxcom-api

Homebridge plugin for RFXtrx433(E) transceivers, with an API.

Usage no npm install needed!

<script type="module">
  import homebridgeRfxcomApi from 'https://cdn.skypack.dev/homebridge-rfxcom-api';
</script>

README

homebridge-rfxcom-api


Forked from homebridge-rfxcom-api. Adds an API to control your blinds with any front interface.

See reason-homebride-rfxcom-blinds for an already working front interface.

Usage

npm install -g homebridge-rfxcom-api

:warning: Warning: Do not install both homebridge-rfxcom and homebridge-rfxcom-api or this will cause conflicts. If you wish to use this package, you must uninstall homebridge-rfxcom first:

npm uninstall -g homebridge-rfxcom

config.json

It is basically the same as homebridge-rfxcom, with the addition of an orders key:

  "platforms": [
    {
      "platform": "RFXCom",
      "name": "RFXCom",
      "rfyRemotes": [
        {
          "name": "Awning",
          "deviceID": "0x010000/1",
          "openCloseSeconds": 18,
          "orders": [
            {
              "time": "09:30",
              "direction": "up"
            },
            {
              "time": "12:00",
              "direction": "down",
              "duration": 5
            },
            {
               "time": "21:30",
               "direction": "down"
            }
          ]
        }
      ]
    }
  ]

This allows the plugin to register CRON jobs that will move your blinds up and down at specified hours. Note this order key is only mandatory if you wish to restore your orders on Homebridge restart. All orders are stored in crontab and deleted when Homebridge restarts, so be sure to save your most important ones.