haywirecoder / homebridge-flobymoen

Homebridge Module for Flo by Moen Smart Water System
MIT License
14 stars 2 forks source link

FEAT: Add sensors for GPM, PSI, and TEMP #9

Closed claywd closed 4 months ago

claywd commented 1 year ago

Is your feature request related to a problem? Please describe:

The moen app tracks gpm, psi, and temp and it would be super useful for automation to have that info available as conditions for triggering valves and such.

Describe the solution you'd like:

Implement a sensor

Describe alternatives you've considered:

There aren't alternatives, unless I resort to implementing myself.

Additional context:

So I have a property on a well. Between the droughts in Texas, sprinklers for grass which controls erosion (major problem), and the filter required to keep my well water from gunking up the system(s), I've resorted to automating the entire water system at my home. Tank level monitors, flow monitors, flush valves, and sprinklers all hooked up to homekit. I plan to use the GPM to tell me when its safe to trigger an event to flush the filters (which requires turning the moen valve to closed) and such.

haywirecoder commented 1 year ago

Hi,

The plug-in is already pulling these values, so it's not too difficult to implement. A very early beta version is posted, you can test if you replace the current installation with the newly posted files. Few important note:

  1. Home doesn't have GPM or PSI, so the plug-in expose PSI and GPM as Lux sensors. They are associated with the Flo device, so they are bonded device. Home may display them as one tile, you may have to go into the tile and separate the tile depending on your use case.
  2. The following entry must be present in the configuration -- > "showGPMPSIasLight": true. The UX configuration should now have this value as well. By default it doesn't show the GPM and PSI.
  3. This is a realtime value, so remember it only update upon pull request. Becareful not to lockout your session, very frequent (e.g. under 1mins) may results in timeouts.
github-actions[bot] commented 4 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.