Jump to content

Using /rest/elk/keypad/<kpId>/cmd/press/funcKey/<fkId>


Envirogreen

Recommended Posts

Posted

I am looking to bring Elk functionality to irule through the ELK/ISY integration.

 

In speaking with irule they use the ISY REST command for their ISY integration, and they suggested I use the same for the ELK.

 

Sounds good, but I've hit a problem right out of the gate, how do I determine - it says fkId : Defined in elkobjs.xsd:uelk:FunctionKeyType, but I have no idea what that is.

 

To create a button for #1 - I have the following - but need to figure out fkid.

 

/rest/elk/keypad/1/cmd/press/funcKey/

 

Any help would be appreciated.

Posted

So does that mean that kpid and fkid are the same thing?

 

 

/rest/elk/keypad//cmd/press/funcKey/

Simulates pressing the fkId button on keypad given in kId

kpId : Keypad number (1-8)

fkId : Defined in elkobjs.xsd:uelk:FunctionKeyType

 

So for F1, it would be /rest/elk/keypad/1/cmd/press/funcKey/

 

Also, with this covering function keys, is there a similar rest function for actual numbers 0-9?

 

How about arm/disarm?

 

Thank you,

 

Jeff

Posted
So does that mean that kpid and fkid are the same thing?

 

 

/rest/elk/keypad//cmd/press/funcKey/

Simulates pressing the fkId button on keypad given in kId

kpId : Keypad number (1-8)

fkId : Defined in elkobjs.xsd:uelk:FunctionKeyType

 

So for F1, it would be /rest/elk/keypad/1/cmd/press/funcKey/

 

Also, with this covering function keys, is there a similar rest function for actual numbers 0-9?

 

How about arm/disarm?

 

Thank you,

 

Jeff

 

Not quite. It looks like keypad 1 function key 2 would be:

 

/rest/elk/keypad/1/cmd/press/funcKey/2

 

My Elk is not setup at the moment, so I cannot test (between moving).

 

Arm and Disarm are covered in the Elk integration manual (Area commands) at https://www.universal-devices.com/devel ... DK-ELK.pdf

 

Michel - I assume this is the latest version available, and that this has not materially changed since 3.2.3.

 

Michael.

Posted

So used exactly this /rest/elk/keypad/1/cmd/press/funcKey/2 in irules and it isn't working

 

If you know rules I crated a new device called Elk M1, then under network code added a devoice code, and in the data field put in /rest/elk/keypad/1/cmd/press/funcKey/2

 

Attached this to a button and synced to my iPad.

 

On the iPad created a new Gateway (ELK ISY) and mimicked the ISY gateway (as I couldn't at two items to the same gateway in irules), and then added the ELK m1 device to the ELK ISY

 

With all that - no success.

Posted

Does the URL work with a web browser? If it does, you may have to seek irule help beyond what I know..... If not, what happens?

Posted

In a regular web browser, visit http://ISY.IP/rest/elk/keypad/1/cmd/press/funcKey/2

 

It should ask for your ISY username and password (if not already session authenticated) and perform the action.

 

If it does what you need, then you have an irule issue (possibly authentication).

If it does not work, then we need to dig more into the api documents.

 

Michael.

Posted
(using Safari - in case that makes any difference)

Shouldn't, but I don't use Safari...

 

I assume you at substituting the IP for your actual IP and that the HTTP port of your ISY is still the default of 80?

Posted

so user error, typo on the IP...with the correct IP I got the request for authentication and then this message

 

This XML file does not appear to have any style information associated with it. The document tree is shown below.

404

Posted

Hmm... So something's wrong with the URL, or its structure. This clearly didn't work. Michel, do you see anything inconsistent with the documentation?

 

My Elk is in a storage unit right now, until I can reinstall it in my (still being constructed) new home at the beginning of August, so I have nothing I can work with currently to try and figure this out. Hopefully, someone else with an active Elk can take a look, otherwise I will be able to continue then.

Posted

One thing to ask - the 'K' of funcKey is capitalized. I don't know if it makes a difference, just wanted to make sure you tried that.

  • 3 weeks later...
  • 3 months later...
Posted

Picking this back up - I had network issues (the Elk and another device were sharing - not well - the same IP)

 

So now all of the above works. 

 

I have the function keys working.

 

I have Disarm working, but Arm isn't working.  

 

area/<areaId>/cmd/arm?armType=<elkArmType> &code=<accessCode

 

I filled in <areaId>=1, and <elkArmType>=1 but assuming that the arm type of 1 is not correct.  Is there somewhere that I can find out what my options are?

 

thank you

Posted

Thank you for the options link - that really let me progress a lot further.

 

I now have all the buttons on he keypad programmed except for the numbers 0-9.  Am I missing this in the documentation or is it not doable?

 

One other question - I want to be able to query the content displayed on the screen, with the response being the text (so I can display it)....is that doable?

 

Thank you for all of your great help

Archived

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

  • Recently Browsing

    • No registered users viewing this page.
  • Who's Online (See full list)

    • There are no registered users currently online
  • Forum Statistics

    • Total Topics
      37k
    • Total Posts
      371.4k
×
×
  • Create New...