Skip to content

Commit cdb44b7

Browse files
authored
Add documentation for new wpm api (#6)
1 parent f548808 commit cdb44b7

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,23 @@ The package is available in the [Python Package Index](https://pypi.python.org/)
3131
```
3232

3333
## Example usage of the module
34-
The sample below shows how to use this Python module.
34+
The sample below shows how to use this Python module (api for wpm heat pumps).
35+
36+
```python
37+
from pystiebeleltron.wpm import WpmStiebelEltronAPI, WpmSystemParametersRegisters
38+
39+
api = WpmStiebelEltronAPI('IP_ADDRESS_ISG')
40+
await api.connect()
41+
42+
await api.async_update()
43+
44+
print("water comfort target temperature: {}".format(api.get_register_value(WpmSystemParametersRegisters.COMFORT_TEMPERATURE)))
45+
46+
await api.close()
47+
```
48+
49+
## Example usage of the module
50+
The sample below shows how to use this Python module (old api for lwz heat pumps).
3551

3652
```python
3753
from pystiebeleltron import pystiebeleltron as pyse

0 commit comments

Comments
 (0)