Skip to content

This is a Homebridge plugin for controlling remote controlled power switches manufactured by Nexa.

Notifications You must be signed in to change notification settings

amalmstedt/homebridge-nexa-switch-platform

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

homebridge-nexa-switch-platform

This is a Homebridge plugin for controlling remote controlled power switches manufactured by Nexa. It may potentially work with any switch-like device communicating over the HomeEasy protocol.

The prerequisites are:

  • A Raspberry Pi Model A or B (any generation)
  • An external radio transmitter connected to your Pi's GPIO that transmits on the 433 MHz frequency
  • piHomeEasy: a software for communicating with devices using the HomeEasy protocol (github.com/nbogojevic/piHomeEasy) --> Check out its GitHub page for details on how to get it and install it

More information about the radio transmitter and how to connect it to the Pi can also be found on piHomeEasy's GitHub page.

NOTE! After you've installed piHomeEasy, you need to make sure it's executable by others and that it has the setuid bit set. Example of what piHomeEasy's properties should look like:

$ ls -l `which piHomeEasy`
-rwsr-xr-x 1 root staff 19056 Jun 27  2019 /usr/local/bin/piHomeEasy

In your config.json -file, the following information needs to be added in order for the Nexa Switch Platform to be set up:

{
  "bridge": {
    ...
  },
  "platforms": [
    {
      "platform": "NexaSwitchPlatform",
      "transmitterPin": 0,
      "emitterId": 31415,
      "accessories": [
        {
          "accessoryName": "Example Switch",
          "accessoryId": 0,
          "manufacturer": "Example Manufacturer",
          "model": "Example Model",
          "serialNumber": "XXX000000000"
        }
      ]
    }
  ]
}

An example configuration file can be found in the .homebridge -folder inside this package.

About

This is a Homebridge plugin for controlling remote controlled power switches manufactured by Nexa.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 88.5%
  • Shell 11.5%