aioWiserHeatAPI 1.7.0__tar.gz → 1.7.2__tar.gz

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.
Files changed (62) hide show
  1. {aiowiserheatapi-1.7.0 → aiowiserheatapi-1.7.2}/PKG-INFO +6 -3
  2. {aiowiserheatapi-1.7.0 → aiowiserheatapi-1.7.2}/README.md +5 -2
  3. {aiowiserheatapi-1.7.0 → aiowiserheatapi-1.7.2}/aioWiserHeatAPI/__init__.py +1 -1
  4. {aiowiserheatapi-1.7.0 → aiowiserheatapi-1.7.2}/aioWiserHeatAPI/const.py +1 -0
  5. {aiowiserheatapi-1.7.0 → aiowiserheatapi-1.7.2}/aioWiserHeatAPI/wiserhub.py +13 -6
  6. {aiowiserheatapi-1.7.0 → aiowiserheatapi-1.7.2}/aioWiserHeatAPI.egg-info/PKG-INFO +6 -3
  7. {aiowiserheatapi-1.7.0 → aiowiserheatapi-1.7.2}/LICENSE +0 -0
  8. {aiowiserheatapi-1.7.0 → aiowiserheatapi-1.7.2}/aioWiserHeatAPI/automation.py +0 -0
  9. {aiowiserheatapi-1.7.0 → aiowiserheatapi-1.7.2}/aioWiserHeatAPI/binary_sensor.py +0 -0
  10. {aiowiserheatapi-1.7.0 → aiowiserheatapi-1.7.2}/aioWiserHeatAPI/boiler_interface.py +0 -0
  11. {aiowiserheatapi-1.7.0 → aiowiserheatapi-1.7.2}/aioWiserHeatAPI/button_panel.py +0 -0
  12. {aiowiserheatapi-1.7.0 → aiowiserheatapi-1.7.2}/aioWiserHeatAPI/cli.py +0 -0
  13. {aiowiserheatapi-1.7.0 → aiowiserheatapi-1.7.2}/aioWiserHeatAPI/devices.py +0 -0
  14. {aiowiserheatapi-1.7.0 → aiowiserheatapi-1.7.2}/aioWiserHeatAPI/discovery.py +0 -0
  15. {aiowiserheatapi-1.7.0 → aiowiserheatapi-1.7.2}/aioWiserHeatAPI/exceptions.py +0 -0
  16. {aiowiserheatapi-1.7.0 → aiowiserheatapi-1.7.2}/aioWiserHeatAPI/heating.py +0 -0
  17. {aiowiserheatapi-1.7.0 → aiowiserheatapi-1.7.2}/aioWiserHeatAPI/heating_actuator.py +0 -0
  18. {aiowiserheatapi-1.7.0 → aiowiserheatapi-1.7.2}/aioWiserHeatAPI/helpers/__init__.py +0 -0
  19. {aiowiserheatapi-1.7.0 → aiowiserheatapi-1.7.2}/aioWiserHeatAPI/helpers/automations.py +0 -0
  20. {aiowiserheatapi-1.7.0 → aiowiserheatapi-1.7.2}/aioWiserHeatAPI/helpers/battery.py +0 -0
  21. {aiowiserheatapi-1.7.0 → aiowiserheatapi-1.7.2}/aioWiserHeatAPI/helpers/capabilities.py +0 -0
  22. {aiowiserheatapi-1.7.0 → aiowiserheatapi-1.7.2}/aioWiserHeatAPI/helpers/cloud.py +0 -0
  23. {aiowiserheatapi-1.7.0 → aiowiserheatapi-1.7.2}/aioWiserHeatAPI/helpers/device.py +0 -0
  24. {aiowiserheatapi-1.7.0 → aiowiserheatapi-1.7.2}/aioWiserHeatAPI/helpers/equipment.py +0 -0
  25. {aiowiserheatapi-1.7.0 → aiowiserheatapi-1.7.2}/aioWiserHeatAPI/helpers/extra_config.py +0 -0
  26. {aiowiserheatapi-1.7.0 → aiowiserheatapi-1.7.2}/aioWiserHeatAPI/helpers/firmware.py +0 -0
  27. {aiowiserheatapi-1.7.0 → aiowiserheatapi-1.7.2}/aioWiserHeatAPI/helpers/gps.py +0 -0
  28. {aiowiserheatapi-1.7.0 → aiowiserheatapi-1.7.2}/aioWiserHeatAPI/helpers/misc.py +0 -0
  29. {aiowiserheatapi-1.7.0 → aiowiserheatapi-1.7.2}/aioWiserHeatAPI/helpers/network.py +0 -0
  30. {aiowiserheatapi-1.7.0 → aiowiserheatapi-1.7.2}/aioWiserHeatAPI/helpers/opentherm.py +0 -0
  31. {aiowiserheatapi-1.7.0 → aiowiserheatapi-1.7.2}/aioWiserHeatAPI/helpers/signal.py +0 -0
  32. {aiowiserheatapi-1.7.0 → aiowiserheatapi-1.7.2}/aioWiserHeatAPI/helpers/special_times.py +0 -0
  33. {aiowiserheatapi-1.7.0 → aiowiserheatapi-1.7.2}/aioWiserHeatAPI/helpers/status.py +0 -0
  34. {aiowiserheatapi-1.7.0 → aiowiserheatapi-1.7.2}/aioWiserHeatAPI/helpers/temp.py +0 -0
  35. {aiowiserheatapi-1.7.0 → aiowiserheatapi-1.7.2}/aioWiserHeatAPI/helpers/threshold.py +0 -0
  36. {aiowiserheatapi-1.7.0 → aiowiserheatapi-1.7.2}/aioWiserHeatAPI/helpers/uiconfiguration.py +0 -0
  37. {aiowiserheatapi-1.7.0 → aiowiserheatapi-1.7.2}/aioWiserHeatAPI/helpers/version.py +0 -0
  38. {aiowiserheatapi-1.7.0 → aiowiserheatapi-1.7.2}/aioWiserHeatAPI/helpers/zigbee.py +0 -0
  39. {aiowiserheatapi-1.7.0 → aiowiserheatapi-1.7.2}/aioWiserHeatAPI/hot_water.py +0 -0
  40. {aiowiserheatapi-1.7.0 → aiowiserheatapi-1.7.2}/aioWiserHeatAPI/light.py +0 -0
  41. {aiowiserheatapi-1.7.0 → aiowiserheatapi-1.7.2}/aioWiserHeatAPI/moments.py +0 -0
  42. {aiowiserheatapi-1.7.0 → aiowiserheatapi-1.7.2}/aioWiserHeatAPI/ptc.py +0 -0
  43. {aiowiserheatapi-1.7.0 → aiowiserheatapi-1.7.2}/aioWiserHeatAPI/pte.py +0 -0
  44. {aiowiserheatapi-1.7.0 → aiowiserheatapi-1.7.2}/aioWiserHeatAPI/refactor.py +0 -0
  45. {aiowiserheatapi-1.7.0 → aiowiserheatapi-1.7.2}/aioWiserHeatAPI/rest_controller.py +0 -0
  46. {aiowiserheatapi-1.7.0 → aiowiserheatapi-1.7.2}/aioWiserHeatAPI/room.py +0 -0
  47. {aiowiserheatapi-1.7.0 → aiowiserheatapi-1.7.2}/aioWiserHeatAPI/roomstat.py +0 -0
  48. {aiowiserheatapi-1.7.0 → aiowiserheatapi-1.7.2}/aioWiserHeatAPI/schedule.py +0 -0
  49. {aiowiserheatapi-1.7.0 → aiowiserheatapi-1.7.2}/aioWiserHeatAPI/shutter.py +0 -0
  50. {aiowiserheatapi-1.7.0 → aiowiserheatapi-1.7.2}/aioWiserHeatAPI/smartplug.py +0 -0
  51. {aiowiserheatapi-1.7.0 → aiowiserheatapi-1.7.2}/aioWiserHeatAPI/smartvalve.py +0 -0
  52. {aiowiserheatapi-1.7.0 → aiowiserheatapi-1.7.2}/aioWiserHeatAPI/smokealarm.py +0 -0
  53. {aiowiserheatapi-1.7.0 → aiowiserheatapi-1.7.2}/aioWiserHeatAPI/system.py +0 -0
  54. {aiowiserheatapi-1.7.0 → aiowiserheatapi-1.7.2}/aioWiserHeatAPI/temp_humidity.py +0 -0
  55. {aiowiserheatapi-1.7.0 → aiowiserheatapi-1.7.2}/aioWiserHeatAPI/ufh.py +0 -0
  56. {aiowiserheatapi-1.7.0 → aiowiserheatapi-1.7.2}/aioWiserHeatAPI.egg-info/SOURCES.txt +0 -0
  57. {aiowiserheatapi-1.7.0 → aiowiserheatapi-1.7.2}/aioWiserHeatAPI.egg-info/dependency_links.txt +0 -0
  58. {aiowiserheatapi-1.7.0 → aiowiserheatapi-1.7.2}/aioWiserHeatAPI.egg-info/entry_points.txt +0 -0
  59. {aiowiserheatapi-1.7.0 → aiowiserheatapi-1.7.2}/aioWiserHeatAPI.egg-info/requires.txt +0 -0
  60. {aiowiserheatapi-1.7.0 → aiowiserheatapi-1.7.2}/aioWiserHeatAPI.egg-info/top_level.txt +0 -0
  61. {aiowiserheatapi-1.7.0 → aiowiserheatapi-1.7.2}/setup.cfg +0 -0
  62. {aiowiserheatapi-1.7.0 → aiowiserheatapi-1.7.2}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aioWiserHeatAPI
