Closed mbariola closed 3 years ago
ok by looking into smartwares_switch.c
I saw that actually the on and off switch need to be specified differently from what appears in the piilight pages. the lines modified like this do not raise the insufficient number of arguments error.
rf.send("smartwares_switch", "{\"id\":23042048,\"unit\":1,\"on\":1}");
rf.send("smartwares_switch", "{\"id\":23042048,\"unit\":1,\"off\":1}");
I still cannot get the transmitter to send, but this might be a hardware or electronics issue.
Hi,
I have tried to use this library to pilot a set of smartwares_switch.
the receive.ino sketch works perfectly (attaching a bit of the dump on/off sequence from unit 1 ).
however, when trying to adapt the transmitter sketch, I obtain this warning on serial monitor, and no codes being transmitted:
pilight(3): smartwares_switch: insufficient number of arguments
I have changed these lines
to these, using the info available at these pages: https://manual.pilight.org/protocols/433.92/switch/elro_800.html (for original example) https://manual.pilight.org/protocols/433.92/switch/nexa.html (one of the many supporting smartwares_switch)
Can you please point me in the right direction? Also, what are the
arctech_switch
andarctech_screen
that I see coming up in the dump? could it be the transmitter sending out other protocols too?Many thanks