Git Product home page Git Product logo

Comments (8)

jvandenaardweg avatar jvandenaardweg commented on July 18, 2024

@matbe81 I don't think this is possible, as far as I know Homebridge (which uses Apple's HomeKit) does not support a device like a water meter.

This page only displays these "water" related devices to be supported:
https://developer.apple.com/documentation/homekit/hmaccessorycategory/accessory_category_types#3080302

let HMAccessoryCategoryTypeSprinkler: String
A sprinkler system accessory.

let HMAccessoryCategoryTypeFaucet: String
A faucet accessory.

let HMAccessoryCategoryTypeShowerHead: String
A shower head accessory.

from homebridge-homewizard-energy-socket.

matbe81 avatar matbe81 commented on July 18, 2024

Maybe, as you suggested, another device type can be used to expose those values like others plugin. Example: My SolarEdge use sensor & brightness as device type. Faucet, Splinkler, Showerhead, Valve, Switch or Sensor are some ideas to display the differents elements exposed by the API.

from homebridge-homewizard-energy-socket.

jvandenaardweg avatar jvandenaardweg commented on July 18, 2024

Where would a water meter fit in? As far as i'm aware, it only registers water usage, nothing more. What would je expect to see within the Home app for this water meter?

from homebridge-homewizard-energy-socket.

matbe81 avatar matbe81 commented on July 18, 2024

Information interested to be exposed are:

  • Active (right now - boolean)
  • Current use per minute (liter/m3)
  • Total use (m3 or m3)
  • Current day use (liter or m3)
  • Current week use (liter or m3)
  • Current month use (liter or m3)
  • Current year use (liter or m3)
  • Average daily use (liter or m3)
  • Current index (calculated from an offset value to set at plugin config + total use)
    Settings should allow to display values in liter or M3.

This will allow to setup automations like:

  • notify (using the messenger homebridge plugin exposed as a switch) when today use is above average by X% to prevent leak
  • notify when use during night or when absent from home (to prevent leak too)
  • Set the color of a lightbulb depending on today/current week/month use (green as lower to red as larger)
  • ...

WDYT?

from homebridge-homewizard-energy-socket.

jvandenaardweg avatar jvandenaardweg commented on July 18, 2024

That sounds like lots of customization.

Working on this Energy Socket plugin I noticed HomeKit does not provide lots of ways to deal with energy data and usage tracking over time. There's a fixed set of properties you can work with for a accessory type, like a Outlet (On, Off, Outlet In Use (Yes/No)) or a Light Bulb (On, Off, Color Temperature, Brightness)

There is a way to track history data over time with this: https://github.com/simont77/fakegato-history , but reading that info can only be done within the Eve Home App.

I would suggest to create a seperate plugin for HomeBridge and try to see if you can fit your requirements in there. Unfortunatly I can't really help you with that as i'm drowning in day to day work...

from homebridge-homewizard-energy-socket.

matbe81 avatar matbe81 commented on July 18, 2024

No problem. I understand. Thank you for your feedback :)

from homebridge-homewizard-energy-socket.

jvandenaardweg avatar jvandenaardweg commented on July 18, 2024

Btw, if you are familiar with writing code, I think it's even better to just create a seperate app through NodeJS or Python that exactly does what you want. I feel like that would be more suitable as that gives you total freedom. You can run that in your local network on a Raspberry Pi.

Notifications can be done through something like Pushover: https://pushover.net/ or a different Push Notifcation service, or just a different way to send notifications.

Users looking for a Homebridge plugin for the Water Meter usually have a Raspberry Pi running anyways, so if you can package your app to be re-used by others that would benefit them more than the hassle of customizing a Homebridge plugin to fit in requirements where HomeKit is just not suitable for.

from homebridge-homewizard-energy-socket.

matbe81 avatar matbe81 commented on July 18, 2024

Indeed. Good idea. But unfortunately, i'm not familiar with nodeJS nor Python :(
I run homebridge on a VM under ESXI.

from homebridge-homewizard-energy-socket.

Related Issues (4)

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.