Well the pilight documentation would be a good place to start
But to send a command use ā¦
pilight-send -p kaku_switch_old -u 1 -i 5 -t -S 192.168.1.7 -P 5000
where -p is the protocol -u is the unit code -i is the id code -t means turn on (-f is turn off) -S is the server addr (usually the PI ip addr) -P is the port
and
pilight-receive -S 192.168.1.7 -P 5000
does what is says on the tinā¦
Not really pilight-receive is only used to get the data to put in the json config file and to use as a quick way of seeing whats being received. So you only have remotes and sensors? No switches/lights?
The pilight-send command is very useful for testing your switches and lights.
Useful commandsā¦
pilight-daemon -D in the terminal to spot config issues
To Edit pilight config
sudo nano /etc/pilight/config.json
To manually start pilight
sudo pilight-daemon -S 192.168.1.7 -P 5000
And to stop/restart pilight
sudo service pilight stop
sudo service pilight restart
So now I realize that what I have been wanting to do is communicate between an arduino running virtualwire and the raspberrypi running pilight. I have posted in the pilight forum in hopes of getting help:
Why do you need an Arduino at all, is it that you already have PIR sensors that are not 433Mhz but are connected to your Arduino? Why not buy 433Mhz PIR/Temp sensors etc.
Yes you guess correctly. my PIR sensors are literally just the PIR part, and the RF are the modules I linked above.
You do make a good point though, I certainly could purchase a couple of PIR sensors with 433mHz built in.
Home Assistant Question:
Its possible to setup a second raspberry Pi#1 as a nodeā¦correct? Example: I hook up the PIR and 433mHz transmitter to Pi#1, then use Pi#2 as the gateway/host?
That would seem overkill to me and quite expensive, wouldnāt you need a PI for every PIR. If I get what you are trying to do it amounts to a PIR attached to a PI and then sending data via 433 to the HA PI thatās elsewhere?