Repository navigation
v0.3.25: use dirigera 1.6.0 instead of local model patches (#67)
The integration now relies on the dirigera library 1.6.0 for things it used to patch around itself (PR #67 by @Leggin, who maintains the library). dirigera_lib_patch.py shrinks by about 120 lines.
- Lights: the library keeps the hub's
colorMode, so the localLightXmodel is gone. - Colour temperature: set through the library instead of a direct PATCH. Ranges reported in mireds (e.g. KAJPLATS, 153..454) now show up correctly in Home Assistant instead of as 454..153 "Kelvin", and requests are kept inside the bulb's range.
- Motion sensors and controllers: the library models are used directly, including MYGGSPRAY without
isOn. - Blinds stop: through the library's
set_state(STOPPED). - Outlets: selected by
deviceType, so a GRILLPLATS whose metering half reportstype: "outlet"no longer fails to load.
One behaviour difference: a bulb that accepts colour temperature but reports no min/max now raises the library's ValueError instead of sending an unchecked request. IKEA bulbs report the range.
Tested: full suite 113 passed with dirigera 1.6.0. On a real hub, colour-temperature changes on a TRÅDFRI colour bulb (2700 K, 4000 K, an out-of-range 6500 K clamped to 4000 K, and 3000 K confirmed in the hub's own state). Blinds stop is not tested on hardware; we have no blinds here.