jstrausd / homebridge-simple-wled

Homebridge Plugin to control WLED LED-Strips
ISC License
64 stars 18 forks source link

Color always changes to red #24

Open seppelicous opened 3 years ago

seppelicous commented 3 years ago

Hi, most of the time, when I switch the color in Home App, it automatically switches the color to red. Same issues with WLED v12 and V11.1 and I have SK6812 LEDs

This is the log output: [7/27/2021, 2:41:14 PM] [WLED] Changed color to 255,0,68 on host 192.168.178.75 <-- Set white [7/27/2021, 2:41:15 PM] [WLED] Updating WLED in HomeKIT (Because of Polling) 192.168.178.75 <-- Switches to red

jstrausd commented 3 years ago

Can you show us your config.json section of the LEDs?

seppelicous commented 3 years ago

Hi, this is the code. I have two WLED setups, one for my printer, the other for an Ambilight. I just checked the Ambilight and get the same behavior: As soon as I change the color in the Home App it switches to red just a second later. Brightness and toggling without issues. I can change the color with my WLED App without issues and it even shows the color in the Home App

{ "platform": "WLED", "wleds": [ { "name": "AmbilightTV", "host": "192.168.178.124", "effects": [ "Rainbow Runner", "Circus", "Merry Christmas", "Fireworks" ], "log": false }, { "name": "Druckerlicht", "host": "192.168.178.75", "effects": [ "Rainbow Runner", "Circus", "Merry Christmas", "Fireworks" ], "log": true } ] },

gitengstrom commented 3 years ago

I have the same issue. Any color selection is red. Selecting blue stays red, insert color... red

MattB1981 commented 3 years ago

Same problem here, sometimes for a second it will go to another color but then it snaps back to red.

jstrausd commented 3 years ago

Ok thats a weird behaviour, i use WS2812B LEDs and i do not have this issue. I copied your config and used this in my Homebridge, but it works perfect for me.

@gitengstrom @matthewbabcock @seppelicous Which LEDs do you use and how do you control the LEDs?

seppelicous commented 3 years ago

I use SK6812 RGBNW LEDs in both wled installations. And I have the issue with both. One is on 11.1 and the runs 12.x

MattB1981 commented 3 years ago

I'm having issues with ws2813 and ws2812Bs. I'm on Node 14.7.4 if that helps? And I've been having this problem controlling them inside of Home and just noticed they don't even show up in Home+.

I also figured out a sort of work around. In the home app, if I edit a color and quickly change to a different preset that one will become red and the one I set will retain it's color.

Matthew Babcock 813-298-5455

On Wed, Aug 18, 2021 at 6:02 AM seppelicous @.***> wrote:

I use SK6812 RGBNW LEDs in both wled installations. And I have the issue with both. One is on 11.1 and the runs 12.x

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/jstrausd/homebridge-simple-wled/issues/24#issuecomment-900985481, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAWYWUP2H4IQUEWQ3EUIZULT5OAKLANCNFSM5BCFLVCQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

gitengstrom commented 3 years ago

I am using the WS2812B as well. The effects work fine either in WLED or in HomeKit. But when selecting any individual color in HomeKit it defaults to red. Though the color selection dot is selected with the correct color the color slider shows red and the lights themselves are red.

seppelicous commented 3 years ago

Is there anything in information I can share? Any detailed log? The only info I received in hombridge is provided in the first post

v0r73x commented 3 years ago

same issue here - i use alexa plugin and when I talk to alexa or homped Siri, its mostly set to red after asking both girls to switch to blue or green or other colors ... I have issue with sk neopixels and also with ws2812. I have this issue since the begin of the homekit plugin release. when i set them in home or eve manual to a color it works without issue - issue is just by if you talk to the both Voices - Alexa with homekit alexa plugin and Siri native.

I was thinking its a timeout in WLAn witch causes to set default color - but a technicial analyse from the developer will be nice

MattB1981 commented 3 years ago

The first two times are me setting it to magenta and then it switching to red on it's own. I changed the color back to magenta by switching to red, which wasn't registered and then back to magenta. Then I switched to magenta and then to white and was able to get white to stick. But it will switch to red if I switch off of it and back.

[31/08/2021, 17:43:47] [WLED] Changed color to 140,0,131 on host 192.168.1.69 [31/08/2021, 17:43:48] [WLED] Updating WLED in HomeKIT (Because of Polling) 192.168.1.69 [31/08/2021, 17:44:09] [WLED] Changed color to 140,0,131 on host 192.168.1.69 [31/08/2021, 17:44:11] [WLED] Updating WLED in HomeKIT (Because of Polling) 192.168.1.69 [31/08/2021, 17:44:18] [WLED] Changed color to 140,0,0 on host 192.168.1.69 [31/08/2021, 17:44:20] [WLED] Changed color to 0,23,140 on host 192.168.1.69 [31/08/2021, 17:44:20] [WLED] Updating WLED in HomeKIT (Because of Polling) 192.168.1.69

