python-qube-heatpump 1.4.4__py3-none-any.whl → 1.4.6__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.
@@ -217,11 +217,6 @@ class QubeClient:
217
217
  else:
218
218
  count = 1
219
219
 
220
- _LOGGER.debug(
221
- "read_entity: key=%s addr=%s input_type=%s data_type=%s count=%s",
222
- entity.key, entity.address, entity.input_type, data_type_str, count
223
- )
224
-
225
220
  try:
226
221
  # Read based on input type (use string comparison for safety)
227
222
  input_type_str = entity.input_type.value if entity.input_type else None
@@ -260,19 +255,11 @@ class QubeClient:
260
255
  regs = result.registers
261
256
  val: float | int = 0
262
257
 
263
- _LOGGER.debug(
264
- "read_entity: key=%s raw_regs=%s", entity.key, regs
265
- )
266
-
267
258
  # Decode based on data type (use string comparison for safety)
268
259
  # Qube uses big endian word order (ABCD): regs[0]=MSW, regs[1]=LSW
269
260
  if data_type_str == "float32":
270
261
  int_val = (regs[0] << 16) | regs[1]
271
262
  val = struct.unpack(">f", struct.pack(">I", int_val))[0]
272
- _LOGGER.debug(
273
- "read_entity: key=%s float32 int_val=%s decoded=%s",
274
- entity.key, int_val, val
275
- )
276
263
  elif data_type_str == "int16":
277
264
  val = regs[0]
278
265
  if val > 32767:
@@ -294,11 +281,6 @@ class QubeClient:
294
281
  if entity.offset is not None:
295
282
  val = val + entity.offset
296
283
 
297
- _LOGGER.debug(
298
- "read_entity: key=%s final_value=%s (scale=%s, offset=%s)",
299
- entity.key, val, entity.scale, entity.offset
300
- )
301
-
302
284
  return val
303
285
 
304
286
  except Exception as e:
@@ -122,7 +122,7 @@ _SENSOR_DEFS: tuple[EntityDef, ...] = (
122
122
  data_type=DataType.FLOAT32,
123
123
  platform=Platform.SENSOR,
124
124
  unit="%",
125
- scale=-1.0,
125
+ scale=-100.0,
126
126
  offset=100.0,
127
127
  ),
128
128
  EntityDef(
@@ -133,7 +133,7 @@ _SENSOR_DEFS: tuple[EntityDef, ...] = (
133
133
  data_type=DataType.FLOAT32,
134
134
  platform=Platform.SENSOR,
135
135
  unit="%",
136
- scale=-1.0,
136
+ scale=-100.0,
137
137
  offset=100.0,
138
138
  ),
139
139
  EntityDef(
@@ -144,6 +144,7 @@ _SENSOR_DEFS: tuple[EntityDef, ...] = (
144
144
  data_type=DataType.FLOAT32,
145
145
  platform=Platform.SENSOR,
146
146
  unit="%",
147
+ scale=100.0,
147
148
  ),
148
149
  EntityDef(
149
150
  key="dhw_regreq",
@@ -153,6 +154,7 @@ _SENSOR_DEFS: tuple[EntityDef, ...] = (
153
154
  data_type=DataType.FLOAT32,
154
155
  platform=Platform.SENSOR,
155
156
  unit="%",
157
+ scale=100.0,
156
158
  ),
157
159
  EntityDef(
158
160
  key="comppwrreq",
@@ -162,6 +164,7 @@ _SENSOR_DEFS: tuple[EntityDef, ...] = (
162
164
  data_type=DataType.FLOAT32,
163
165
  platform=Platform.SENSOR,
164
166
  unit="%",
167
+ scale=100.0,
165
168
  ),
166
169
  EntityDef(
167
170
  key="flow",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-qube-heatpump
3
- Version: 1.4.4
3
+ Version: 1.4.6
4
4
  Summary: Async Modbus client for Qube Heat Pumps
5
5
  Project-URL: Homepage, https://github.com/MattieGit/python-qube-heatpump
6
6
  Project-URL: Bug Tracker, https://github.com/MattieGit/python-qube-heatpump/issues
@@ -1,14 +1,14 @@
1
1
  python_qube_heatpump/__init__.py,sha256=VnHFpnpnRzpxmNPAGM29FQkrcPcBAaIniWjHu68-7WA,669
2
- python_qube_heatpump/client.py,sha256=PYI62fwMg9nIUo4JpbXCfhRPGZSWYd2PimlVcI1-2dk,17344
2
+ python_qube_heatpump/client.py,sha256=BMkUMa08hUOqtGw96rGv_mhdXC29U55dwxLrGL72StU,16695
3
3
  python_qube_heatpump/const.py,sha256=oAwKCIpmXPh5dRwX1dhdmGTJZKMlTVDnspUqAgYGZk0,4651
4
4
  python_qube_heatpump/models.py,sha256=vbJdY93JkQ6ea30qhGjuCknUxRJqTiz0mTjPsb2r4xk,1841
5
5
  python_qube_heatpump/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
6
  python_qube_heatpump/entities/__init__.py,sha256=rGEqLY-KcsIlmEaM7LbriDMEqedn7NLA4sgKDI6sYM8,342
7
7
  python_qube_heatpump/entities/base.py,sha256=5itTSm6cxklHsPr1qz3UWmr1kYBeCVOAugk182ybf3s,1867
8
8
  python_qube_heatpump/entities/binary_sensors.py,sha256=lsYC0MEHjJ7JmJUgYzdHndkrZ1Ekxz4j9HqYDMEE_IA,7649
9
- python_qube_heatpump/entities/sensors.py,sha256=Lros4QS1xzapR26n40GeAUDyiBipKGPuHyWDUbzgIiw,13176
9
+ python_qube_heatpump/entities/sensors.py,sha256=EscpYNE1gfStw4LmiiAJtWaMGKG6QAyloHGe_MvW_jY,13243
10
10
  python_qube_heatpump/entities/switches.py,sha256=MAaK-63dgVZEm9Ch_CW7umYM_mPqMoPYl8i0ZpZIaYE,1676
11
- python_qube_heatpump-1.4.4.dist-info/METADATA,sha256=_L2vi_wKTyqg7KY79uz0cA0QI3QjiVOa_LKn8B0UXgA,951
12
- python_qube_heatpump-1.4.4.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
13
- python_qube_heatpump-1.4.4.dist-info/licenses/LICENSE,sha256=qpuQXN7QwpILG9GYcmqrd3Ax5CxBZUBoT295xTgKnOM,1062
14
- python_qube_heatpump-1.4.4.dist-info/RECORD,,
11
+ python_qube_heatpump-1.4.6.dist-info/METADATA,sha256=RW25bct2K71Zg8fNP7eNLBEIIC-Jdqztyt9iqnlzNiU,951
12
+ python_qube_heatpump-1.4.6.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
13
+ python_qube_heatpump-1.4.6.dist-info/licenses/LICENSE,sha256=qpuQXN7QwpILG9GYcmqrd3Ax5CxBZUBoT295xTgKnOM,1062
14
+ python_qube_heatpump-1.4.6.dist-info/RECORD,,