معرفی شرکت ها


SmartHab-0.9


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

This package allows controlling devices in a SmartHab-powered home.
ویژگی مقدار
سیستم عامل OS Independent
نام فایل SmartHab-0.9
نام SmartHab
نسخه کتابخانه 0.9
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Baptiste Candellier
ایمیل نویسنده outadoc@gmail.com
آدرس صفحه اصلی https://gitlab.com/outadoc/python-smarthab/
آدرس اینترنتی https://pypi.org/project/SmartHab/
مجوز -
# python-smarthab This Python library allows you to programmatically control your SmartHab-powered home. [![PyPI version](https://badge.fury.io/py/SmartHab.svg)](https://badge.fury.io/py/SmartHab) ## What is SmartHab? [SmartHab](https://www.smarthab.fr/) is a company that installs their home automation solution in new buildings, and offers a mobile application for home owners or renters to control their home over the Internet. Mobile App → API → SmartHab box (1 at each floor) → Z-Wave devices ## What does this library do? `python-smarthab` connects to the SmartHab API and allows you to automate your home without having to use the mobile application. It might prove particularly useful if integrated into a home automation box or software. Feel free to use it, it's under the GPL! ## How do I use it? ```bash pip3 install SmartHab ``` ```python import pysmarthab hub = pysmarthab.SmartHab() # Login await hub.async_login('smarthab.user@example.com', '1234567') if not hub.is_logged_in: # Bad credentials :( raise SystemExit # Get the list of available devices devices = await hub.async_get_device_list() # Close all roller shutters and turn on all lights for device in devices: if isinstance(device, pysmarthab.Light): device.async_turn_on() if isinstance(device, pysmarthab.Shutter): device.async_close() ``` If you prefer to use it synchronously: ```python import pysmarthab hub = pysmarthab.SmartHab() # Login hub.login('smarthab.user@example.com', '1234567') if not hub.is_logged_in: # Bad credentials :( raise SystemExit # Get the list of available devices devices = hub.get_device_list() # Close all roller shutters and turn on all lights for device in devices: if isinstance(device, pysmarthab.Light): device.turn_on() if isinstance(device, pysmarthab.Shutter): device.close() ```


نحوه نصب


نصب پکیج whl SmartHab-0.9:

    pip install SmartHab-0.9.whl


نصب پکیج tar.gz SmartHab-0.9:

    pip install SmartHab-0.9.tar.gz