Interface with Proove
/Anslut
/Nexa
/Telldus
remote switches using LoPy and cheap 433Mhz RF Transmitter.
- Make a copy of
scripts/config_example.py
and rename it toscripts/config.py
- Fill in your
WiFi credentials
,MQTT Configs
andGPIO Configs
. - Upload the code to LoPy.
The device subscribes to a MQTT topic specified in scripts/config.py
.
To control the switches, send JSON String
as message to the topic with the following template:
{
"on": true,
"channel": 2,
"deviceId": 1,
"transmitter_id": 312312
}
LoPy | Transmitter |
---|---|
P9 (or any pin specified in config.py) |
Data |
3.3V |
VCC |
GND |
GND |