What's new

Action when Specified device connects to wifi

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

deursen

New Around Here
Hi i have an Vera home automation controller.
What i would like to do is trigger certain events when i enter or leave my house.
Is there a way to trigger a cron job or something else when for example my phone gets connected to wifi?
The Vera home controller can be controled by specific http 'commands'

When not possible on the router. Is there a way to get the names of connected devices with a certain router page? I do not mean the graphical one. Maybe i am able to write a script to filter out the device name i have.


thanks for everyone that can help me
 
Hi i have an Vera home automation controller.
What i would like to do is trigger certain events when i enter or leave my house.
Is there a way to trigger a cron job or something else when for example my phone gets connected to wifi?
The Vera home controller can be controled by specific http 'commands'

When not possible on the router. Is there a way to get the names of connected devices with a certain router page? I do not mean the graphical one. Maybe i am able to write a script to filter out the device name i have.


thanks for everyone that can help me

I don't know all the technical details...but Merlins software has a jffs script called dhcp-event which passes the event name as a parameter , so , I'm wondering if something could be scripted to take advantage of that.

DHCPDISCOVER would mean a device has connected to the router.

Apr 5 11:13:18 dnsmasq-dhcp[528]: DHCPDISCOVER(br0) <MAC address>

DHCPOFFER shows the IP address being offered for that device.

Apr 5 11:13:18 dnsmasq-dhcp[528]: DHCPOFFER(br0) 192.168.1.139 <MAC address>


Maybe someone more in the know might be able to suggest something around those events in that script.
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top