Skip to content

Commit

Permalink
Improvements for ha integration (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
LavermanJJ committed Nov 1, 2022
1 parent 590a5ff commit 0b41a7d
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 379 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ solarfocus.connect()
solarfocus.update()

# Print the values
print(solarfocus.buffer)
print(solarfocus.heating_circuit)
print(solarfocus.buffers[0])
print(solarfocus.heating_circuit[0])
```

### Handling multiple components e.g. heating circuits
Expand Down
8 changes: 4 additions & 4 deletions example.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from pysolarfocus import SolarfocusAPI, PORT,Systems
from pysolarfocus import SolarfocusAPI,Systems

# Create the Solarfocus API client
# TODO: Adapt IP-Address
Expand All @@ -8,11 +8,11 @@
solarfocus.update()

# Print the values
print(solarfocus.heating_circuit)
print(solarfocus.heating_circuits[0])
print("\n")
print(solarfocus.boiler)
print(solarfocus.boilers[0])
print("\n")
print(solarfocus.buffer)
print(solarfocus.buffers[0])
print("\n")
print(solarfocus.heatpump)
print("\n")
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pysolarfocus"
version = "3.0.0"
version = "3.1.0"
description = "Unofficial, local Solarfocus client"
authors = ["Jeroen Laverman <jjlaverman@web.de>"]
license = "Apache-2.0"
Expand Down
Loading

0 comments on commit 0b41a7d

Please sign in to comment.