3
- Version: 1.7.0
3
+ Version: 1.7.2
4
4
  Summary: An AsyncIO API for controlling the Drayton Wiser Heating system
5
5
  Home-page: https://github.com/msp1974/aioWiserHeatAPI
6
6
  Author: Mark Parker
@@ -28,7 +28,7 @@ Dynamic: requires-dist
28
28
  Dynamic: requires-python
29
29
  Dynamic: summary
30
30
 
31
- # Drayton Wiser Hub API Async v1.7.0
31
+ # Drayton Wiser Hub API Async v1.7.2
32
32
 
33
33
  This repository contains a simple API which queries the Drayton Wiser Heating sysystem used in the UK.
34
34
 
@@ -49,7 +49,6 @@ Reference [https://it.knightnet.org.uk/kb/nr-qa/drayton-wiser-heating-control/#c
49
49
  Look for the Wi-Fi network (SSID) called **‘WiserHeatXXXXXX’** where XXXXXX is last 6 digits of the MAC address
50
50
  2. Connect to the network from a Windows/Linux/Mac/Android/iPhone machine
51
51
  3. Execute the secret url :-)
52
-
53
52
  - Open a browser to url `http://192.168.8.1/secret`
54
53
 
55
54
  This will return a string which is your system secret, store this somewhere. If you are running the test script simply put this value , with the ip address of the hub, in your wiserkeys.params
