Remotsy is an infrared blaster device, is cloud controlled, this a Python library to control the Remotsy device via Rest API.
$ pip install remotsylib3
from remotsylib3.api_async import (API, run_remotsy_api_call)
if __name__ == "__main__":
client = API()
#Do the login and get the token
token = run_remotsy_api_call(client.login(args.username, args.password))
#Get the list of the controls
lst_ctl = run_remotsy_api_call(client.list_controls())
for ctl in lst_ctl:
print("id %s Name %s" % (ctl["_id"], ctl['name']))
You can use your remotsy username and password, but for security is recomended to generate a application password, logon in https://home.remotsy.com and use the option App Passwords.
The API documentation and links to additional resources are available at https://www.remotsy.com/help