I have 3 different zones
[HS_User]:[HS_User_pwd]@[HS_IP]:[port]/JSON?request=runevent&id=[HD_Event_ID]
Alternatively, instead of executing different events, I could set a virtual device to value 1, 2, or 3, depending which type of motion happened. It makes the HS part a bit more complicated but it's completely workable. In this case the web request would look like this:
[HS_User]:[HS_User_pwd]@[HS_IP]:[port]/JSON?request=controldevicebyvalue&ref=[Virtual_Device_ID]&value=[1, 2, 3]
But how can I construct that above URL, i.e. how can I make BI insert the value 1, 2, or 3 depending on what motion happened? Note, I believe HomeSeer cannot handle the values sent over in "Post/payload".
- Zone A covers the entire image
- Zone B covers a part of the stairs in the picture
- Zone C covers the other parts of the stairs
- Event 1: Motion in A
- Event 2: Motion B > C
- Event 3: Motion C > B
[HS_User]:[HS_User_pwd]@[HS_IP]:[port]/JSON?request=runevent&id=[HD_Event_ID]
Alternatively, instead of executing different events, I could set a virtual device to value 1, 2, or 3, depending which type of motion happened. It makes the HS part a bit more complicated but it's completely workable. In this case the web request would look like this:
[HS_User]:[HS_User_pwd]@[HS_IP]:[port]/JSON?request=controldevicebyvalue&ref=[Virtual_Device_ID]&value=[1, 2, 3]
But how can I construct that above URL, i.e. how can I make BI insert the value 1, 2, or 3 depending on what motion happened? Note, I believe HomeSeer cannot handle the values sent over in "Post/payload".