MattB1981 commented 3 years ago

Oh, is it also connected to this issue? Stop Effect Automatic change color #14. I'm running my wled's off of ESP32's for more info.

ghost commented 3 years ago

Still buggy.

seppelicous commented 3 years ago

I am not an expert, but does has to do with the initial definition private colorArray = [255, 0, 0]; ? Actually that is red ;)

MattB1981 commented 3 years ago

I update one of mine to WLED beta version 0.13.0-b2 and it seems to be working fine now. I'm going to start updating the rest now.

MattB1981 commented 3 years ago

Okay, not 100% fixed, still having some problems setting colors. They get stuck but if I just drag the brightness slider up and down they go to the correct color. so not perfect but usable again.

MattB1981 commented 3 years ago

okay, not as fixed as a thought but an improvement. really walking this one back bit by bit.

jstrausd commented 3 years ago

I'm looking forward to fix this bug. I try to fix this bug, when i have enough time.

But for faster help, it would be nice to know, which microcontroller and which LEDs you all are using.

ghost commented 3 years ago

I'm using a Wemos D1 mini V3 with 183 x WS2812B addressable LEDs

seppelicous commented 3 years ago

I am using a AZDelivery D1 Mini NodeMcu with ESP8266

MattB1981 commented 3 years ago

ESP-32S Development Board

And I was able to flash back down from the beta to current wled and it's working fine still. Well mostly fine. Automations turn my strips red if I don't use a scene.

gitengstrom commented 3 years ago

I'm running NodeMCU ESP8266 with WS2812B. I have several of these devices.

Smartchris404 commented 3 years ago

I have the same issue. Is there now a way to fix it?

MattB1981 commented 3 years ago

My experience has been that some combination of flashing forward to the beta or sometimes then back to current software worked for me.

On Tue, Nov 23, 2021 at 3:06 PM Smartchris404 @.***> wrote:

I have the same issue. Is there now a way to fix it?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/jstrausd/homebridge-simple-wled/issues/24#issuecomment-977112131, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAWYWUIUOFVRALVPYGIP23DUNPX3PANCNFSM5BCFLVCQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

--

Matthew Babcock 813-298-5455

jstrausd commented 3 years ago

@Smartchris404 After which time does the color change to red?

gitengstrom commented 3 years ago

I have updated several of my devices to the latest beta (0.13.0-b5)and still have the same issue. Any color picked results in immediately changing to red.

Smartchris404 commented 2 years ago

@jstrausd when i aktivate the stripe whith a hue dimmer switch over Himekit i turns to red. When i activate it with a automation also. Only with the homekit app i can change to a different color.

wildman199 commented 2 years ago

I’m also having this red light problem. Is there a fix? It sometimes takes 4 try’s running a scene before the color is correct. I wonder if it is a Homekit problem because wled works fine on its own.

v0r73x commented 2 years ago

https://github.com/jstrausd/homebridge-simple-wled/issues/21#issuecomment-1023949286 its fixed with Homepod OS 15.3 - for me it works now !!!

DenizKaraoglan commented 2 years ago

I guess there is a conflict with naming each WLED-Controller and also naming it probably in the HomeKit-App. I tried to give both the same name, sometimes it might work setting the correct color -- even on iPhone with Siri (iOS15.4.1), but sometimes it does not responds after a specific time, so I have to change the naming again for each - config.json and in the HomeKit-App.

What name-schema are you guys using for your controller in the config.json, and in the HomeKit-App ?

pascalbrennich commented 1 year ago

Anyone still has this Problem? I came up with that issue today...

MattB1981 commented 1 year ago

I am as far as I know but a couple of weeks ago I started using Node Red to run my automations and using the wled palette in there i don't have the issue. Oh yeah and I noticed when I was using it via homebridge in node red rather than directly it would return Hue 0 when it was in the red state if that helps.

Matt Babcock

On Thu, Jan 12, 2023 at 4:10 PM pascalbrennich @.***> wrote:

Anyone still has this Problem? I came up with that issue today...

— Reply to this email directly, view it on GitHub https://github.com/jstrausd/homebridge-simple-wled/issues/24#issuecomment-1380996857, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAWYWUOQL75TMMSANQ3KNT3WSBXMDANCNFSM5BCFLVCQ . You are receiving this because you were mentioned.Message ID: @.***>

