Skip to content

Commit 18d70bc

Browse files
committed
Add scene usage.
1 parent 5d15901 commit 18d70bc

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,17 @@ remote.command('low_speed')
7979
# To send custom commands,
8080
remote.command('MyCustomCommand', customize=True)
8181
```
82+
83+
### Scenes
84+
```python
85+
# To list all infra red remotes
86+
scenes = switchbot.scenes()
87+
for scene in scenes:
88+
print(scene)
89+
90+
# If you already know a remote id:
91+
scene = switchbot.scene(id='')
92+
93+
# To execute scene
94+
scene.execute()
95+
```

0 commit comments

Comments
 (0)