casambi-bt-revamped 0.3.7.dev3__py3-none-any.whl → 0.3.12.dev15__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.
@@ -1,81 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: casambi-bt-revamped
3
- Version: 0.3.7.dev3
4
- Summary: Enhanced Casambi Bluetooth client library with switch event support
5
- Home-page: https://github.com/rankjie/casambi-bt
6
- Author: rankjie
7
- Author-email: rankjie@gmail.com
8
- Classifier: Programming Language :: Python :: 3.12
9
- Classifier: License :: OSI Approved :: Apache Software License
10
- Classifier: Operating System :: OS Independent
11
- Classifier: Development Status :: 4 - Beta
12
- Requires-Python: >=3.11
13
- Description-Content-Type: text/markdown
14
- License-File: LICENSE
15
- Requires-Dist: bleak>=0.22
16
- Requires-Dist: cryptography>=40.0.0
17
- Requires-Dist: httpx>=0.25
18
- Requires-Dist: bleak_retry_connector>=3.6.0
19
- Requires-Dist: aiopath==0.7.*
20
- Dynamic: license-file
21
-
22
- ![PyPI](https://img.shields.io/pypi/v/casambi-bt-revamped)
23
- [![Discord](https://img.shields.io/discord/1186445089317326888)](https://discord.gg/jgZVugfx)
24
-
25
- # Casambi Bluetooth Revamped - Enhanced Python library for Casambi networks
26
-
27
- This is an enhanced fork of the original [casambi-bt](https://github.com/lkempf/casambi-bt) library with additional features:
28
-
29
- - **Switch event support** - Receive button press/release events from Casambi switches
30
- - **Improved relay status handling** - Better support for relay units
31
- - **Bug fixes and improvements** - Various fixes based on real-world usage
32
-
33
- This library provides a bluetooth interface to Casambi-based lights. It is not associated with Casambi.
34
-
35
- For Home Assistant integration using this library, see [casambi-bt-hass](https://github.com/rankjie/casambi-bt-hass).
36
-
37
- ## Getting started
38
-
39
- This library is available on PyPi:
40
-
41
- ```
42
- pip install casambi-bt-revamped
43
- ```
44
-
45
- Have a look at `demo.py` for a small example.
46
-
47
- ### Switch Event Support
48
-
49
- This library now supports receiving switch button events:
50
-
51
- ```python
52
- from CasambiBt import Casambi
53
-
54
- def handle_switch_event(event_data):
55
- print(f"Switch event: Unit {event_data['unit_id']}, "
56
- f"Button {event_data['button']}, "
57
- f"Action: {event_data['event']}")
58
-
59
- casa = Casambi()
60
- # ... connect to network ...
61
-
62
- # Register switch event handler
63
- casa.registerSwitchEventHandler(handle_switch_event)
64
-
65
- # Events will be received when buttons are pressed/released
66
- ```
67
-
68
- ### MacOS
69
-
70
- MacOS [does not expose the Bluetooth MAC address via their official API](https://github.com/hbldh/bleak/issues/140),
71
- if you're running this library on MacOS, it will use an undocumented IOBluetooth API to get the MAC Address.
72
- Without the real MAC address the integration with Casambi will not work.
73
- If you're running into problems fetching the MAC address on MacOS, try it on a Raspberry Pi.
74
-
75
- ### Casambi network setup
76
-
77
- If you have problems connecting to the network please check that your network is configured appropriately before creating an issue. The network I test this with uses the **Evoultion firmware** and is configured as follows (screenshots are for the iOS app but the Android app should look very similar):
78
-
79
- ![Gateway settings](/doc/img/gateway.png)
80
- ![Network settings](/doc/img/network.png)
81
- ![Performance settings](/doc/img/perf.png)
@@ -1,18 +0,0 @@
1
- CasambiBt/__init__.py,sha256=TW445xSu5PV3TyMjJfwaA1JoWvQQ8LXhZgGdDTfWf3s,302
2
- CasambiBt/_cache.py,sha256=KZ2xbiHAHXUPa8Gw_75Nw9NL4QSY_sTWHbyYXYUDaB0,3865
3
- CasambiBt/_casambi.py,sha256=tQgmG-8lHbl4_FDS7NwPrucrqcQZd2kimcJa43TYFaw,23156
4
- CasambiBt/_client.py,sha256=2kHgkf3ERobTDF47ZMNSFl5WrEkWYgDSXfh6R6PsU0Q,28926
5
- CasambiBt/_constants.py,sha256=_AxkG7Btxl4VeS6mO7GJW5Kc9dFs3s9sDmtJ83ZEKNw,359
6
- CasambiBt/_discover.py,sha256=H7HpiFYIy9ELvmPXXd_ck-5O5invJf15dDIRk-vO5IE,1696
7
- CasambiBt/_encryption.py,sha256=CLcoOOrggQqhJbnr_emBnEnkizpWDvb_0yFnitq4_FM,3831
8
- CasambiBt/_keystore.py,sha256=Jdiq0zMPDmhfpheSojKY6sTUpmVrvX_qOyO7yCYd3kw,2788
9
- CasambiBt/_network.py,sha256=qcsWn_EsBexzXCv14JcpSIymhuR6Eaf479lZdzpfYBM,14417
10
- CasambiBt/_operation.py,sha256=-BuC1Bvtg-G-zSN_b_0JMvXdHZaR6LbTw0S425jg96c,842
11
- CasambiBt/_unit.py,sha256=M-Q8-Xd3qjJSUEvsFtic8E4xDc_gtWYakbTGyoIA-P8,16377
12
- CasambiBt/errors.py,sha256=0JgDjaKlAKDes0poWzA8nrTUYQ8qdNfBb8dfaqqzCRA,1664
13
- CasambiBt/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
- casambi_bt_revamped-0.3.7.dev3.dist-info/licenses/LICENSE,sha256=TAIIitFxpxEDi6Iju7foW4TDQmWvC-IhLVLhl67jKmQ,11341
15
- casambi_bt_revamped-0.3.7.dev3.dist-info/METADATA,sha256=grmzh3IRXluM845lDfwqMJHeP-2QlqslRyOI-wlebAk,3048
16
- casambi_bt_revamped-0.3.7.dev3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
17
- casambi_bt_revamped-0.3.7.dev3.dist-info/top_level.txt,sha256=uNbqLjtecFosoFzpGAC89-5icikWODKI8rOjbi8v_sA,10
18
- casambi_bt_revamped-0.3.7.dev3.dist-info/RECORD,,