@@ -83,6 +82,10 @@ Documentation available in [info.md](https://github.com/msp1974/wiserHeatAPIv2/b
83
82
 
84
83
  ## Changelog
85
84
 
85
+ ### v1.7.2
86
+
87
+ - Fix: Set min f/w version of 4.42.23 for https on gen2 hubs
88
+
86
89
  ### v1.7.0
87
90
 
88
91
  - Added https support for v2 hubs -> required for some commands
@@ -1,4 +1,4 @@
1
- # Drayton Wiser Hub API Async v1.7.0
1
+ # Drayton Wiser Hub API Async v1.7.2
2
2
 
3
3
  This repository contains a simple API which queries the Drayton Wiser Heating sysystem used in the UK.
4
4
 
@@ -19,7 +19,6 @@ Reference [https://it.knightnet.org.uk/kb/nr-qa/drayton-wiser-heating-control/#c
19
19
  Look for the Wi-Fi network (SSID) called **‘WiserHeatXXXXXX’** where XXXXXX is last 6 digits of the MAC address
20
20
  2. Connect to the network from a Windows/Linux/Mac/Android/iPhone machine
21
21
  3. Execute the secret url :-)
22
-
23
22
  - Open a browser to url `http://192.168.8.1/secret`
24
23
 
25
24
  This will return a string which is your system secret, store this somewhere. If you are running the test script simply put this value , with the ip address of the hub, in your wiserkeys.params
@@ -53,6 +52,10 @@ Documentation available in [info.md](https://github.com/msp1974/wiserHeatAPIv2/b
53
52
 
54
53
  ## Changelog
55
54
 
55
+ ### v1.7.2
56
+
57
+ - Fix: Set min f/w version of 4.42.23 for https on gen2 hubs
58
+
56
59
  ### v1.7.0
57
60
 
58
61
  - Added https support for v2 hubs -> required for some commands
@@ -3,6 +3,6 @@ import logging
3
3
  name = "aioWiserHeatAPI"
4
4
  __all__ = ["wiserAPI", "wiserDiscovery"]
5
5
 
6
- __VERSION__ = "1.7.0"
6
+ __VERSION__ = "1.7.2"
7
7
 
8
8
  _LOGGER = logging.getLogger(__name__)
@@ -81,6 +81,7 @@ SPECIAL_DAYS = [TEXT_WEEKDAYS, TEXT_WEEKENDS, TEXT_ALL]
81
81
  SPECIAL_TIMES = {"Sunrise": 3000, "Sunset": 4000}
82
82
 
83
83
  OPENTHERMV2_MIN_VERSION = Version("4.32.47")
84
+ HUB_GEN2_MIN_HTTPS_VERSION = Version("4.42.23")
84
85
 
85
86
  # Wiser Hub Rest Api URL Constants
86
87
  WISERHUBURL = "{}:{}/data/v2/"
@@ -23,6 +23,7 @@ from .cli import log_response_to_file
23
23
  from .const import (
24
24
  DEFAULT_AWAY_MODE_TEMP,
25
25
  DEFAULT_DEGRADED_TEMP,
26
+ HUB_GEN2_MIN_HTTPS_VERSION,
26
27
  MAX_BOOST_INCREASE,
27
28
  OPENTHERMV2_MIN_VERSION,
28
29
  TEMP_ERROR,
@@ -161,12 +162,18 @@ class WiserAPI:
161
162
  WISERHUBDOMAIN
162
163
  )
163
164
 
164
- # Determine if we need to use https for v2 hubs
165
- if self._domain_data and self._domain_data.get("System", {}).get(
166
- "HardwareGeneration", 1
167
- ) > 1:
168
- self._wiser_rest_controller.use_https = True
169
-
165
+ # Determine if we need to use https for v2 hubs. FW needs to be 4.42.23 or higher
166
+ if self._domain_data:
167
+ hw_gen = self._domain_data.get("System", {}).get(
168
+ "HardwareGeneration", 1
169
+ )
170
+ fw_version = Version(
171
+ self._domain_data.get("System", {}).get(
172
+ "ActiveSystemVersion", "1.0.0"
173
+ )
174
+ )
175
+ if hw_gen == 2 and fw_version >= HUB_GEN2_MIN_HTTPS_VERSION:
176
+ self._wiser_rest_controller.use_https = True
170
177
 
171
178
  self._network_data = await self._wiser_rest_controller.get_hub_data(
172
179
  WISERHUBNETWORK
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aioWiserHeatAPI
3
- Version: 1.7.0
3
+ Version: 1.7.2
4
4
  Summary: An AsyncIO API for controlling the Drayton Wiser Heating system
5
5
  Home-page: https://github.com/msp1974/aioWiserHeatAPI
6
6
  Author: Mark Parker
@@ -28,7 +28,7 @@ Dynamic: requires-dist
28
28
  Dynamic: requires-python
29
29
  Dynamic: summary
30
30
 
31
- # Drayton Wiser Hub API Async v1.7.0
31
+ # Drayton Wiser Hub API Async v1.7.2
32
32
 
33
33
  This repository contains a simple API which queries the Drayton Wiser Heating sysystem used in the UK.
34
34
 
@@ -49,7 +49,6 @@ Reference [https://it.knightnet.org.uk/kb/nr-qa/drayton-wiser-heating-control/#c
49
49
  Look for the Wi-Fi network (SSID) called **‘WiserHeatXXXXXX’** where XXXXXX is last 6 digits of the MAC address
50
50
  2. Connect to the network from a Windows/Linux/Mac/Android/iPhone machine
51
51
  3. Execute the secret url :-)
52
-
53
52
  - Open a browser to url `http://192.168.8.1/secret`
54
53
 
55
54
  This will return a string which is your system secret, store this somewhere. If you are running the test script simply put this value , with the ip address of the hub, in your wiserkeys.params
@@ -83,6 +82,10 @@ Documentation available in [info.md](https://github.com/msp1974/wiserHeatAPIv2/b
83
82
 
84
83
  ## Changelog
85
84
 
85
+ ### v1.7.2
86
+
87
+ - Fix: Set min f/w version of 4.42.23 for https on gen2 hubs
88
+
86
89
  ### v1.7.0
87
90
 
88
91
  - Added https support for v2 hubs -> required for some commands
File without changes