Skip to content

Commit 6e9c837

Browse files
authored
Initial Commit
1 parent 0cfe6ab commit 6e9c837

File tree

1 file changed

+42
-1
lines changed

1 file changed

+42
-1
lines changed

README.md

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,42 @@
1-
# pymyq
1+
# Introduction
2+
3+
This is a python module aiming to interact with the Chamberlain MyQ API.
4+
5+
Code is licensed under the MIT license.
6+
7+
Getting Started
8+
===============
9+
10+
# Usage
11+
12+
```python
13+
from pymyq import MyQAPI as pymyq
14+
15+
myq = pymyq(username, password, brand)
16+
```
17+
18+
# Methods
19+
20+
def is_supported_brand(self):
21+
"""Return true/false based on supported brands list and input."""
22+
23+
def is_login_valid(self):
24+
"""Return true/false based on successful authentication."""
25+
26+
def get_devices(self):
27+
"""Return devices from API"""
28+
29+
def get_garage_doors(self):
30+
"""Parse devices data and extract garage doors. Return garage doors."""
31+
32+
def get_status(self, device_id):
33+
"""Return current door status(open/closed)"""
34+
35+
def close_device(self, device_id):
36+
"""Send request to close the door."""
37+
38+
def open_device(self, device_id):
39+
"""Send request to open the door."""
40+
41+
def set_state(self, device_id, state):
42+
"""Send request for request door state change."""

0 commit comments

Comments
 (0)