andreas-fey / fhem-pilight

pilight module for FHEM
http://blog.andreas-fey.com/fhem-module-pilight/
GNU General Public License v3.0
5 stars 8 forks source link

Please add "relay" protocol #21

Open devBioS opened 8 years ago

devBioS commented 8 years ago

Hi Andreas, i'm BiOS from the FHEM Forum. Could you please add the relay Protocol, as i'm using your module to switch a GPIO relay via pilight connected to an respberry.

The neccessary change is to add the following to your protocol switch (tested and working): case 'relay' { $code = $code . "\"gpio\":$systemcode, \"$param\":1"}

so you can define the gpio number to switch via the systemcode variable within FHEM. Thanks a lot!