With this custom component you can drive LIVOLO Switch ( with RF 433 option ) from ESPHome
For my test i used a Sonoff RF with the hardware hack (see references). But the component should work with the other Rf 433mhz transmitter supported by ESPHome.
The component itself to add to ESPHome config directory. Notice that i used a subdirectory "custom" in my settings :
- livoloswitch.h
A config example , where i set 20 switchs:
- livolo.yaml
Livolo switch work with a code composed in two parts :
- the Remote ID : a number coded on 2 bytes ( Range 1 - 65500 ) with binary odd parity. Working value : 6400, 7400, 6550, 8500, 19303, 10550.
6400 : 0001100100000000 -> 3 (1) = odd
7400 : 0001110011101000 -> 7 (1) = odd
8500 : 0010000100110100 -> 5 (1) = odd
..
- the Button ID : 10 possible values : 0,12,24,40,48,72,80,96,108,120
The component syntax (in the lambda code ) is :
auto xxx = new LivoloSwitch(PIN_TO_RF_EMMITER,REMOTE_ID,BUTTON_ID);
This component also work with the core component RF Transmitter enabled, sharing the same PIN.
Enable the ESPHome webserver to create a webpage that you can use quickly to learn the remote code to your switches.
web_server:
port: 80