Jump to content

Elk email substitution variable not working


MarkJames

Recommended Posts

I'm just rewriting some notifications and I can't seem to get the elk.x.alarmStatus to report as it seemingly should.

 

This is from the wiki

image.thumb.png.3e1f93ad00fc035cd96a9c3cd74caae8.png

 

This is the body of the email

Report info
${elk.area.1.name}.... Armup State:${elk.area.1.armUpState}.... Alarm Status: ${elk.area.1.alarmStatus}   

and this is the content of the email it sends

Report info
Main House.... Armup State:Armed Fully.... Alarm Status: 

 
I've tried this for all 6 areas but the Alarm Status is blank for all of them
 
From ISY I see this
image.thumb.png.8d2ae1428662f5170ba141f1b4972b50.png
 
Any thoughts?
 
 

  

Link to comment
Share on other sites

image.png.5a5ff9f311f16b9bd186b9b9775718ed.png

 

same result - sorry.

 

image.thumb.png.e052957c138354007df460b3d7be7447.png

image.thumb.png.04eac92c15673124efcabefd1e98f0bc.png

The table is HTML so I c/p just one row and highlighted the substituted variables.  Ignore columns 2,3,4 - they're ISY variables for my own use

</tr>
 <tr style='height:8.95pt'>
  <td width=162 valign=top style='width:121.25pt;border:solid windowtext 1.0pt;
  border-top:none;padding:0in 5.4pt 0in 5.4pt;height:8.95pt'>
  <p class=MsoNormal style='margin-bottom:0in;line-height:normal'>${elk.area.2.name}</p>
  </td>
  <td width=79 valign=top style='width:59.55pt;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0in 5.4pt 0in 5.4pt;height:8.95pt'>
  <p class=MsoNormal style='margin-bottom:0in;line-height:normal'>${var.2.13}</p>
  </td>
  <td width=89 valign=top style='width:66.4pt;border-top:none;border-left:none;
  border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0in 5.4pt 0in 5.4pt;height:8.95pt'>
  <p class=MsoNormal style='margin-bottom:0in;line-height:normal'>&nbsp;</p>
  </td>
  <td width=89 valign=top style='width:66.4pt;border-top:none;border-left:none;
  border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0in 5.4pt 0in 5.4pt;height:8.95pt'>
  <p class=MsoNormal style='margin-bottom:0in;line-height:normal'>Always</p>
  </td>
  <td width=165 valign=top style='width:123.45pt;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0in 5.4pt 0in 5.4pt;height:8.95pt'>
  <p class=MsoNormal style='margin-bottom:0in;line-height:normal'>${elk.area.2.alarmStatus}</p>
  </td>
  <td width=165 valign=top style='width:123.95pt;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0in 5.4pt 0in 5.4pt;height:8.95pt'>
  <p class=MsoNormal style='margin-bottom:0in;line-height:normal'>${elk.area.2.armUpState}</p>
  </td>

Link to comment
Share on other sites

I have never been able to get ${elk.area.1.alarmStatus} to work. I agree that  

My work around has been to use:

${elk.area.1.alarmState}, which results in No Active Alarm, Burglar Alarm, etc.

${elk.area.1.armUpState}, which results in Ready To Arm, Not Ready to Arm.

${elk.area.1.armedState}, which results in Disarmed, Armed Stay, Armed Away, etc.

These are available as selections from the "add variable" menu on the custom notification screen with the Elk Module.

In addition, I add the following to my custom notification ${elk.area.1.name} & ${elk.area.1.armUpState} which work.

I think this combination covers most of what is needed for "area" status and alarm.

Link to comment
Share on other sites

Thanks Dennis,

I'll try that out.  Hopefully this also brings it to the attention of the ISY team so they can address it. It's probably a feature that so few of us use that it got missed.

 

[edit]

Confirmed - that works perfectly.  Thank you!

 

Link to comment
Share on other sites

8 minutes ago, MarkJames said:

Thanks Dennis,

I'll try that out.  Hopefully this also brings it to the attention of the ISY team so they can address it. It's probably a feature that so few of us use that it got missed.

 

[edit]

Confirmed - that works perfectly.  Thank you!

 

Most likely for those on v5 firmware, I think the future will be the Elk Nodeserver being created by @Jimbo. It is being tested now by a limited number of people. The Elk Nodeserver will support custom notifications.

Link to comment
Share on other sites

I'm lusting after setting up a nodeserver but I'm also in the midst of deciding on whether we are going to sell our home.  I've spent the last 24 years automating and re-automating and re-automating again to where it's a complex entanglement of a custom Java web page contorlling Elk, Sonos, ISY, Ecobee, Nuheat and Insteon managed by ISY and Homeseer along with some automation routines internal to the Elk.  My wife always kids that if I die she'd have to sell the house because she doesn't know how any of it works.  If we're going to sell I really need to simplify things for the next owner and adding PolISY is probably not the right step for me right now.

Link to comment
Share on other sites

On 2/23/2021 at 8:04 AM, MarkJames said:

Report info
${elk.area.1.name}.... Armup State:${elk.area.1.armUpState}.... Alarm Status: ${elk.area.1.alarmStatus}   

...

Any thoughts?
 
 

  

The documentation in the Wiki was actually incorrect.  I have updated it https://wiki.universal-devices.com/index.php?title=ISY-994i_Series:EMail_and_Networking_Substitution_Variables#Elk_Variables

The variable is actually elk.area.1.alarmState

Link to comment
Share on other sites

Archived

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


  • Recently Browsing

    • No registered users viewing this page.
  • Forum Statistics

    • Total Topics
      36.5k
    • Total Posts
      367.6k
×
×
  • Create New...