User Tools

  • (equal to forum credentials)

Site Tools


preceive

pilight-receive

pilight-receive will output all received messages by the pilight-daemon as json objects.

The output of the receiver will be as follow:

root@pi:~# pilight-send -p kaku_switch -i 100 -u 15 -f
root@pi:~# pilight-receive
{
	"origin": "sender",
	"protocol": "arctech_switches",
	"code": {
		"id": 100,
		"unit": 15,
		"state": off
	},
	"repeat": 1,
}

root@pi:~# pilight-send -p kaku_dimmer -i 100 -u 15 -d 15
root@pi:~# pilight-receive
{
	"origin": "sender",
	"protocol": "arctech_dimmers",
	"code": {
		"id": 100,
		"unit": 15,
		"state": on,		
		"dimlevel": 15
	},
	"repeat": 1,
}

root@pi:~# pilight-send -p elro -s 10 -u 15 -t
root@pi:~# pilight-receive
{
	"origin": "sender",
	"protocol": "sartano",
	"code": {
		"systemcode": 10,
		"unitcode": 15,
		"state": off
	},
	"repeat": 1
}

Note

If your transmitter/sender will not show any output on the screen, that means that there isn't a supported protocol at the moment. You can see the received data using -raw -debug and -daemon. Your sender will not be “plug and play”. Please use the forum for additional information.

Filtering option

This adds the ability to filter the output of pilight-receive to remove the output for certain protocols. The protocols to be removed can be defined by invoking pilight-receive with the -F option:

pilight-receive -F datetime
Several protocols can be defined by separating them with commas:
pilight-receive -F datetime,cpu_temp,alecto_wsd17

preceive.txt · Last modified: 2016/11/18 14:07 by Cadster