bor9455 commented 1 year ago

I have three sets of W2812B lights that were connected to three separate ESP 8266 in my kitchen. I've used the plug-in to get them all into HomeKit, but I am having the issue with them defaulting to red. My wife wants the lights to be white, so I set up a scene using a smart button in the kitchen to flip them white and for some reason they turn red almost as a default. When I tell Siri to turn them another color, most of the time it ends up turning them off. I made the mistake last night of turning on the rainbow effect and today my scene button kept reverting them to rainbow instead of white. I'm very confused and I don't know enough about the plugin to even begin understanding how to troubleshoot. I should add, I barely know anything about the WLED lights setup, because they were left by the previous owner when I bought the house, so I'm really at a disadvantage there.

MattB1981 commented 1 year ago

It took me a bit to learn it but the change to node red for automation completely fixed my wled color issues.

Matt Babcock

On Sat, Jan 28, 2023 at 6:03 PM bor9455 @.***> wrote:

I have three sets of W2812B lights that were connected to three separate ESP 8266 in my kitchen. I've used the plug-in to get them all into HomeKit, but I am having the issue with them defaulting to red. My wife wants the lights to be white, so I set up a scene using a smart button in the kitchen to flip them white and for some reason they turn red almost as a default. When I tell Siri to turn them another color, most of the time it ends up turning them off. I made the mistake last night of turning on the rainbow effect and today my scene button kept reverting them to rainbow instead of white. I'm very confused and I don't know enough about the plugin to even begin understanding how to troubleshoot. I should add, I barely know anything about the WLED lights setup, because they were left by the previous owner when I bought the house, so I'm really at a disadvantage there.

— Reply to this email directly, view it on GitHub https://github.com/jstrausd/homebridge-simple-wled/issues/24#issuecomment-1407507074, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAWYWUI5RPPV5XUXEZGO7TTWUWQVZANCNFSM5BCFLVCQ . You are receiving this because you were mentioned.Message ID: @.***>

bor9455 commented 1 year ago

I am not well versed in this to know what that means. Can you spell out what that means. I’ve never heard of node red. I’ve learned just a tiny bit about the WLED lights I inherited when I bought a house. Previous owner was a diehard techie and I’m not. #

MattB1981 commented 1 year ago

Node Red is a visual coding interface. And you can add a homebridge palette and wled palette to it. I use the homebridge plugin just to expose them to homekit, if you open my Home app there are only like 6 automations in it and all the rest I built manually in Node Red.

Matt Babcock

On Sun, Jan 29, 2023 at 11:00 AM bor9455 @.***> wrote:

I am not well versed in this to know what that means. Can you spell out what that means. I’ve never heard of node red. I’ve learned just a tiny bit about the WLED lights I inherited when I bought a house. Previous owner was a diehard techie and I’m not. #

— Reply to this email directly, view it on GitHub https://github.com/jstrausd/homebridge-simple-wled/issues/24#issuecomment-1407701239, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAWYWUPGTA3PP5FFIIAXHNTWU2HYFANCNFSM5BCFLVCQ . You are receiving this because you were mentioned.Message ID: @.***>

MattB1981 commented 1 year ago

I haven't tested this cause having a busy day but didn't want to forget the idea. I have a theory it's a malfunction in homekit automations related to sending color temp instead of an rgb value to lights that can't accept color temp? The Govee plugin has a setting to prevent sending color temp so I wonder if that's why they did it/what's causing the issue here. Try doing your automation again, but use the color wheel not color temperature to set it up?

Matt Babcock

On Sun, Jan 29, 2023 at 12:32 PM Matt Babcock @.***> wrote:

Node Red is a visual coding interface. And you can add a homebridge palette and wled palette to it. I use the homebridge plugin just to expose them to homekit, if you open my Home app there are only like 6 automations in it and all the rest I built manually in Node Red.

Matt Babcock

On Sun, Jan 29, 2023 at 11:00 AM bor9455 @.***> wrote:

I am not well versed in this to know what that means. Can you spell out what that means. I’ve never heard of node red. I’ve learned just a tiny bit about the WLED lights I inherited when I bought a house. Previous owner was a diehard techie and I’m not. #

— Reply to this email directly, view it on GitHub https://github.com/jstrausd/homebridge-simple-wled/issues/24#issuecomment-1407701239, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAWYWUPGTA3PP5FFIIAXHNTWU2HYFANCNFSM5BCFLVCQ . You are receiving this because you were mentioned.Message ID: @.***>

