Announcement

Collapse
No announcement yet.

How can I get HS Device to update from REST API?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How can I get HS Device to update from REST API?

    My goal here is to have a device that I can trigger an event based on the status of the REST API. I cannot figure out how to use an event to update this device created under http profiles. Screenshots below on my configuration. Any advice on where I am going wrong would be appreciated.

    Here is the REST API Command from the browser
    Click image for larger version

Name:	REST API RAW.jpg
Views:	236
Size:	10.9 KB
ID:	1552590

    Device Status
    Click image for larger version

Name:	Device Status.jpg
Views:	201
Size:	18.8 KB
ID:	1552591

    Event - Running this manually to update device status
    Click image for larger version

Name:	Big6 Event.jpg
Views:	191
Size:	32.0 KB
ID:	1552592

    Big6 HTTP Configuration
    Click image for larger version

Name:	BIG6 Http.jpg
Views:	187
Size:	85.1 KB
ID:	1552593


    #2
    Two recommendations here

    1. Use JSON parsing expression instead of Words[3] Not sure how leading " account for a word. You may end up getting "UP" as a word as opposed to UP.
    2. Use native Big6 trigger instead of getting UP in a device and trigger by device status.

    Comment

    Working...
    X