Giter VIP home page Giter VIP logo

esphome_sonoff_mini_light's Introduction

esphome_sonoff_mini_light

This project is a ESPHome configuration that facilitate the configuration of SONOFF Mini.

How to use this configuration

To use this base configuration create a new file in the ESPHome folder (with a name close to the device name, E.G: bedroom-left-light.yaml).

Edit this new file to add the substitution used in the common configuration:

substitutions:
  # Device name is used as host name by mDNS to resolve ip address. Avoid using '_' in name. 
  # It can that can cause mDNS resolution issues
  device_name: <put_device_name_here> # required

  # Variables used in commons/wifi.yaml
  wifi_ssid: !secret wifi_ssid
  wifi_password: !secret wifi_password
  wifi_ap_password: <put_some_wifi_fallback_password_here>

  ota_password: <put_some_ota_password_here>
  api_encryption_key: <put_some_encryption_key_here>

Add those secrets in the secrets.yaml file: secrets.yaml:

wifi_ssid: <put_your_wifi_ssid_here>
wifi_password: <put_your_wifi_password_here>

Add the remote package repository reference to the new file. A new configuration file will be build by downloading all file and compiling it into a full config file.

packages:
  remote_package:
    url: https://github.com/benjamin3322/esphome_sonoff_mini_light
    ref: main # optional
    files: [
      commons/wifi.yaml, 
      commons/esphome_8266.yaml, 
      
      # This mode configure the S1/S2 input lines into push button mode (push toggle the light on or off)
      # To use a regular switch mode use the file named commons/sonoff_mini_light_switch_mode.yaml (toggle the light on/off by switching a button up/down)
      # You can comment the following line to "save" space for the first firmware build. (The OTA update will work for .bin file < 500Mb)
      # When the first OTA update is sucessful, uncomment the lite and update again
      commons/sonoff_mini_light_push_mode.yaml
    ]
    refresh: 1d # optional

esphome_sonoff_mini_light's People

Contributors

benjamin3322 avatar

Watchers

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