I found a beautiful post about disabling internet and I really like the idea being able to control how long the children stay on the internet. So i took it futher, wrote a component that creates a switch based on IP or MAC address. If happens that the device is not connected to the network, it will wait until is and than starts disabling internet.
All the “magic” behind is done by ARP spoofing, this is technically a kind of an attack but is done in your network, which is fine but you should read something about it. I was really suprised how it works that there is no easy defence and is quite easy to set up and since than I do not connect to public Wifi hotspots.
You should follow the
arpspoof.markdown in order to install.
Here is an example of config
arpspoof: interface: eth0 scan_interval: 40 # in seconds, optional; how often check for online devices, default is 30 sec switch: - platform: arpspoof devices: test: friendly_name: my name # optional address: 192.168.1.105 icon: 'mdi:laptop' # optional test2: friendly_name: my other name # optional address: 'AB:CD:EF:12:34:56' icon: 'mdi:cellphone' # optional