Slimme Meter gerelateerde restAPI's

get
Systeem Informatie van de Slimme Meter

http://dsmr-api.local/api/v1/sm/info
Geeft systeem een JSON string met informatie van de Slimme Meter, zoals ID's en Serie nummers, terug.
Request
Response
Request
Response
200: OK
Succes
{"info":[
{"name": "identification", "value": "XMX5LGBBLB123456789"},
{"name": "p1_version", "value": "50"},
{"name": "equipment_id", "value": "1234563336303000000000000000000040"},
{"name": "electricity_tariff", "value": "0002"},
{"name": "gas_device_type", "value": 3},
{"name": "gas_equipment_id", "value": "4730303339303031312345603530323136"}
]}

get
Informatie uit het laatst gelezen telegram

http://dsmr-api.local/api/v1/sm/actual
Geeft de actuele meterstanden van de Slimme Meter terug in een JSON string.
Request
Response
Request
Response
200: OK
Succes
{"actual":[
{"name": "timestamp", "value": "210419050001S"},
{"name": "energy_delivered_tariff1", "value": 2332.511, "unit": "kWh"},
{"name": "energy_delivered_tariff2", "value": 8514.767, "unit": "kWh"},
{"name": "energy_returned_tariff1", "value": 353.841, "unit": "kWh"},
{"name": "energy_returned_tariff2", "value": 196.645, "unit": "kWh"},
{"name": "power_delivered", "value": 1.880, "unit": "kW"},
{"name": "power_returned", "value": 0.000, "unit": "kW"},
{"name": "voltage_l1", "value": 239.000, "unit": "V"},
{"name": "voltage_l2", "value": 236.000, "unit": "V"},
{"name": "voltage_l3", "value": 237.000, "unit": "V"},
{"name": "current_l1", "value": 3, "unit": "A"},
{"name": "current_l2", "value": 0, "unit": "A"},
{"name": "current_l3", "value": 0, "unit": "A"},
{"name": "power_delivered_l1", "value": 0.500, "unit": "kW"},
{"name": "power_delivered_l2", "value": 0.899, "unit": "kW"},
{"name": "power_delivered_l3", "value": 0.480, "unit": "kW"},
{"name": "power_returned_l1", "value": 0.000, "unit": "kW"},
{"name": "power_returned_l2", "value": 0.000, "unit": "kW"},
{"name": "power_returned_l3", "value": 0.000, "unit": "kW"},
{"name": "gas_delivered", "value": 2963.380, "unit": "m3"}
]}

get
Informatie uit het laatst gelezen telegram

http://dsmr-api.local/api/v0/sm/actual
Deze api dient voor backwards compatibility met de DSMRloggerWS firmware. Deze api call geeft de actuele informatie van de Slimme Meter terug in een JSON string.
Request
Response
Request
Response
200: OK
{
"timestamp": "170102105001S",
"energy_delivered_tariff1": 146.380,
"energy_delivered_tariff2": 70.511,
"energy_returned_tariff1": 111.164,
"energy_returned_tariff2": 75.530,
"power_delivered": 1.750,
"power_returned": 1.270,
"voltage_l1": 242.000,
"voltage_l2": 240.000,
"voltage_l3": 234.000,
"current_l1": 0,
"current_l2": 0,
"current_l3": 0,
"power_delivered_l1": 1.046,
"power_delivered_l2": 0.464,
"power_delivered_l3": 0.243,
"power_returned_l1": 0.669,
"power_returned_l2": 0.521,
"power_returned_l3": 0.078,
"gas_delivered": 100.550
}

get
Alle velden die de dsmr library terug kan geven

