juham-automation 0.0.28__py3-none-any.whl → 0.0.29__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- juham_automation/automation/heatingoptimizer.py +4 -6
- {juham_automation-0.0.28.dist-info → juham_automation-0.0.29.dist-info}/METADATA +1 -1
- {juham_automation-0.0.28.dist-info → juham_automation-0.0.29.dist-info}/RECORD +7 -7
- {juham_automation-0.0.28.dist-info → juham_automation-0.0.29.dist-info}/WHEEL +0 -0
- {juham_automation-0.0.28.dist-info → juham_automation-0.0.29.dist-info}/entry_points.txt +0 -0
- {juham_automation-0.0.28.dist-info → juham_automation-0.0.29.dist-info}/licenses/LICENSE.rst +0 -0
- {juham_automation-0.0.28.dist-info → juham_automation-0.0.29.dist-info}/top_level.txt +0 -0
@@ -88,10 +88,9 @@ class HeatingOptimizer(Juham):
|
|
88
88
|
self.topic_forecast = self.make_topic_name("forecast")
|
89
89
|
self.topic_temperature = self.make_topic_name(temperature_sensor)
|
90
90
|
self.topic_powerplan = self.make_topic_name("powerplan")
|
91
|
-
self.
|
92
|
-
self.topic_in_net_energy_balance = self.make_topic_name("net_energy_balance")
|
91
|
+
self.topic_in_energybalance = self.make_topic_name("energybalance")
|
93
92
|
self.topic_out_energybalance = self.make_topic_name("energybalance_consumers")
|
94
|
-
self.topic_out_power = self.make_topic_name("power")
|
93
|
+
self.topic_out_power = self.make_topic_name("power")
|
95
94
|
|
96
95
|
self.current_temperature = 100
|
97
96
|
self.current_heating_plan = 0
|
@@ -111,8 +110,7 @@ class HeatingOptimizer(Juham):
|
|
111
110
|
self.subscribe(self.topic_spot)
|
112
111
|
self.subscribe(self.topic_forecast)
|
113
112
|
self.subscribe(self.topic_temperature)
|
114
|
-
self.subscribe(self.
|
115
|
-
self.subscribe(self.topic_in_net_energy_balance)
|
113
|
+
self.subscribe(self.topic_in_energybalance)
|
116
114
|
self.register_as_consumer()
|
117
115
|
|
118
116
|
def register_as_consumer(self) -> None:
|
@@ -226,7 +224,7 @@ class HeatingOptimizer(Juham):
|
|
226
224
|
elif msg.topic == self.topic_temperature:
|
227
225
|
m = json.loads(msg.payload.decode())
|
228
226
|
self.current_temperature = m["temperature"]
|
229
|
-
elif msg.topic == self.
|
227
|
+
elif msg.topic == self.topic_in_energybalance:
|
230
228
|
decoded_payload = msg.payload.decode()
|
231
229
|
m = json.loads(decoded_payload)
|
232
230
|
self.on_netenergy_balance(m)
|
@@ -4,7 +4,7 @@ juham_automation/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
4
4
|
juham_automation/automation/__init__.py,sha256=uxkIrcRSp1cFikn-oBRtQ8XiT9cSf7xjm3CS1RN7lAQ,522
|
5
5
|
juham_automation/automation/energybalancer.py,sha256=V_2t6hkRWf0--o9njfa8G-AtHPYcPVNY2rDrO5WRqsc,10698
|
6
6
|
juham_automation/automation/energycostcalculator.py,sha256=v30wxRpuY2gGBSMJifrFRTjsRU9t-iCiq33Vds7s3O8,10877
|
7
|
-
juham_automation/automation/heatingoptimizer.py,sha256=
|
7
|
+
juham_automation/automation/heatingoptimizer.py,sha256=UYvffqQDk96oEvNBmu7R0W3Qq6kMmfW92Xzejlr7Le8,21481
|
8
8
|
juham_automation/automation/powermeter_simulator.py,sha256=3WZcjByRTdqnC77l7LjP-TEjmZ8XBEO4hClYsrjxmBE,4549
|
9
9
|
juham_automation/automation/spothintafi.py,sha256=cZbi7w2fVweHX_fh1r5MTjGdesX9wDQta2mfVjtiwvw,4331
|
10
10
|
juham_automation/automation/watercirculator.py,sha256=a8meMNaONbHcIH3y0vP0UulJc1-gZiLZpw7H8kAOreY,6410
|
@@ -17,9 +17,9 @@ juham_automation/ts/log_ts.py,sha256=XsNaazuPmRUZLUqxU0DZae_frtT6kAFcXJTc598CtOA
|
|
17
17
|
juham_automation/ts/power_ts.py,sha256=e7bSeZjitY4C_gLup9L0NjvU_WnQsl3ayDhVShj32KY,1399
|
18
18
|
juham_automation/ts/powermeter_ts.py,sha256=gXzfK2S4SzrQ9GqM0tsLaV6z_vYmTkBatTcaivASSXs,2188
|
19
19
|
juham_automation/ts/powerplan_ts.py,sha256=LZeE7TnzPCDaugggKlaV-K48lDwwnC1ZNum50JYAWaY,1482
|
20
|
-
juham_automation-0.0.
|
21
|
-
juham_automation-0.0.
|
22
|
-
juham_automation-0.0.
|
23
|
-
juham_automation-0.0.
|
24
|
-
juham_automation-0.0.
|
25
|
-
juham_automation-0.0.
|
20
|
+
juham_automation-0.0.29.dist-info/licenses/LICENSE.rst,sha256=QVHD5V5_HSys2PdPdig_xKggDj8cGX33ALKqRsYyjtI,1089
|
21
|
+
juham_automation-0.0.29.dist-info/METADATA,sha256=oowx8jK8iXbNZL2EDQJ7VfNZNEdO5Z0TXyn20jhBgg8,6837
|
22
|
+
juham_automation-0.0.29.dist-info/WHEEL,sha256=lTU6B6eIfYoiQJTZNc-fyaR6BpL6ehTzU3xGYxn2n8k,91
|
23
|
+
juham_automation-0.0.29.dist-info/entry_points.txt,sha256=h-KzuKjmGPd4_iX_oiGvxx4IEc97dVbGGlhdh5ctbpI,605
|
24
|
+
juham_automation-0.0.29.dist-info/top_level.txt,sha256=jfohvtocvX_gfT21AhJk7Iay5ZiQsS3HzrDjF7S4Qp0,17
|
25
|
+
juham_automation-0.0.29.dist-info/RECORD,,
|
File without changes
|
File without changes
|
{juham_automation-0.0.28.dist-info → juham_automation-0.0.29.dist-info}/licenses/LICENSE.rst
RENAMED
File without changes
|
File without changes
|