Control Livolo switches / Livolo switch library

Max,

I guess it is highly probable. At least, manual for VL-RMT-01 remote that I have says that buttons 7 (on), 9 (off), "+" (more light) and "-" (less light) can be used to control dimmer switch.

I don't have dimmer switches, that is why I have not scanned "+" and "-" buttons yet. I'm planning to do that this or next week, and after that you will be able to test dimmer feature.

thanks for your really fast reply - I'm really looking forward to test the dimmer feature :slight_smile: keep up the great work!

Hi spch
Thanks for your reply.
I still cannot find new ID yet. For example, i use 6500 for ID which is 0001 1001 0110 0100. I though it follow your rule.
But it did not work either. Which pulse is not following your rule?

I understand that KOTI use FSK protocol. Still can decode?

Regards

baustromverteiler,

I've just recorded what I believe are dimmer buttons. I have to sets of dimmer buttons (+/-) on the remote, and they have different keycodes. So here are both sets:

  1. "+": 92 ; "-": 116

  2. "+": 126; "-": 36

It's in the manual that I've found on the net that dimmer should be "paired" with buttons 7 and 9. Regretfully there is nothing on pairing and I don't have dimmer switch, so I can not test it.

winnaing,

It seems, you are right. Not all remote IDs are working. Sorry, I can not find the reason - it is really beyond my understanding. Maybe, I missed something or there is a bug in the code.

So there is a hit or miss approach: try different remote IDs to find ones that work. For example, I found that 7400, 6550, 10550 can be used with Livolo switches.

As to FSK, it is not really a protocol - it is method of modulation used to transmit data over RF. Basically it can be easily demodulated using FSK receiver (the same way as I demodulated Livolo's signal using ASK receiver). And there are two ways to use received data:

  1. Try to "copy" code sequence without trying to understand underlying protocol;
  2. Try to decode and use original protocol.

First will do if it is about fixed codes. Second is good to deal with fixed and dynamic codes, although to me dynamic codes are really hard to hack.

Regards,
Sergey.

Thanks for the keycodes - I'll let you know how it worked out

Hi spch
Thanks for new IDs.
As for FSK ; are you saying that it works with fsk receiver and will not work with ask receiver?
Then where can I find fsk receiver? It is like all arduino store sell ask receiver.

Regards

Hi winnaing,

Of course, ASK receiver won't be able to receive FSK transmission. Here is a simple FSK receiver:
http://www.ebay.com/itm/Very-Good-FSK-Replace-ASK-Transparent-Wireless-Data-Receier-RX-Module-433MHZ-/271302707346?pt=LH_DefaultDomain_0&hash=item3f2ae6c892

and here are both FSK receiver and transmitter:

http://www.ebay.com/itm/FSK-Directly-Replace-ASK-200-300-Meters-Transparent-Wireless-Data-433MHZ-Modules-/261050654636?pt=Vintage_Electronics_R2&hash=item3cc7d4dfac

Hi,

Thanks for the code :slight_smile:
What kind of transmitter work fine with livolo?

This: http://www.ebay.com/itm/433mhz-WL-RF-transmitter-Receiver-Module-Link-Kit-for-Arduino-ARM-MCU-Wireless-/360770544267?pt=LH_DefaultDomain_2&hash=item53ff99a28b

Thx!!!

Hi eltin,

These should be just fine. My transmitter looks exactly the same.

Hi folks,

It is now a Livolo switch control library.

Just unzip Livolo folder under your Arduino/libraries folder, restart Arduino IDE if it was open at the moment, connect Arduino board with ASK RF transmitter to PC, upload test sketch and put your Livolo switch into learning mode.

If everything goes right, your light will turn on and off every 3 seconds. See readme.txt for more info.

Default TX pin is 8, but you can use any digital pin you like.

Enjoy!

Livolo.zip (3.34 KB)

Hi spch
Thanks for the link. I have purchased the pair already.
Next, once I receive the switch and rf module, I try to decode them. If not successful, will shout for help.
Thanks for the library as well. I haven't tested yet, but should be fine. Well feedback to you after tested.

Regards

Hi,

First thanks for sharing your code :slight_smile:

I can´t control the switch :frowning:

I use:

  1. Arduino Uno
  2. RF433 transmitter
  3. Switch VL-C301DR-81

Steps:

  1. Connect rf433 data on pin 8 VCC on 5v and GND on gnd
  2. Load the code
  3. Touch the button of switch 5 seconds (Di sound)
  4. Send 1 to monitor.

The code:

#include <livolo.h>
Livolo livolo(8);
int incomingByte = 0;

void setup() {
    Serial.begin(9600);
    Serial.println("init");
}

void loop() {
   if (Serial.available() > 0) {
        incomingByte = Serial.read();
        switch(incomingByte) {
          case 49:
            livolo.sendButton(6400, 120);
            Serial.println("Switching on 1");
          break;
        }
   }
}

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).

spch,

I did all the step but not work on Arduino Uno.
I check in all Arduino PINs with the transmitter near the switch!

If I can make it work, then they notice!

Thx

Pd. Sorry for my bad English

spch,

It works with arduino uno :slight_smile:

I use PIN 3 and I send this livolo.sendButton(19303, 72);

Thanks man!!!

thanks for your code, its working like a charm

my remote id are13979 for room 1
13972 for room 2
139731 for room 3

do you have a sketch to read the id and the command directly from the remote ( without going thru audacity)
i m sure it would help a bunch of people

thanks for your work

Dear friends,

I know that this is strictly an Arduino forum, but I am working on the same project a long time now to control my Livolo switches, but with a Raspberry pi instead. As far as now I have not managed to achieve it. Hopefully someone inside the forum can translate the already working code for Arduino and make it work on Raspberry pi. There are already some useful codes for Raspberry pi that control the GPIO and send pulses to them (RCSwitch-pi and wiringPi) but I can note make them work with Livolo. Thank you very much for your reading!

seagorf7,

You are right, reading remote IDs with Audacity is an akward routine. And I did try to build a code to read remote IDs, but have not succeeded yet. What's more, I'm not really sure I can do it.

But I'll get back to it as soon as I have enough time.

i m no good at programing but , you can get help on irc
server : chat.freenode.net
room : #arduino

a bunch of savvy coders there

Hi,

It´s possible to get current status or send ON command only.

thx