Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
hahn-th committed Jan 14, 2024
1 parent 03d70cf commit 203a987
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
17 changes: 17 additions & 0 deletions docs/source/api_introduction.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
API Introduction
****************

There are a few key classes for communication with the Rest API of HomematicIP.

| **Home:** is the most important object as it has the "overview" of the installation
| **Group:** a group of devices for a specific need. E.g. Heating group, security group, ...
| **MetaGroup:** a collection of groups. In the HomematicIP App this is called a "Room"
| **Device:** a hardware device e.g. shutter contact, heating thermostat, alarm siren, ...
| **FunctionChannel:** a channel of a device. For example DoorLockChannel for DoorLockDrive or **DimmerChannel**. A device has multiple channels - depending on its functions.
| For example:
| The device HmIP-DLD is represented by the class **DoorLockDrive** (or AsyncDoorLockDrive). The device has multiple channels.
| The base channel holds informations about the device and has the index 0.
| The device has also a channel called **DoorLockChannel** which contains the functions "set_lock_state" and "async_set_lock_state". These are functions to set the lock state of that device.
If you have dimmer with multiple I/Os, there are multiple channels. For each I/O a unique channel.
3 changes: 2 additions & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@ done via reverse engineering. Use at your own risk.

.. toctree::
:maxdepth: 2
:caption: Introduction
:caption: Getting started

gettingstarted

.. toctree::
:maxdepth: 4
:caption: API Documentation

api_introduction
modules

Indices and tables
Expand Down
2 changes: 1 addition & 1 deletion src/homematicip/base/functionalChannels.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from typing import Iterable
import json
from typing import Iterable

from homematicip.base.enums import *
from homematicip.base.HomeMaticIPObject import HomeMaticIPObject
Expand Down

0 comments on commit 203a987

Please sign in to comment.