Control Livolo switches / Livolo switch library

eltin,

Sorry for previous message. I missed some pieces of code you wrote. I've just tested your code on Mega and it is working flawlessly.

I guess problem is in switch "pairing". Try clearing previous code from switch first. For example:

  1. Hold switch button until it beeps twice
  2. Release switch button
  3. Hold switch button until it beeps once
  4. Enter "1" in Arduino port monitor input field and press Enter (switch shoud beep and accept new button)
  5. Enter "1" in Arduino port monitor input field and press Enter (switch should turn on)

In case switch still not responding, make sure you have right antenna (163 mm of wire soldered to transmitter) and that transmitter is quite close to switch (at least for testing).