mirror of
https://github.com/bahmcloud/HA-KNX-Bridge.git
synced 2026-04-06 19:11:15 +00:00
Use mired color temperature service
This commit is contained in:
3
.idea/PROJECT_STATE.md
generated
3
.idea/PROJECT_STATE.md
generated
@@ -46,7 +46,8 @@ Completed:
|
|||||||
- Relative dimming now repeats steps until a stop telegram is received.
|
- Relative dimming now repeats steps until a stop telegram is received.
|
||||||
- Relative color temperature steps (DPT 3.007) added for lights.
|
- Relative color temperature steps (DPT 3.007) added for lights.
|
||||||
- Relative color temperature control wired into light schema, UI order adjusted, and KNX color temperature types aligned.
|
- Relative color temperature control wired into light schema, UI order adjusted, and KNX color temperature types aligned.
|
||||||
- Project version set to 0.0.28 and `CHANGELOG.md` maintained.
|
- Color temperature service calls now use mireds for better compatibility.
|
||||||
|
- Project version set to 0.0.29 and `CHANGELOG.md` maintained.
|
||||||
|
|
||||||
Files created:
|
Files created:
|
||||||
- `custom_components/ha_knx_bridge/__init__.py`
|
- `custom_components/ha_knx_bridge/__init__.py`
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 0.0.29 - 2026-02-15
|
||||||
|
- Use mired-based HA color temperature service calls for better device compatibility.
|
||||||
|
|
||||||
## 0.0.28 - 2026-02-15
|
## 0.0.28 - 2026-02-15
|
||||||
- Add relative color temperature control (DPT 3.007), reorder relative dimming field in UI, and align color temperature KNX types.
|
- Add relative color temperature control (DPT 3.007), reorder relative dimming field in UI, and align color temperature KNX types.
|
||||||
|
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ Notes:
|
|||||||
- Relative dimming (DPT 3.007) maps KNX step values to small `brightness_step_pct` changes in Home Assistant.
|
- Relative dimming (DPT 3.007) maps KNX step values to small `brightness_step_pct` changes in Home Assistant.
|
||||||
- For relative dimming, the bridge repeats steps until a KNX stop telegram (0 or 8) is received.
|
- For relative dimming, the bridge repeats steps until a KNX stop telegram (0 or 8) is received.
|
||||||
- Relative color temperature (DPT 3.007) adjusts Kelvin in the same start/stop pattern.
|
- Relative color temperature (DPT 3.007) adjusts Kelvin in the same start/stop pattern.
|
||||||
- Color temperature mode must match the KNX telegram DPT: `relative` for 5.001, `absolute` for 7.600 (2-byte unsigned), `absolute_float` for DPT 9 (2-byte float).
|
- Color temperature mode must match the KNX telegram DPT: `relative` for 5.001, `absolute` for 7.600 (2-byte unsigned), `absolute_float` for DPT 9 (2-byte float). The bridge sends HA color temperature using `color_temp` (mireds) for maximum compatibility.
|
||||||
|
|
||||||
## Notes
|
## Notes
|
||||||
- For DPT 1.008 (Up/Down), the bridge treats `0 = Up/Open` and `1 = Down/Close`.
|
- For DPT 1.008 (Up/Down), the bridge treats `0 = Up/Open` and `1 = Down/Close`.
|
||||||
@@ -112,5 +112,5 @@ Notes:
|
|||||||
- Advanced DPT mapping options and inversion settings.
|
- Advanced DPT mapping options and inversion settings.
|
||||||
|
|
||||||
## Versioning and Releases
|
## Versioning and Releases
|
||||||
- Current version: 0.0.28
|
- Current version: 0.0.29
|
||||||
- `CHANGELOG.md` lists versions with the newest entries at the top.
|
- `CHANGELOG.md` lists versions with the newest entries at the top.
|
||||||
|
|||||||
@@ -1167,7 +1167,7 @@ class BridgeManager:
|
|||||||
await self._call_light_service(
|
await self._call_light_service(
|
||||||
port.entity_id,
|
port.entity_id,
|
||||||
"turn_on",
|
"turn_on",
|
||||||
{ATTR_COLOR_TEMP_KELVIN: int(round(kelvin))},
|
{"color_temp": _kelvin_to_mireds(kelvin)},
|
||||||
)
|
)
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -1477,7 +1477,7 @@ class BridgeManager:
|
|||||||
await self._call_light_service(
|
await self._call_light_service(
|
||||||
port.entity_id,
|
port.entity_id,
|
||||||
"turn_on",
|
"turn_on",
|
||||||
{ATTR_COLOR_TEMP_KELVIN: int(round(next_kelvin))},
|
{"color_temp": _kelvin_to_mireds(next_kelvin)},
|
||||||
)
|
)
|
||||||
await asyncio.sleep(0.3)
|
await asyncio.sleep(0.3)
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"domain": "ha_knx_bridge",
|
"domain": "ha_knx_bridge",
|
||||||
"name": "HA KNX Bridge",
|
"name": "HA KNX Bridge",
|
||||||
"version": "0.0.28",
|
"version": "0.0.29",
|
||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"documentation": "https://github.com/bahmcloud/HA-KNX-Bridge",
|
"documentation": "https://github.com/bahmcloud/HA-KNX-Bridge",
|
||||||
"issue_tracker": "https://github.com/bahmcloud/HA-KNX-Bridge/issues",
|
"issue_tracker": "https://github.com/bahmcloud/HA-KNX-Bridge/issues",
|
||||||
|
|||||||
Reference in New Issue
Block a user