Skip to content

Commit

Permalink
latest before myuplink
Browse files Browse the repository at this point in the history
  • Loading branch information
magnuselden authored and magnuselden committed Jan 12, 2024
1 parent 6a31d64 commit 233dddf
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
18 changes: 9 additions & 9 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,15 @@ Otherwise you may:
### Configuration
_There are a few options when configuring PeaqHvac:_

| Name | Description |
|------|-----------------------------------------------------------------------------------------------------------------------------------------------------|
| `Hvac systemid` | The provided system-id from your vendor. For Nibe F-series this is often a five digit number. |
| `Temp sensors indoors` | Your indoor temp sensor(s). Added as `sensor.`my_sensor. Comma-separated if many. |
| `Temp sensors outdoors` | Your outdoor temp sensor(s). Added as `sensor.`my_sensor. Comma-separated if many. |
| `Stop heating temp` | The outside temp where you never want Peaqhvac to start heating |
| `Very cold temp` | A very cold outside temp in your area, where Peaqhvac should start acting differently to save energy |
| `Nonhours waterboost` | A selectable list of hours where you never wish to have a water-boost conducted _(not operational)_ |
| `Low DM-value` | A number somewhere in between your Compressor-start and Electric addon start. Lower than this and Peaqhvac will take extra steps to conserve energy |
| Name | Description |
|------|-------------------------------------------------------------------------------------------------------------------------------------------------------|
| `Hvac systemid` | The provided system-id from your vendor. For Nibe F-series this is often a five digit number. |
| `Temp sensors indoors` | Your indoor temp sensor(s). Added as `sensor.`my_sensor. Comma-separated if many. |
| `Temp sensors outdoors` | Your outdoor temp sensor(s). Added as `sensor.`my_sensor. Comma-separated if many. |
| `Stop heating temp` | The outside temp where you never want Peaqhvac to start heating |
| `Very cold temp` | A very cold outside temp in your area, where Peaqhvac should start acting differently to save energy. _Not recommended to put value below -10C here._ |
| `Nonhours waterboost` | A selectable list of hours where you never wish to have a water-boost conducted _(not operational)_ |
| `Low DM-value` | A number somewhere in between your Compressor-start and Electric addon start. Lower than this and Peaqhvac will take extra steps to conserve energy |



Expand Down
2 changes: 1 addition & 1 deletion custom_components/peaqhvac/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"iot_class": "calculated",
"issue_tracker": "https://github.com/elden1337/hass-peaqhvac/issues",
"requirements": [
"peaqevcore==19.6.3"
"peaqevcore==19.6.6"
],
"version": "2.4.5"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,4 +166,4 @@ def set_now_dt(self, now_dt=None) -> None:
self._now_dt = datetime.now() if now_dt is None else now_dt

def set_floating_mean(self, now_dt=None) -> None:
self.floating_mean = mean([v for k,v in self.price_dict.items() if k >=self.now_dt])
self.floating_mean = mean([v for k,v in self.price_dict.items() if k >=self.now_dt])*0.9
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def _check_intersecting(self, next_dt: datetime, last_known: datetime, current_d
def _get_best_match(self, non_hours: list[datetime], demand_hours: list[datetime], current_dm) -> datetime | None:
"""even if demand hour intersect we cannot boost more often than every 2 hours if dm are low"""
try:
if current_dm and current_dm < -500:
if current_dm and current_dm < -100:
first_demand = min([d for d in demand_hours if d > self.model.latest_boost + timedelta(hours=2)])
else:
first_demand = min([d for d in demand_hours if d > self.model.latest_boost])
Expand Down Expand Up @@ -195,7 +195,7 @@ def _calculate_next_start(self, delay_dt=None, current_dm=None) -> tuple[datetim
[
check_dt in self.model.non_hours,
(check_dt + timedelta(hours=1)) in self.model.non_hours,
current_dm < -600
current_dm < -800
]
):
"""This hour is cheap enough to start and it is cold"""
Expand Down

0 comments on commit 233dddf

Please sign in to comment.