Skip to content

A simple script to detect active Wifi devices and switch items in openhab

Notifications You must be signed in to change notification settings

2relativ/Openwrt_openhab_presence_detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Openwrt_openhab_presence_detection

A simple script to detect active Wifi devices and switch items in openhab using the openhab rest api

The script was inspired by brianllong on this site: https://community.openhab.org/t/check-presence-based-on-openwrt-wifi-clients-on-line/3735/9

Place this script in /usr/bin on your openwrt router.
Make it executeable: chmod u+x
Change the mac address and the item names to your needs
On LUCI Webinterface under System-->Startup-->Local Startup add /usr/bin/presence_detection.sh & before the exit0
On Openhab create the same item

Now should yout openwrt router switch on and off the item on your openhab.
This means you can build rules that use this item.

About

A simple script to detect active Wifi devices and switch items in openhab

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages