diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/toggle_lights.py | 3 |
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 |