Giter VIP home page Giter VIP logo

esphome-livolo_2gang's Introduction

ESPHome Custom Component for Livolo Switch with RF 433mhz option.

With this custom component you can drive LIVOLO Switch ( with RF 433 option ) from ESPHome

Hardware

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.

Configs

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.

Tech tips

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

References

ESPHome

Forum Topic

Livolo Remote ID Explained

Livolo Library

Sonoff RF Hardware Hack

Livolo RF Switch

Livolo RF Switch France

esphome-livolo_2gang's People

Contributors

rmesnard avatar ol56 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.