mySwitch
mySwitch is event hub server to manage home sensors and IoT devices.
Example usage
Install by npm command.
$ npm install -g myswitch
A configuration file as YAML is required. Following sample conf.yml
detects a device that has NIC 4C:57:CA:XX:XX:XX connects to the network, then turn on hue lights of 10.0.0.136
.
event: name: join-network device: en0 target: 4C:57:CA:XX:XX:XXaction: name: turn-on-hue bridge: 10.0.0.136 user: N8CHJNdmFPfFDUhTTlDMZDGrdXXXXXXXXXXXXXXXX target: [1, 2]
Then, run myswitch command.
$ myswitch serve conf.yml