Managed meters
Posted: Thursday 27 February 2020 11:02
Hello,
I create this topic to discuss the development of "managed" meters.
Following discussion in these PR :
https://github.com/domoticz/domoticz/pull/2271
https://github.com/domoticz/domoticz/pull/2272
https://github.com/domoticz/domoticz/pull/2417
And recently rejected PR :
https://github.com/domoticz/domoticz/pull/3877
The need : I have now access to official API of French Managed Linky meters. I can grab consumption and production data. These are not realtime data but data from the day before and the whole history. I want to :
To be able to manage production data and 2 tariffs, the PR #3877 create another new device, to be consistent. For @gizmocuz, I should not create another device (I understand, it's cumbersome).
What would be the good strategy for my PR to be accepted: stick to P1 smart meter existing device, and add an option (a bit like #2272 but with no interface, option only accessible from plugins?) to prevent calendar update ?
If I want to be consistent, I would delete the sTypeManagedCounter counter (I think I'm the only one to use it today with https://github.com/guillaumezin/DomoticzLinky) and stick to RFX Meter Counter the same way.
What do you think?
I create this topic to discuss the development of "managed" meters.
Following discussion in these PR :
https://github.com/domoticz/domoticz/pull/2271
https://github.com/domoticz/domoticz/pull/2272
https://github.com/domoticz/domoticz/pull/2417
And recently rejected PR :
https://github.com/domoticz/domoticz/pull/3877
The need : I have now access to official API of French Managed Linky meters. I can grab consumption and production data. These are not realtime data but data from the day before and the whole history. I want to :
- Introduce data in Domoticz log from a Python plugin, for user to see their consumption easily from Domoticz interface
- Prevent Domoticz to call UpdateMeter() and AddCalendarUpdateMeter() to do change on this device because it's done from the plugin
To be able to manage production data and 2 tariffs, the PR #3877 create another new device, to be consistent. For @gizmocuz, I should not create another device (I understand, it's cumbersome).
What would be the good strategy for my PR to be accepted: stick to P1 smart meter existing device, and add an option (a bit like #2272 but with no interface, option only accessible from plugins?) to prevent calendar update ?
If I want to be consistent, I would delete the sTypeManagedCounter counter (I think I'm the only one to use it today with https://github.com/guillaumezin/DomoticzLinky) and stick to RFX Meter Counter the same way.
What do you think?