DrozmotiX / ioBroker.sourceanalytix

Detailed analysis of your Energy, gas and liquid consumptions
http://iobroker.net
MIT License
65 stars 21 forks source link

Autodetection of Power Measurement Device #18

Open FlexerJR opened 5 years ago

FlexerJR commented 5 years ago

Thanks for that great adapter.

It would be awesome to scan the iobroker itself for power measurement devices.

If a device is found in iobroker the adapter will autolog it.

Greetings Flexer

DutchmanNL commented 5 years ago

nice idea, questions :

Any ideas how to figure that out ? ( I am thinking about using functions or standard values

FlexerJR commented 5 years ago

Normaly when installing a power measuring device in a smart home system it is named strom fernseher or power xyz. The adapter could filter channels in datatrees with power or strom or something that is very close to it

raintonr commented 3 years ago

I created an adapter which interfaces with a power measurement device: https://github.com/raintonr/ioBroker.legrand-ecocompteur.

TBH I think it's asking too much to have sourceanalytix auto create configuration for all such devices. What could be useful though, is that sourceanalytix could supply a library that foreign adapters (such as mine I mention above) could utilise to generate configuration.

For example, my legrand-ecocompteur adapter actually performs it's own kWh calculations. I could create a config setting that disables those in favour of using sourceanalytix. Such a setting would also trigger a call to the sourceanalytix library I mention would be required which would enable correct sourceanalytix config settings for all the states legrand-ecocompteur writes to.

The call would need simply need to pass full state ID with it's type and units. However... that could become tricky because I notice type is actually user configurable in the price definitions. So either they would need to be standardised or this could all become a little problematic :(