0.0.33 • Published 9 years ago

homebridge-programmableswitch v0.0.33

Weekly downloads
4
License
ISC
Repository
github
Last release
9 years ago

homebridge-programmableswitch

Supports Programmable Switch devices on HomeBridge Platform.

It currently covers Python script triggering for

  1. IR codes (via LIRC)
  2. Blyss devices thx StefTech
  3. A custom 433Mhz protocol of mine

Installation

  1. Install homebridge using: npm install -g homebridge
  2. Install this plugin using: npm install -g homebridge-programmableswitch
  3. Update your configuration file as bellow.

Configuration

Configuration sample:

   {
       "bridge": {
           ...
       },
       
       "description": "...",

       "accessories": [{
       "accessory": "ProgrammableSwitch",
       "name": "Programmable Switch",
       "id": 123,
       "statefull": true,
       "pythonScriptPath": "ABSOLUTE_TO_YOUR_SCRIPT",
       "pythonScriptName": "SCRIPT_NAME.py",
       "minValue": 0,
       "maxValue": 3,
       "manufacturer": "Manufacturer",
       "model": "Model",
       "serialnumber": "Serial Number",
       "isDummy": false,
       "buttonId": 1,
       "timer": 60,
       "irCommands": {
           "0": [{
               "remote": "myRemote",
               "key": "myKey"
           },
           {
               "remote": "myRemote",
               "key": "myKey"
           }],
           "1": [{
               "remote": "myRemote",
               "key": "myKey"
           }],
           "2": [{
               "remote": "myRemote",
               "key": "myKey"
           }, {
               "remote": "myRemote",
               "key": "myKey"
           }]
       }
   }],

       "platforms":[]
   }

Unfortunatelly, I'm also workin on an option "statefull": false, but the StatelessProgrammableSwitch looks unstable for now. Use with care, any feeback will be welcomed.

For Bliss

{
    "accessory": "ProgrammableSwitch",
    "name": "Socket",
    "statefull": true,
    "pythonScriptPath": "/usr/local/lib/node_modules/homebridge-programmableswitch/",
    "pythonScriptName": "blyss.py",
    "manufacturer": "Blyss",
    "serialnumber": "Button1",
    "buttonId": 1
  }

For LIRC

{
    "accessory": "ProgrammableSwitch",
    "name": "Vidéo projecteur",
    "statefull": true,
    "pythonScriptPath": "/usr/local/lib/node_modules/homebridge-programmableswitch/",
    "pythonScriptName": "IRremote.py",
    "minValue": 0,
    "maxValue": 1,
    "manufacturer": "Optoma",
    "serialnumber": "HD 700X",
    "irCommands": {
      "0": [{
          "remote": "OPTOMA_HD700X",
          "key": "KEY_POWER"
      }],
      "1": [{
          "remote": "OPTOMA_HD700X",
          "key": "KEY_POWER"
      }]
    }
  }
0.0.33

9 years ago

0.0.32

9 years ago

0.0.31

9 years ago

0.0.30

9 years ago

0.0.29

9 years ago

0.0.28

9 years ago

0.0.27

9 years ago

0.0.26

9 years ago

0.0.25

9 years ago

0.0.24

9 years ago

0.0.23

9 years ago

0.0.22

9 years ago

0.0.21

9 years ago

0.0.20

9 years ago

0.0.19

9 years ago

0.0.18

9 years ago

0.0.17

10 years ago

0.0.16

10 years ago

0.0.15

10 years ago

0.0.14

10 years ago

0.0.13

10 years ago

0.0.12

10 years ago

0.0.11

10 years ago

0.0.10

10 years ago

0.0.9

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago