Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementation for fixture 8616 (bDW (PWM/2ch/Dim)) #25

Open
murksel opened this issue Feb 13, 2022 · 1 comment
Open

Implementation for fixture 8616 (bDW (PWM/2ch/Dim)) #25

murksel opened this issue Feb 13, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@murksel
Copy link

murksel commented Feb 13, 2022

Hi Arkadiusz,
I´ve a led stripe with a mix of warm and cold white leds which is controlled by a 2 ch tridonic dimmer.
I configured it as a "bDW (PWM/2ch/Dim)" to get the maximum level of brightness from it.

The fuxture structure is like this:
`

  | {
"id": 8616,
"type": "Luminaire",
"vendor": "Tridonic GmbH & Co KG",
"model": "bDW (PWM/2ch/Dim)",
"isLuminaire": true, "isSwitch": false,
"isLightSensor": false,
"isPresenceSensor": false,
"translations": {},
"controls": [
{ "type": "dimmer", "id": 0, "readonly": false },
{ "type": "dimmer", "id": 8, "readonly": false } ] }
-- | --

`

As you can see there are two dimmers. This can´t be handled by your code actually.
I like to extend the code to handle this fixture.

I see two possibilities:

  1. Create an extra service for the second dimmer and let homekit do the mix by scenes.
  • this is not really straigthforward in homekit for the user
  • But it can also handle 4 ch dimmers
  1. Let the accessory do the calculation
  • this is a special solution for my usecase (mix of cold and warm leds)
  • Not every temperatur can be reached in every brightness level. Maybe this is not compatible to homekit spec?

What do you think about this?

best regards,
Michael

@murksel murksel added the enhancement New feature or request label Feb 13, 2022
@awahlig
Copy link
Owner

awahlig commented Feb 13, 2022

Hi Michael,

Having a generic support for multi-channel dimmers would be useful for other use cases as well.

In this case though, letting the accessory do the calculation would definitely be more user-friendly.

Maybe the way to go is to implement both and let the user choose in the settings?

As for HomeKit compatibility, all you need is a way to convert between brightness+temperature provided by HomeKit and the two channels from the dimmer (in both ways). The first step would be to figure out that conversion. If you can do that then it will work.

Best,
Arek

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants