mschlenstedt / LoxBerry-Plugin-Smartmeter

Apache License 2.0
3 stars 7 forks source link

Add the current tariff indicator #27

Open gmkey opened 1 year ago

gmkey commented 1 year ago

Hello Michael (et al),

I'm an avid user of the Loxberry SmartMeter plugin. In the dutch smr documentation there is a field which provides valuable information for those using different rates (peak/low).

The Specification document (see link below) provides the following description.

Value OBIS reference Attribute Class ID Value Format Value Unit
Tariff indicator electricity. The tariff indicator can also be used to switch tariff dependent loads e.g boilers. This is the responsibility of the P1 user. 0-0:96.14.0.255 2 Value 1 Data S4, tag 9

source: P1 Companion Standard - Dutch Smart Meter Requirements

This field and values would allow me to trigger certain processes in my loxone based on the current energy tariff.

I had a look at the code, but I can't figure out the hex-values in the array in the php_sml_parser.class.php.

Would it be possible to add this to the plugin?

mschlenstedt commented 1 year ago

One of the next things I have on my todo list is, to switch over zu vzlogger for the plugin: https://wiki.volkszaehler.org/software/controller/vzlogger

vzlogger is much more powerful in reading smartmeters than our own routine. And you can define whatever you want to read from the smartmeter. All what your smartmeter is sending, is also available. So this will definetly solve your issue...

I think a first version will be available in the next few weeks.