Livolo Switch RF 433- Custom Component

Tags: #<Tag:0x00007f739afc25f0>

Hi,

I create a custom switch component in ESPHome to drive my Livolo switches.

Livolo switch with the RF 433 option use a no standard protocol. I didn’t succeed to adapt existing core RF Transmitter protocol to use them so i create a custom switch component.

GitHub - Livolo Switch

For my test i use the Sonoff RF transmitter with the hardware Hack , i will try without the hack shortly.

Wow! Thank you so much. I’ve tried this custom component and it works like a charm with my livolo switches!

Can you please guide on how to add livolo to ESP home, i have a sonoff bridge hack version, i added the h file to components in a “custom” folder now how do i use it in the config yaml

I did something like:

switch:
  - platform: custom
    lambda: |-
      auto lvA1 = new LivoloSwitch(5,6400,0);
      App.register_component(lvA1);
      return {lvA1};
    switches:
      - name: "Livolo A 1"
        id: livoloA1

Thanks in advance

Solved forgot to add the header file Thanks