ics_2000_python 0.1.0__py3-none-any.whl → 0.1.1__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.
ics_2000/hub.py CHANGED
@@ -24,7 +24,7 @@ class Hub:
24
24
  self.home_id: str | None = None
25
25
  self.email = email
26
26
  self.password = password
27
- self.local_address = ""
27
+ self.local_address: str | None = None
28
28
  self.device_statuses: dict[int, list[int]] = {}
29
29
  self.update_date = datetime.min
30
30
 
@@ -175,7 +175,7 @@ class Hub:
175
175
 
176
176
  def send_command_to_hub(self, command: Command, port):
177
177
  if self.local_address is None:
178
- raise ValueError("Local address is undefined")
178
+ raise ValueError("Local address is not set")
179
179
 
180
180
  if not isinstance(port, int):
181
181
  raise ValueError("Port needs to be an integer")
@@ -0,0 +1,30 @@
1
+ Metadata-Version: 2.1
2
+ Name: ics_2000_python
3
+ Version: 0.1.1
4
+ Summary:
5
+ Home-page: https://github.com/zefanjajobse/ics_2000_python
6
+ Keywords: ics_2000,ics-2000,klikaanklikuit
7
+ Author: iiTzArcur
8
+ Author-email: zefanjaj@gmail.com
9
+ Requires-Python: >=3.12,<4.0
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Programming Language :: Python :: 3.12
12
+ Requires-Dist: pycryptodome (>=3.21.0,<4.0.0)
13
+ Requires-Dist: requests (>=2.32.3,<3.0.0)
14
+ Project-URL: Repository, https://github.com/zefanjajobse/ics_2000_python
15
+ Description-Content-Type: text/markdown
16
+
17
+ # Python KlikAanKlikUit ICS-2000 library
18
+ This library gives methods to control a ICS-2000 from KlikAanKlikUit. It is made to add support for this device within Home assistant, which implementation is available in [this](https://github.com/zefanjajobse/ics-2000-home-assistant) repository.
19
+
20
+ ## Usage example:
21
+ ```py
22
+ hub = Hub("example@email.com", "password")
23
+ hub.login() # Authenticate
24
+ hub.get_devices() # request devices
25
+ for device in hub.devices:
26
+ if type(device) is SwitchDevice or type(device) is DimDevice:
27
+ print(device.name)
28
+ if device.get_on_status(): # returns bool
29
+ device.turn_off(False) # turn a device off
30
+ ```
@@ -8,14 +8,14 @@ ics_2000/entities/device.py,sha256=ysbB7sXckx3jNGXLUAQ53rmblsXyh4-B1Dd1dpw7D4I,5
8
8
  ics_2000/entities/dim_device.py,sha256=kEm0N4d99dT1SLJWwqEKkZZf6DxpSuQGiNbEnZ0PPX4,866
9
9
  ics_2000/entities/entity.py,sha256=bXuGH8RrA1qp0pwVZIrQPekPp3wH5fzOCe2CuWLPU1s,970
10
10
  ics_2000/entities/switch_device.py,sha256=ctjzn3B7qfUmVdwekJO9x9zWAalswqYu4wQUzO9GNFg,1375
11
- ics_2000/hub.py,sha256=IWg6hdlg8mNx6m8Wt_xrvBEmXTS8v2tI_JawTI9EuEU,11784
11
+ ics_2000/hub.py,sha256=wMho87LhgIXxvkbhAVOP0WzumS7DP5ftCft_nqVBcpo,11796
12
12
  ics_2000/model/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
13
13
  ics_2000/model/device_config.py,sha256=IK8hsixCxM_4xcwveRMIplGyUCsAo8kSze4ki2H7Y8c,734
14
14
  ics_2000/model/device_data.py,sha256=p5XeuU-88No7YxsSbrMnt-xYVhDrZIk9-N3I2DvY3w4,460
15
15
  ics_2000/model/entity_type.py,sha256=TVtes0QcFYeYMgMcAQ5ZZkEriynozNUYGE8nr8Yku_g,216
16
16
  ics_2000/model/smart_meter_data.py,sha256=frpdosAA69G-sAksXZk1RTMMGGN2aw0VeWEo5qV55Kw,663
17
17
  ics_2000/model/smart_meter_data_current.py,sha256=SwuBc-6e7jgjE2zAj-kop_JusErfNmNgkLCwtyO4vLQ,768
18
- ics_2000_python-0.1.0.dist-info/LICENSE,sha256=WYmcYJG1QFgu1hfo7qrEkZ3Jhcz8NUWe6XUraZvlIFs,10172
19
- ics_2000_python-0.1.0.dist-info/METADATA,sha256=80Y-1r3mkgQv5r_DhSy1a92nQjnhQUcOm94b45y0ZZ8,378
20
- ics_2000_python-0.1.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
21
- ics_2000_python-0.1.0.dist-info/RECORD,,
18
+ ics_2000_python-0.1.1.dist-info/LICENSE,sha256=WYmcYJG1QFgu1hfo7qrEkZ3Jhcz8NUWe6XUraZvlIFs,10172
19
+ ics_2000_python-0.1.1.dist-info/METADATA,sha256=vEgdRQ26GOk2XGt9rRCUIaeEsVsNbQmqB03J1cLEa7A,1201
20
+ ics_2000_python-0.1.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
21
+ ics_2000_python-0.1.1.dist-info/RECORD,,
@@ -1,14 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: ics_2000_python
3
- Version: 0.1.0
4
- Summary:
5
- Author: iiTzArcur
6
- Author-email: zefanjaj@gmail.com
7
- Requires-Python: >=3.12,<4.0
8
- Classifier: Programming Language :: Python :: 3
9
- Classifier: Programming Language :: Python :: 3.12
10
- Requires-Dist: pycryptodome (>=3.21.0,<4.0.0)
11
- Requires-Dist: requests (>=2.32.3,<3.0.0)
12
- Description-Content-Type: text/markdown
13
-
14
-