Coder Social home page Coder Social logo

esphome-packages's Introduction

esphome-packages

Some useful packages for use in esphome

battery_notes.yaml

This package is supposed to mimic the functionality offered by andrew-codechimp's HA-Battery-Notes, ie. it adds sensors that show the battery type, quantity and to set timestamp when you exchange the battery. Requires a time source to be configured and its id passed as one of package vars. The timestamp is stored persistently.

Example usage:

packages:
  battery_notes: !include
    file: battery_notes.yaml
    vars:
      battery_notes_time_id: homeassistant_time
      battery_notes_type: AAA
      battery_notes_count: 2

The above example will create for you 3 entites (visible to user) and a persistent global (battery_last_replaced_global). Here are the ids of these entities:

  • battery_last_replaced_sensor - a timestamp field that shows when the battery was last replaced
  • battery_type_text - a text field showing battery type and quantity
  • battery_replaced_button - a button for user to press to set the timestamp to current time.

count_events.yaml

This package will help you keep track of the number of any events. It provides a sensor and a simple esphome script to be executed when an interesting even has occur.

Example usage:

packages:
  event_counter: !include
    file: count_events.yaml
    vars:
      event_counter_name: count_triggers
      event_counter_friendly_name: "Total triggers"

...

sensor:
  ...
  on_turn_off:
    then:
        - script.execute:
            id: count_triggers
            by_value: 1

The above will create for you a sensor that shows the current count. The id of this sensor is ${event_counter_name}_sensor. The state of this sensor is stored persistently and it's restored on startup.

esphome-packages's People

Contributors

szupi-ipuzs avatar

Watchers

 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.