Skip to content

IntelliHome/IntelliHome-Plugin-Relay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NAME

IntelliHome::Plugin::Relay - Relay plugin for Google@Home

SYNOPSIS

$ ./intellihome-master -i Relay #for install
$ ./intellihome-master -r Relay #for remove

DESCRIPTION

IntelliHome::Plugin::Relay is a plugin that enables control of gpio's

INSTALLATION

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

EVENTS

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

METHODS

  • 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

AUTHOR

mudler [email protected]

COPYRIGHT

Copyright 2014- mudler

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO

IntelliHome

About

IntelliHome Plugin to handle relays operations

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages