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.
@@ -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.topic_in_powerconsumption = self.make_topic_name("powerconsumption")
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") # controls the relay
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.topic_in_powerconsumption)
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.topic_in_net_energy_balance:
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)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: juham-automation
3
- Version: 0.0.28
3
+ Version: 0.0.29
4
4
  Summary: Juha's Ultimate Home Automation Masterpiece
5
5
  Author-email: J Meskanen <juham.api@gmail.com>
6
6
  Maintainer-email: "J. Meskanen" <juham.api@gmail.com>
@@ -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=f8T7KOa4Chgw2jfyxOkpvxTBfPZxc6lMQZYV4xopWyw,21664
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.28.dist-info/licenses/LICENSE.rst,sha256=QVHD5V5_HSys2PdPdig_xKggDj8cGX33ALKqRsYyjtI,1089
21
- juham_automation-0.0.28.dist-info/METADATA,sha256=sPrwas2n-HhRjXduTKr5TQwI4F8R-GoMj5gHDEyqd2o,6837
22
- juham_automation-0.0.28.dist-info/WHEEL,sha256=lTU6B6eIfYoiQJTZNc-fyaR6BpL6ehTzU3xGYxn2n8k,91
23
- juham_automation-0.0.28.dist-info/entry_points.txt,sha256=h-KzuKjmGPd4_iX_oiGvxx4IEc97dVbGGlhdh5ctbpI,605
24
- juham_automation-0.0.28.dist-info/top_level.txt,sha256=jfohvtocvX_gfT21AhJk7Iay5ZiQsS3HzrDjF7S4Qp0,17
25
- juham_automation-0.0.28.dist-info/RECORD,,
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,,