Giter Club home page Giter Club logo

linktap_local_http_component's Introduction

A custom component for linktap tap and watering valve controllers.

Linktap already have an MQTT implementation, but for home assistant users its support is rudimentary. They have a more advanced mode of operation via MQTT, but it involves complicated manual setup of switches and sensors. This custom component replaces both of those mechanisms, and uses the locally available HTTP API.

It requires just the configuration IP of your gateway. If you have more than 1 gateway, you can setup multiple instances of the integration.

A device is created for each tap found. Multi-valve TapLinkers or ValveLinkers will get a device created for each output.
Note: version x060820 (x is S or G, indicating that the firmware belongs to GW-01 or GW-02, respectively) is required on your Linktap Gateway in order for this component to work.

For each device, multiple entities are created:
binary sensors:

  • Is Linked
  • Has a fall alert
  • Has a cutoff alert
  • Is leaking
  • Is clogged
  • Is broken

Binary sensors also have some services registered:
dismiss_alerts: dismiss all alerts
dismiss_alert: dismisses a single alert. Takes an entity ID of one of the binary sensors.

sensors:

  • Signal Strength
  • Battery
  • Total Duration
  • Remaining Duration
  • Speed
  • Volume
  • Volume Limit
  • Failsafe Duration
  • Plan Mode
  • Plan SN

number:

  • Watering Duration (Defaults to 15 minutes)
  • Watering Volume (Defaults to 0)

Note:The volume unit is pulled from the gateway. It can either be in L or Gal.

These control the watering time and volume, when the switch for a tap is turned on.
If duration is 0 AND volume is 0, default time is applied (currently 15 mins)
If duration is 0 AND volume is >0, water by volume is used
If duration > 0 AND volume is 0, water by duration is used
If both duration AND volume > 0, both duration AND volume are used, and tap will turn off when either is reached

NOTE: WATER BY VOLUME IS CURRENTLY PENDING A NEW RELEASE FROM LINKTAP. Until this is released, the volume parameter will have no effect.

switch:
The tap/valve itself.

As yet there is no support for controlling scheduling. The API does have support for this, but unless there is demand for it, this is likely more clunky to manage in Home Assistant than the native app.

linktap_local_http_component's People

Contributors

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