Skip to content
A template for creating plugins
Branch: master
Clone or download
Pull request Compare This branch is 8 commits ahead, 4 commits behind pimatic:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Plugin for creating switches using the esp8266 based switches from Sonoff. Of course it is possible to program any device as long as it will understand below protocol.

For now this plugin only supports on/off commands by sending/receiving a '1' or '0'. In the future it can be expanded by adding support for receiving sensor readings and dimmable lights.


You can load the plugin by editing your config.json to include:

	"plugin": "wifiswitch"


Devices can be added by either directly editing the config file or adding devices through the gui.

As of now, only 1 device is available: "WifiSocketSwitch".

Example config:
	"id": "wifiswitchtest",
    "name": "wifiSwitchTest",
    "class": "WifiSocketSwitch",
	"port": 8888,   
    "address": ""

Port: This is the receiving port on the device itself to wich UDP command wil be send by this plugin. Address: This is the IP-Adress of the device.

The code for the switch itself wil be added later...

You can’t perform that action at this time.