Skip to content

somebodywhoisntme/homebridge_install_script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 

Repository files navigation

homebridge_install_script

Just a small script which installs and configures homebridge, cmdSwitch2 and rc-switch library with 433mhz support for Rhine ceiling fan(s) and various no-name outlets.

Installation

Enter these commands on a freshly installed raspbian:

wget https://raw.githubusercontent.com/somebodywhoisntme/homebridge_install_script/master/install_homebridge.sh

chmod +x install_homebridge.sh

./install_homebridge.sh

Follow screen instructions.

Configuration

The homebridge config.json is located at /var/homebridge/

sudo nano /var/homebridge/config.json

Syntax ceiling fan:

send [protocol number] [command] [0] [0]

The last two 0's are needed because I don't know a better way to prevent a seg-fault atm but they don't have a purpose.

Syntax outlet:

send [protocol number] [system code] [device ID] [command]

Homebridge config.json example with ceiling fan stage 1/off button and one outlet.

"platform" : "cmdSwitch2",
"name": "CMD Switch",
"switches": [{
    "name" : "Fan",
    "on_cmd": "sudo /var/homebridge/send 8 119 0 0",
    "off_cmd": "sudo /var/homebridge/send 8 125 0 0"
  }, {
    "name" : "Outlet",
    "on_cmd": "sudo /var/homebridge/send 2 1 1 1",
    "off_cmd": "sudo /var/homebridge/send 2 1 1 0"
 }]

About

homebridge install script

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages