I will not be working on this anymore. SEE Ryobi_Garage for a custom Home Assistant component.
Library to interface with Ryobi GDO Websockets in Python.
import auth as a
import ryobigdo
creds = {
"username": RYOBI_USERNAME, #Username from Ryobi GDO App
"password": RYOBI_PASSWORD, #Password from Ryobi GDO App
}
auth = a.Auth(creds) #Manages login, creds, and API Key
auth.login() #Checks creds and gets API Key for use in Websocket.
print(http_api.get_devices(a).json()) #Choose DEVICE_ID wanted and give to RyobiGDO Obj.
DEVICE_ID = "" #From http_api.get_devices()
gdo = ryobigdo.RyobiGDO(DEVICE_ID, auth)
gdo.connect_ws()