bor9455 commented 1 year ago

I sat down on my office MacBook and created a new scene where I selected the white color from the almost dead center of the color wheel. The funny thing is when I hit test this scene, the lights come on red. So somewhere between HomeKit and the WLED that white is coming over as a red. If I try controlling the lights with the WLED App, I don't have this issue. Also strange, if I go to HomeKit and manually change the color on the wheel of a turned on light, it will change. If I ask Siri to change that light a color, it just turns it off, it cannot change the color of the lights, but in the past it was able to do so. I'm so flummoxed and I have no idea how to get Node Red working.

Smartchris404 commented 1 year ago

I tried several things. I updated all my WLED devices, i updated Homebridge and every plugin an i reseted everything and build it completely from scratch but nothing solves the Problem with the red color. Anyone has a solution for this beside installing NodeRed and build everything there. i use WS2815 RGBW LED Stripes for my kitchen and WS2812B for my desk setup.

Elijahg commented 1 year ago

I am seeing the same issue with WLED 0.14.0-b1. Sometimes automated lights-on events come on red despite the automation being set to white. Sometimes when the LEDs are turned on via Siri they come on red, and sometimes when turned on via the home app. Int he latter two cases changing the colour manually fixes it.

bor9455 commented 1 year ago

I took all of my esp8266s (I had 5) back to 10.4 because that is the version I know was working. I don’t know if we can pinpoint exactly which version of the software made a change that now when HomeKit communicates color values from scenes/voice it doesn’t seem to work. I mean, of course there have been a lot of Homeskit Updates, but if I can roll back WLED a couple of years and it works, seems to be isolated to WLED update. Maybe something that wasn’t supposed to be a change or it’s using AWS color definitions like a Govee plugin I was having issues with. Short of going version by version until you find when it happened, I feel like Aircookie or someone who understands the code there.

I don’t mind the old WLED interface, but things aren’t as smooth when you roll back to 10.4. I’d love to be able to use scenes with segments and effects as well as the effect controls in HomeKit. They are literally the only smart home tech I can’t do what I want always from HomeKit. Otherwise other apps like Nest, hue, govee, Lutron, never get used.

bitbike commented 11 months ago

Hey everyone,

I have a quite similar issue that's why I post it in this issue and didn't open another one. I pinned it down to the following:

When I tell Siri to set any color it only transfers the red-value. So any color not containing red will turn black. Setting it to any color with red (orange, violet, whatsoever) it will just display the red part.

The colors are transferred correctly to the homebridge

[12/3/2023, 11:48:32 PM] [WLED] Changed color to 0,0,255 on host 192.168.88.105
[12/3/2023, 11:48:33 PM] [WLED] Updating WLED in HomeKIT (Because of Polling) 192.168.88.105
[12/3/2023, 11:48:39 PM] [WLED] Changed color to 255,255,255 on host 192.168.88.105
[12/3/2023, 11:48:42 PM] [WLED] Updating WLED in HomeKIT (Because of Polling) 192.168.88.105
[12/3/2023, 11:49:41 PM] [WLED] Changed color to 255,166,0 on host 192.168.88.105
[12/3/2023, 11:49:41 PM] [WLED] Updating WLED in HomeKIT (Because of Polling) 192.168.88.105
[12/3/2023, 11:49:48 PM] [WLED] Changed color to 0,255,0 on host 192.168.88.105

but only the red part seems to be sent to the WLED-Device.

Now the fun part:

When I use the color-selector in the HomeApp it will select the correct values and send it to the Homebridge:

[12/3/2023, 11:49:56 PM] [WLED] Changed color to 138,255,212 on host 192.168.88.105
[12/3/2023, 11:49:57 PM] [WLED] Changed color to 0,255,0 on host 192.168.88.105
[12/3/2023, 11:49:59 PM] [WLED] Changed color to 26,255,0 on host 192.168.88.105
[12/3/2023, 11:49:59 PM] [WLED] Changed color to 255,0,0 on host 192.168.88.105
[12/3/2023, 11:50:00 PM] [WLED] Changed color to 255,0,38 on host 192.168.88.105
[12/3/2023, 11:50:00 PM] [WLED] Changed color to 186,198,255 on host 192.168.88.105

My knowledge with the HomeBride Plugins is far to small to pinpoint which method is called and even if there is a different method for voice activated color or the color palette.

It seems that the Homebridge is correctly getting the values from Siri/HomeApp but is not always transferring it to the WLED-Device.

My Setup:

Any help would be great. If you could tell me where to check I can try to debug myself. I am just to lazy at the moment to get into the plugin-coding of Homebridge.