Skip to content

User guide PiLight 09

Florian edited this page Feb 20, 2019 · 7 revisions

RF Pilight gateway

Level of complexity: low

Receiving data from RF signal

Subscribe to all topics with mosquitto:

sudo mosquitto_sub -t +/# -v

Generate your RF signals by pressing a remote button or other and you will see :

Send data by MQTT to convert it on RF signal

ON

mosquitto_pub -t "home/OpenMQTTGateway/commands/MQTTtoPilight" -m '{"message":"{\"systemcode\":12,\"unitcode\":22,\"on\":1}","protocol":"elro_400_switch"}'

OFF

mosquitto_pub -t "home/OpenMQTTGateway/commands/MQTTtoPilight" -m '{"message":"{\"systemcode\":12,\"unitcode\":22,\"off\":1}","protocol":"elro_400_switch"}'

Theses commands will send by RF the signals to actuate an elro_400 switch

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.