From 2a85e14bd3d18d41ef28c0028500e5a3552d902f Mon Sep 17 00:00:00 2001 From: Giel Janssens Date: Tue, 7 Dec 2021 16:15:07 +0100 Subject: [PATCH] Update Readme.md --- arpspoof/Readme.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arpspoof/Readme.md b/arpspoof/Readme.md index 6d0adabdf..7c9ab83f2 100644 --- a/arpspoof/Readme.md +++ b/arpspoof/Readme.md @@ -42,6 +42,23 @@ ROUTER_IP: 127.0.0.1 #Required Router IP INTERFACE_NAME: name #Required Interface name. Autofilled if empty. ``` +## Home-Assistant configuration + +You can use a `command_line` switch to temporary disable a internet device in your network. + + +```yaml +- platform: command_line + switches: + iphone_internet: + friendly_name: "iPhone internet" + command_off: "/usr/bin/curl -X GET http://{HA-IP}:7022/disconnect?ip={iPhoneIP}" + command_on: "/usr/bin/curl -X GET http://{HA-IP}:7022/reconnect?ip={iPhoneIP}" + command_state: "/usr/bin/curl -X GET http://{HA-IP}:7022/status?ip={iPhoneIP}" + value_template: > + {{ value != "1" }} +``` + ## Support Create an issue on github