It was developed for the purpose of Smart Things integration.
import asyncio
from sHome import sHomeSession, Endpoint
def light(number:str, on_off: bool):
return Endpoint(
"GET",
"mhps/auth/device/light/{number}/power/{status}",
path_params={"number": number, "status": str(int(on_off))},
)
async def main():
client = await sHomeSession.login("id", "password")
await client.request(light("01", True))
asyncio.run(main())