From 3f004000e56a72668b4298c4d6247ad189557623 Mon Sep 17 00:00:00 2001 From: Jan200101 Date: Tue, 5 Nov 2019 12:24:58 +0100 Subject: remove malformed IP exception, update comments and example a domain or IPv6 IP could not be used before this --- examples/toggle_lights.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'examples') 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 -- cgit v1.2.3