http://dsmr-api.local/api/v1/sm/fields
Geeft een JSON string met alle velden die door de Slimme Meter worden afgegeven terug.
Request
Response
Request
Response
200: OK
Sucess
{"fields":[
{"name": "identification", "value": "XMX5LGBB123456065887"},
{"name": "p1_version", "value": "50"},
{"name": "timestamp", "value": "210313113001S"},
{"name": "equipment_id", "value": "1234563336303000000000000000000040"},
{"name": "energy_delivered_tariff1", "value": 2329.048, "unit": "kWh"},
{"name": "energy_delivered_tariff2", "value": 8501.762, "unit": "kWh"},
{"name": "energy_returned_tariff1", "value": 353.536, "unit": "kWh"},
{"name": "energy_returned_tariff2", "value": 196.494, "unit": "kWh"},
{"name": "electricity_tariff", "value": "0001"},
{"name": "power_delivered", "value": 2.280, "unit": "kW"},
{"name": "power_returned", "value": 0.830, "unit": "kW"},
{"name": "electricity_threshold", "value": "-"},
{"name": "electricity_switch_position", "value": "-"},
{"name": "electricity_failures", "value": 10},
{"name": "electricity_long_failures", "value": 0},
{"name": "electricity_failure_log", "value": "(0)(0-0:96.7.19)"},
{"name": "electricity_sags_l1", "value": 2},
{"name": "electricity_sags_l2", "value": 3},
{"name": "electricity_sags_l3", "value": 3},
{"name": "electricity_swells_l1", "value": 0},
{"name": "electricity_swells_l2", "value": 0},
{"name": "electricity_swells_l3", "value": 0},
{"name": "message_short", "value": "-"},
{"name": "message_long", "value": ""},
{"name": "voltage_l1", "value": 238.000, "unit": "V"},
{"name": "voltage_l2", "value": 235.000, "unit": "V"},
{"name": "voltage_l3", "value": 233.000, "unit": "V"},
{"name": "current_l1", "value": 0, "unit": "A"},
{"name": "current_l2", "value": 2, "unit": "A"},
{"name": "current_l3", "value": 0, "unit": "A"},
{"name": "power_delivered_l1", "value": 0.566, "unit": "kW"},
{"name": "power_delivered_l2", "value": 0.896, "unit": "kW"},
{"name": "power_delivered_l3", "value": 0.819, "unit": "kW"},
{"name": "power_returned_l1", "value": 0.002, "unit": "kW"},
{"name": "power_returned_l2", "value": 0.421, "unit": "kW"},
{"name": "power_returned_l3", "value": 0.405, "unit": "kW"},
{"name": "gas_device_type", "value": 3},
{"name": "gas_equipment_id", "value": "4730303339301234563532303530323136"},
{"name": "gas_valve_position", "value": "-"},
{"name": "gas_delivered", "value": 2958.920, "unit": "m3"},
{"name": "thermal_device_type", "value": "-"},
{"name": "thermal_equipment_id", "value": "-"},
{"name": "thermal_valve_position", "value": "-"},
{"name": "thermal_delivered", "value": "-"},
{"name": "water_device_type", "value": "-"},
{"name": "water_equipment_id", "value": "-"},
{"name": "water_valve_position", "value": "-"},
{"name": "water_delivered", "value": "-"},
{"name": "slave_device_type", "value": "-"},
{"name": "slave_equipment_id", "value": "-"},
{"name": "slave_valve_position", "value": "-"},
{"name": "slave_delivered", "value": "-"}
]}

get
Informatie van één veld uit het laatst gelezen telegram

http://dsmr-api.local/api/v1/sm/fields/<fieldName>
Geeft een JSON string met informatie over één veld terug. Bijvoorbeeld: http://dsmr-api.local/api/v1/sm/fields/current_l2
Request
Response
Request
Response
200: OK
{"fields":[
{"name": "timestamp", "value": "210315080001S"},
{"name": "current_l2", "value": 1, "unit": "A"}
]}

get
Onbewerkt telegram uit de Slimme Meter

http://dsmr-api.local/api/v1/sm/telegram
Geeft een telegram terug precies zo als de Slimme Meter die ook afgeeft, dus inclusief "\r\n" line endings en inclusief de CheckSum!
Request
Response
Request
Response
200: OK
Succes
/XMX5LGBBLB2410065887
1-3:0.2.8(50)
0-0:1.0.0(210313180001S)
0-0:96.1.1(4530303336303000000000000000000040)
1-0:1.8.1(002329.072*kWh)
1-0:1.8.2(008501.837*kWh)
1-0:2.8.1(000353.541*kWh)
1-0:2.8.2(000196.496*kWh)
0-0:96.14.0(0001)
1-0:1.7.0(001.66*kW)
1-0:2.7.0(001.34*kW)
0-0:96.7.21(00010)
0-0:96.7.9(00000)
1-0:99.97.0(0)(0-0:96.7.19)
1-0:32.32.0(00002)
1-0:52.32.0(00003)
1-0:72.32.0(00003)
1-0:32.36.0(00000)
1-0:52.36.0(00000)
1-0:72.36.0(00000)
0-0:96.13.0()
1-0:32.7.0(241.0*V)
1-0:52.7.0(240.0*V)
1-0:72.7.0(236.0*V)
1-0:31.7.0(003*A)
1-0:51.7.0(002*A)
1-0:71.7.0(000*A)
1-0:21.7.0(00.990*kW)
1-0:41.7.0(00.548*kW)
1-0:61.7.0(00.123*kW)
1-0:22.7.0(00.018*kW)
1-0:42.7.0(00.695*kW)
1-0:62.7.0(00.625*kW)
0-1:24.1.0(003)
0-1:96.1.0(4730303339303031363532303530323136)
0-1:24.2.1(210313180001S)(02958.951*m3)
!DF78