SmartThings Edge driver for http control of presence device
Example use case: phone tracking or ping device tracking
edgebridge server running on a local computer
Available for install to SmartThings hub via my shared projects channel.
Once installed to hub, use moble app to do a Scan for nearby devices. A LAN Presence device will be created and found in the 'No room assigned' room.
Additional devices can be created by tapping the 'Create Another Device' button on the device Controls screen.
- LAN Device Name - a unique device name; simple/short text only - no special characters or blanks
- LAN Device Address - IP and port address of the application that will be sending updates. port is optional (e.g. '192.168.1.104' or '192.168.1.104:50001')
- Bridge Address - IP and port (mandatory) address of the edgebridge server (e.g. '192.168.1.140:8088')
Example http message sent by an application:
POST http://192.168.1.140:8088/devname/presence/present
POST http://192.168.1.140:8088/devname/presence/notpresent
where:
- HTTP method must be POST
- '192.168.1.140:8088' is address of edgebridge server
- 'devname' is device name as configured in LAN Device Name in the SmartThings device Settings
This message will be forwarded to the Edge driver on your hub, as long as the Edge driver has successfully registered with the edgebridge.