Initial code provided by user MisterWil on the Home Assistant Forum. His initial code can be found at http://pastebin.com/qVszax1t.
Place the myq.py file in the /path/to/homeassistant_config/custom_components/cover/
Note: "/path/to/homeassistant_config" should be the path to where your configuration.yaml file is.
In your configuration.yaml file use an entry similar to:
cover:
- platform: myq
name: Garage Door
username: [email protected]
password: password
brand: chamberlain //liftmaster,chamberlain,craftmaster