hankbot / lanpresence

SmartThings Edge driver for http control of presence device

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lanpresence

SmartThings Edge driver for http control of presence device

Example use case: phone tracking or ping device tracking

Dependency

edgebridge server running on a local computer

Installation

Available for install to SmartThings hub via my shared projects channel.

Usage

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.

Device Settings

  • 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')

Application message format

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.

About

SmartThings Edge driver for http control of presence device

License:Apache License 2.0


Languages

Language:Lua 100.0%