Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Colour temperature light support? #25

Closed
messismore opened this issue Mar 24, 2018 · 10 comments
Closed

Colour temperature light support? #25

messismore opened this issue Mar 24, 2018 · 10 comments

Comments

@messismore
Copy link

Does the library support colour temperature (= dual channel) lights? Or are there plans to do so?

@OttoWinter
Copy link
Member

Yes, I was planning on eventually adding those, but I don't own any hardware for those so I kind of kept away from adding support.

I think it should be relatively easy to do so I could add support for it rather quickly. I'm just wondering how the interface for these color temperature lights usually look like. Do they expose two channels (one for cold white, one for warm white) that you can send PWM signals to? Do these exist together with RGB too, so RGBWW?

@messismore
Copy link
Author

From what I understand dimmers expose two channels. I don't own any hardware yet either, but I haven't found dimmers yet that support a pwm input signal. I was hoping to be able to use something like this or that.
image_843336_1_720x600

Unfortunately it appears that the only way to control both channels is via DMX and I don't know how much of a headache that is.

@messismore
Copy link
Author

Okay it seems that Home Assistant indeed supports setting a colour temperature for RGBWW lights. (See LimitlessLED)
Home Assistant expects colour temperatures to be set in Mireds, so I guess esphomelib would need to know the colour of each channel and mix accordingly?

@OttoWinter
Copy link
Member

So I did some more digging into this DMX format yesterday and fortunately it's supported by FastLED which I want to add suport for soon (quite a few people seem to be using addressable lights). Then that controller would hopefully also be supported.

About the RGBWW lights: Yes it's true we would need to do some color mixing ourselves, but that probably wouldn't be that big of a problem - looking at the Home Assistant source LimitlessLEDs also don't do nothing more than a bit of mixing.

@messismore
Copy link
Author

About the RGBWW lights: Yes it's true we would need to do some color mixing ourselves, but that probably wouldn't be that big of a problem - looking at the Home Assistant source LimitlessLEDs also don't do nothing more than a bit of mixing.

Yeah it's just something to keep in mind since these tuneable white led strips all support different colour ranges. So it's not as simple as to just 'pan' between the two channels, one would also need to know which colour temperature each ratio belongs to.

@OttoWinter
Copy link
Member

So I've now implemented support for FastLED, however, support for DMX is going to be quite difficult.

The Arduino library FastLED uses for DMX only works for AVR (so no espressif) devices. I'll maybe try to port that library to esphomelib one day, but tbh it's not that big of a priority for me right now.

@messismore
Copy link
Author

messismore commented May 19, 2018

That is unfortunate, but understandable. This might be the time for me to finally dabble in C++…

@Skaronator
Copy link
Member

Skaronator commented Jul 2, 2018

Would be cool to see support for RGBWW (aka. RGB+CCT) 5 channel light. I've a few H801 with RGB and CCT LED strips.

@messismore
Copy link
Author

Yeah, I finally settled on these. Can't wait to play around with them as soon as they arrive in a couple of weeks. 😄

@OttoWinter
Copy link
Member

Done in 1.8.0 :)

@esphome esphome locked and limited conversation to collaborators Jun 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants