New Module: SmartMeterP1. Read your DSMR electric/gas meter via P1 interface

Begonnen von fhemmiv, 19 November 2015, 07:29:02

Vorheriges Thema - Nächstes Thema

fhemmiv

Richard,

Try version 1.7. It has a new attribute called "removeLeadingZero". When set to 'true' it will remove the leading zero of values.

Greetings Michel.

(Added documentation)

kroonen

Hi Michel,

the removeLeadingZero works great. Thanx.


regards Richard

Ed66

Nice job Michel, thanks. Smashed out my Cacti scripts immediately. With the help of the Statistics module and some userReadings the family's daily energy spend is now visible in FTUI. The WAF is 100%  ;)

Best regards,
Ed

kroonen

Hi Michel,


I haar another feature request. If it goes form normal tarif to low tarif, the values of the normal tarif don't update in the log. I know that there are the same values for the time, but for my logging it thou be nice to still have them. I use this line to get not too much logging

attr SmartMeterP1 event-min-interval *:120

I use a script for the log to get my graphs.

regards Richard

HarryT

Hi

Is this module in the development version of FHEM yet? If so, what is its name. I couldn't find it.

{HT}
FHEM 6.4 auf Raspberry Pi3  (1,2 Ghz)
RFXTRX433XL, ZWave, KFL200 and ConBeeIII
Raspberry Pi1 (0,7 Ghz) and Raspberry Pi4 for testing
German reading skills are good.

Icinger

Sounds like the same thing as my 47_OBIS-Module.

Currently it only supports Electricity-Readings since I havent found somebody with a Gas-Meter until now.

I would be willing to include the Gasmeter also to my module, if somebody can provide me with the correct Data.

At the moment, i'm merging the 70_SMLUSB and my OBIS-Module, since both are the same, only different encoded.

Think, that will be done by about the end of the week. Then I could start including the Gasmeters.

Nice evening,

Stefan
Verwende deine Zeit nicht mit Erklärungen. Die Menschen hören (lesen) nur, was sie hören (lesen) wollen. (c) Paulo Coelho

Ed66

Hi community, using the SmartmeterP1 module and now looking into a way to do a daily upload of my gasmeter reading to mindergas.nl, for which the following code should be executed. Any proposal how to do that from within fhem? Use an AT?

curl -v -H "Content-Type:application/json" -H "AUTH-TOKEN:<jouw authenticatietoken>"
-d '{ "date": "<jjjj-mm-dd>", "reading": <meterstand> }' https://www.mindergas.nl/api/gas_meter_readings

Kind regards,
Ed

rudolfkoenig

According to
  http://fhem.de/commandref.html#command
you can execute Shell commands by putting them in "".
To make things more tidy, I would put the curl command with parameters in a shell/batch file, and test that first.

HarryT

Hi

Is there any reason why I don't see your module after an update and in the documentation?

{HT}
FHEM 6.4 auf Raspberry Pi3  (1,2 Ghz)
RFXTRX433XL, ZWave, KFL200 and ConBeeIII
Raspberry Pi1 (0,7 Ghz) and Raspberry Pi4 for testing
German reading skills are good.

HarryT

Hi

The module works fine, but the readings include kW and m3. This way you have to remove this text before you can use the readings to compute etc. Is it possible to remove kW and m3 from the readings?

{HT}

FHEM 6.4 auf Raspberry Pi3  (1,2 Ghz)
RFXTRX433XL, ZWave, KFL200 and ConBeeIII
Raspberry Pi1 (0,7 Ghz) and Raspberry Pi4 for testing
German reading skills are good.

Ed66

For those interested in a daily upload to Mindergas.nl

Define at_Mindergas at *23:59:00 { my $Gas = sprintf('%d',ReadingsVal('SmartMeterP1','GasDelivered',0));; my $date = strftime "%Y-%m-%d", localtime;; system ("curl -v -H 'Content-Type:application/json' -H 'AUTH-TOKEN:mytokenhere' -d '{ \"date\": \"$date\", \"reading\": $Gas }' https://www.mindergas.nl/api/gas_meter_readings") }

Kind regards,
Ed

RaspiLED

Raspberry Pi mit FHEM, CUL, Signalduino, MySensors, HomeBridge, Presence, WifiLight2, Bravia, ...

Paul Guijt

Hi Harry,

You asked

Zitat von: HarryT am 15 Mai 2016, 14:09:37
The module works fine, but the readings include kW and m3. This way you have to remove this text before you can use the readings to compute etc. Is it possible to remove kW and m3 from the readings?

See what I did:

attr SmartMeter removeLeadingZero true
attr SmartMeter removeUnitSeparator true
attr SmartMeter userReadings ElectricityPowerDeliveredW { ReadingsNum ("SmartMeter","ElectricityPowerDelivered",0) * 1000 ;;;;  }


ElectricityPowerDeliveredW is now only a number.

Paul
RasPi 2B, CUL 433, Jens' FW, Berker, HomeMatic, KlikaanKlikuit, RFXtrx443, Squeezebox, Z-Wave, TradFri in die Niederlände

Paul Guijt

Hi Everyone,

Does any one of you know if the ElectricityPowerDelivered reading can be in 1 Watt resolution? The Dutch Smart Meter Requirements (https://www.netbeheernederland.nl/_upload/Files/Slimme_meter_15_a727fce1f1.pdf) state on page 20 that the telegram should include "Actual electricity power delivered (+P) in 1 Watt resolution".

If it can, does any one of you know the fault tolerance on the measured Actual electricity power delivered ? Can I find that in the documentation online?

Greetings,
Paul
RasPi 2B, CUL 433, Jens' FW, Berker, HomeMatic, KlikaanKlikuit, RFXtrx443, Squeezebox, Z-Wave, TradFri in die Niederlände

Paul Guijt

Hi Michel,

In my log I see the warning: "Possible unintended interpolation of @115200 in string at ./FHEM/00_SmartMeterP1.pm line 88."

I guess that means more to you than to me ;-) It doesn't seem the cause of another problem I'm dealing with.

Regards,
Paul
RasPi 2B, CUL 433, Jens' FW, Berker, HomeMatic, KlikaanKlikuit, RFXtrx443, Squeezebox, Z-Wave, TradFri in die Niederlände