IntelliHome::Plugin::Relay - Relay plugin for Google@Home
$ ./intellihome-master -i Relay #for install
$ ./intellihome-master -r Relay #for remove
IntelliHome::Plugin::Relay is a plugin that enables control of gpio's
Clone the repository
git clone https://github.com/IntelliHome/IntelliHome-Plugin-Relay.git
cd IntelliHome-Plugin-Relay
perl Build.pl
./Build
./Build install
or just use cpanm
cpanm https://github.com/IntelliHome/IntelliHome-Plugin-Relay.git
after that you can add the triggers to your IntelliHome setup
$ ./intellihome-master -i Relay
This plugin listen on the following events:
-
GPIO_MSG
Listen to GPIO_MSG, that can be emitted by the RPC server, it dispatch the command to the node (on/off). Arguments to the event are: tag/id, action, bool Where: the tag/id is the tag(or the id) of the GPIO in the database the action is the method executed by the driver the bool value if set to 1 enable gpio search thru id instead of tag wich is the default behaviour
-
STATUS_MSG
Listen to STATUS_MSG, it handles the update of the node's Gpio status into the database
-
on
Takes gpio tag as argument and send the request to the remote agent
-
off
Takes gpio tag as argument and send the request to the remote agent
mudler mudler@dark-lab.net
Copyright 2014- mudler
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.