Announcement

Collapse
No announcement yet.

Does HS3 support GET & POST to run events and retrieve device values?

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

  • Does HS3 support GET & POST to run events and retrieve device values?

    Does HS3 have a built-in ability (without scripting or a Plug-in) to run Events and/or retrieve Device values using GET and/or POST? (This would allow other computers on the LAN to control automations.)

    If it DOES NOT, then is there a PlugIn that provides this capabilities?

    NOTE: I am looking for a solution that runs entirely within the LAN and that DOES NOT use cloud-based services such as WebHooks or IFTTT.

  • #2
    JSON can be used to get status and run events, but it would take a bit of coding to get the device values and read the data returned. That is, you would need to parse the JSON string returned. Initiating control of the device or event would be simple from another computer via an http call.

    Have a look at https://homeseer.com/support/homeseer/HS3/hs3sdk.pdf.

    Robert
    HS3PRO 3.0.0.500 as a Fire Daemon service, Windows 2016 Server Std Intel Core i5 PC HTPC Slim SFF 4GB, 120GB SSD drive, WLG800, RFXCom, TI103,NetCam, UltraNetcam3, BLBackup, CurrentCost 3P Rain8Net, MCsSprinker, HSTouch, Ademco Security plugin/AD2USB, JowiHue, various Oregon Scientific temp/humidity sensors, Z-Net, Zsmoke, Aeron Labs micro switches, Amazon Echo Dots, WS+, WD+ ... on and on.

    Comment


    • #3
      Originally posted by SeattleDavid View Post
      Does HS3 have a built-in ability (without scripting or a Plug-in) to run Events and/or retrieve Device values using GET and/or POST? (This would allow other computers on the LAN to control automations.)

      If it DOES NOT, then is there a PlugIn that provides this capabilities?

      NOTE: I am looking for a solution that runs entirely within the LAN and that DOES NOT use cloud-based services such as WebHooks or IFTTT.
      You can do it all for free with Node-Red (runs local) via http JSON. Or there is a plugin called Big5 that will handle it as well.

      --Barry

      Comment


      • #4
        I have an old Arduino sketch where use this to set the value of the device with Reference 141 to Off, which turns the device off::
        Code:
        http:/homeseer_IP/JSON?request=controldevicebylabel&ref=141&label=Of
        f
        The Reference ID is found in the Advanced tab when you click on a device from the Device Management screen.

        The web page displayed is
        Code:
        {"Name":"HomeSeer Devices","Version":"1.0","Devices":[{"ref":141,"name":"Halloween Display lamp posts","location":"","location2":"Utility","value":0.0,"status":"Off","device_type_string":"","last_change":"\/Date(1570506231447-0400)\/","relationship":0,"hide_from_view":false,"associated_devices":[],"device_type":{"Device_API":0,"Device_API_Description":"No API","Device_Type":0,"Device_Type_Description":"Type 0","Device_SubType":0,"Device_SubType_Description":""},"device_type_values":null,"UserNote":"","UserAccess":"Any","status_image":"/images/HomeSeer/status/off.gif","voice_command":"Halloween lamp posts","misc":6912,"interface_name":""}]}
        Changing the request to getstatus:
        Code:
        http://house.sumwalt.net/JSON?request=getstatus&ref=141
        returns this:
        Code:
        {"Name":"HomeSeer Devices","Version":"1.0","Devices":[{"ref":141,"name":"Halloween Display lamp posts","location":"","location2":"Utility","value":100.0,"status":"On","device_type_string":"","last_change":"\/Date(1570506737013-0400)\/","relationship":0,"hide_from_view":false,"associated_devices":[],"device_type":{"Device_API":0,"Device_API_Description":"No API","Device_Type":0,"Device_Type_Description":"Type 0","Device_SubType":0,"Device_SubType_Description":""},"device_type_values":null,"UserNote":"","UserAccess":"Any","status_image":"/images/HomeSeer/status/on.gif","voice_command":"Halloween lamp posts","misc":6912,"interface_name":""}]}

        The sketch was written before I used MQTT in any sketch and I do not recall the syntax but I do recall there was a syntax to run an Event as well. There are a few threads in the forum about using Post and Get, though, so a search should be helpful. Here is a starting point. I hope this helps at least a little.

        Karl S
        Click image for larger version

Name:	Capture.PNG
Views:	67
Size:	48.6 KB
ID:	1331481

        Comment


        • #5
          MQTT is the machine to machine protocol designed for this type of communication-status/control. There are multiple free HS MQTT plugins including mcsMQTT. MQTT is very common in the HA world including IOT devices that run cloudless. It does not require specialized URLs for every transaction as is the case with HTTP as the protocol itself handles the exchange.

          Comment

          Working...
          X