aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorJan200101 <sentrycraft123@gmail.com>2019-11-05 12:24:58 +0100
committerJan200101 <sentrycraft123@gmail.com>2019-11-05 12:24:58 +0100
commit3f004000e56a72668b4298c4d6247ad189557623 (patch)
treeb2eb96a7bd0bb82598a41f5ca0a32f6c9ed1348c /examples
parent81c64c21579eeab5c39d2d083cb5c6a771fc8c69 (diff)
downloadShellyPy-3f004000e56a72668b4298c4d6247ad189557623.tar.gz
ShellyPy-3f004000e56a72668b4298c4d6247ad189557623.zip
remove malformed IP exception, update comments and example
a domain or IPv6 IP could not be used before this
Diffstat (limited to 'examples')
-rw-r--r--examples/toggle_lights.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/toggle_lights.py b/examples/toggle_lights.py
index 36c18e9..a2e10a5 100644
--- a/examples/toggle_lights.py
+++ b/examples/toggle_lights.py
@@ -6,4 +6,5 @@ device = ShellyPy.Shelly("192.168.0.5")
device.relay(0, turn=True) # turn the relay at index 0 on
device.relay(0, turn=False) # same as bove but turn it off
-# Shelly 1 devices only have 1 relay
+device.relay(0, turn=True, delay=3) # turn the relay 0 on for 3 seconds then off
+# most shelly devices only have 1 or 2 relays