User Tools

  • (equal to forum credentials)

Site Tools


psend

pilight-send

pilight-send will send codes to the pilight-daemon, that will then transmit or parse them.

root@pi:~# ./pilight-send -p kaku_switch -i 1 -u 1 -t

The command line arguments depend on the protocol used e.g.:

root@pi:~# pilight-send -H
Usage: pilight-send -p protocol [options]
         -H --help                      display this message
         -V --version                   display version
         -S --server=127.0.0.1          connect to server address
         -P --port=5000                 connect to server port
         -p --protocol=protocol         the protocol that you want to control

The supported protocols are:
         coco_switch                    CoCo Technologies Switches
         nexa_switch                    Nexa Switches
         dio_switch                     D-IO (Chacon) Switches
         kaku_switch                    KlikAanKlikUit Switches
         kaku_dimmer                    KlikAanKlikUit Dimmers
         cogex                          Cogex Switches
         kaku_old                       Old KlikAanKlikUit Switches
         elro                           Elro Switches
         select-remote                  SelectRemote Switches
         impuls                         Impuls Switches
         relay                          Control connected relay's
         raw                            Raw codes

root@pi:~# pilight-send -p kaku_switch -h
Usage: pilight-send -p kaku_switch [options]
         -H --help                      display this message
         -V --version                   display version
         -S --server=127.0.0.1          connect to server address
         -P --port=5000                 connect to server port
         -p --protocol=protocol         the protocol that you want to control

        [kaku_switch]
         -t --on                        send an on signal
         -f --off                       send an off signal
         -u --unit=unit                 control a device with this unit code
         -i --id=id                     control a device with this id
         -a --all                       send command to all devices with this id

Examples are:

root@pi:~# pilight-send -p kaku_switch -i 1 -u 1 -t
root@pi:~# pilight-send -p kaku_dimmer -i 1 -u 1 -d 15
root@pi:~# pilight-send -p elro -s 1 -u 1 -t

psend.txt · Last modified: 2015/11/27 22:09 (external edit)