Cisien / homebridge-sense-power-meter

A plugin for the Sense home power meter for HomeBridge
MIT License
5 stars 4 forks source link

Support for Flex sensors? #4

Open jcgillespie opened 3 years ago

jcgillespie commented 3 years ago

Does this plugin support the Sense Flex Sensors? I have the CT sensors for solar monitoring and would like to report consumption AND production.

Cisien commented 3 years ago

I don't have access to one of these sensors, so I can't answer for sure. This plugin connects to the same sense APIs that the web browser uses, so in theory it's at least partially compatible. Please give it a try and let me know if you run into issues.

audientsoundco commented 3 years ago

I was able to display the solar output in the log (modifying my local copy of senseAccessory.js). It seems the api supports it. the next question is what can one do with that info?

can one plugin return 2 sensor values, or does one create a second accessory?

jcgillespie commented 3 years ago

I imagine it would create a second, configurable accessory. The value it exposes is dependent on how that sensor is utilized. They can be set up to monitor solar production, a single dedicated circuit, generator production, or 400A split-service panels.

audientsoundco commented 3 years ago

right, it's another quantity that Sense can report on, my added sensor happens to be attached to a solar array. presumably homebridge can be used to track whatever you plug the aux sensor into. the info is making it to homebridge, dynamically updated, but as yet, it's not displayed in any widget, or made visible to HomeKit.

How cool would it be to have a HomeKit automation trigger on "when my solar array output exceeds X kilowatts..."