Related to my first post about having a smart meter installed, I’m now already having experience with 2 types of smart meters. The Sagemcom is the first one, the second is the house brand of Enexis (dark grey color) in 3 different houses. All can still be read with the P1 to USB type cable “NTA8130-P1 – P1 Converter Cable v2“.

As a follow-up to the earlier mentioned post, the updated script is now compatible with Homeseer 4 and has daily usage devices. Additional the use of MySQL is present again and the daily usage plus counters are written to a MySQL table.

The script will get its data every ~3 seconds from the telegram that is received via the COM port.

It will update its virtual device data, and calculate the usage.

The script will create a separate event that will run, in my case, 12 minutes on top of the hour, every hour. the 12 minutes is related to the delay of the gas meter that sends its update to the smart meter. If your gas meter sends its update earlier than this, you might want to change the event to 2 minutes on top of the hour or so.

P1 event

Before you make changes in the “Startup.vb” script, you have to make sure that you know which COM port the Smartmeter cable is using (see Device Manager). The statements in the script will be (where “3” behind the bracket is the comport):

hs.OpenComPortTerm(3,”115200,N,8,1″,1,”P1smartmeter.vb”, “Main”, “!”)

With the first run of the script, the following virtual devices will be created:

HS4-devices

The water usages devices will be not related to the smart meter, however, if you’ll able to track it, you’ll find a way to use it in the same script.

 

Downloads:

  P1Smartmeter.vb (9.9 KiB, 4 hits)