Jump to content

Substitution Variables for Smart Meter


Michel Kohanim

Recommended Posts

Hi Michael,

 

Here you go:

/**

* Metering:

**

umeter.

"status.check"

"status.lowbat"

"status.tampered"

"status.powerfail"

"status.powerqual"

"status.leak"

"status.disconnect"

"status.ok"

"usage.currsum"

//tiers

"usage.t1sum"

"usage.t2sum"

"usage.t3sum"

"usage.t4sum"

"usage.t5sum"

"usage.t6sum"

"usage.t7sum"

"usage.inst" (instantaneous demand)

"period.max"

"usage.today"

"usage.yesterday"

"usage.currdelta"

//this billing cycle

"usage.cycle"

 

Example ${umeter.usage.inst}

 

/**

* Demand Response

*/

 

 

udr.

"event.criticality"

"event.duration"

"event.cooloffset"

"event.heatoffset"

"event.coolsp"

"event.heatsp"

"event.loadadj"

"event.dutycycle"

"event.status"

"event.stopreason"

 

Example: ${udr.event.status}

 

/**

* Message

*/

umsg.

"event.reqconf"

"event.importance"

"event.status"

 

Example: ${umsg.event.status}

 

/**

* Price

*/

 

uprice.

"event.tier"

"event.price"

"event.duration"

"event.status"

//this cycle

"event.cycle"

 

Example: ${uprice.event.status}

 

With kind regards,

Michel

Link to comment
Share on other sites

OK, the alert has:

 

Subject: Power data at ${alert.date} ${alert.time24}

 

Body:

Here is the current data:<br>
<br>
<table>
<tr><td>Instant Usage</td><td>${umeter.usage.inst}<td></tr>

</table>

It didn't work. I got ${umeter.usage.inst} in the body instead of the usage.

 

However (and I don't know why I didn't think of this before) - when building a custom notification I selected 'Utility - Meter' then 'Instantaneous Demand' and clicked 'Insert'. The value inserted was ${mod.umeter.usage.inst}

 

So - it seems we need mod. at the start...

 

Next was to try to get the RAW values:

Here is the current data:<br>
<br>
<table>
<tr><td>Instantaneous Usage</td><td>${mod.umeter.usage.inst}<td><td>${mod.umeter.usage.inst.raw}<td></tr>
<tr><td>Delivered - Yesterday</td><td>${mod.umeter.usage.yesterday}<td><td>${mod.umeter.usage.yesterday.raw}<td></tr>
</table>

The HTML delivered was:

Here is the current data:<br>
<br>
<table>
<tr><td>Instantaneous Usage</td><td>1.8450kW-kWh<td><td><td></tr>
<tr><td>Delivered - Yesterday</td><td>39.6640kW-kWh<td><td><td></tr>
</table>

So - the .RAW got substituted to a null. Is this expected?

 

Also - with the formatted value - why is the format kW-kWh? Shouldn't it just be kWh for delivered, and kW for instantaneous usage?

 

In order to build graphs from this - we will likely need .raw to work at least...

 

Michael.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...