Releases: Jc2k/aiohomekit
0.2.36
aiohomekit
follows the spec for writing to bool characteristics - 1
, 0
, true
and false
are meant to be valid values. We used true
and false
. However it looks like some devices recently got a firmware update and can no longer handle true
properly. This release switches to using 1
and 0
like the iOS implementation.
0.2.35
0.2.29.2
Some fixes from dealing with home-assistant/core#32969:
- Handle 470 Connection Authorization Required
- Increase timeout when waiting for crypto operations
- Don't send port in Host header. This breaks Insignia.
This also includes some attempts to cleanup how we handle HTTP requests than have no headers and no bodies.
0.2.34
0.2.29.1
0.2.33
0.2.31
0.2.30
0.2.29
The release makes some improvements to the retrying logic:
-
Adds a
aiohomekit.exceptions.TimeoutError
-
Adds a timeout for the call to
loop.create_connection
-
Handles any cancellation exceptions in the reconnect loop
-
Shields the reconnect loop from early cancellation
-
Simplifies the back-off logic
0.2.28
This release adds a helper for building put_characteristic
payloads. It takes a mapping of characteristic type against value and works out the (aid, iid) values:
name = "Hue dimmer switch button 3"
a = Accessories.from_file("tests/fixtures/hue_bridge.json").aid(6623462389072572)
service = a.services.first(
service_type=ServicesTypes.STATELESS_PROGRAMMABLE_SWITCH,
characteristics={CharacteristicsTypes.NAME: name},
)
payload = service.build_update({CharacteristicsTypes.NAME: "Fred"})
payload == [(6623462389072572, 588410716196, "Fred")]