Skip to content

SaidBySolo/sHome

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sHome

It was developed for the purpose of Smart Things integration.

Usage

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())

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages