smhex / homebridge-wled-ws

Homebridge Plugin for LED strips controlled by WLED
Apache License 2.0
10 stars 1 forks source link

Brightness doesn’t update and no color selection #166

Open MrSteffens opened 4 weeks ago

MrSteffens commented 4 weeks ago

Hi there, unfortunately when i connected my WLED Controller to Homekit via your Homebridge plugin I ran into following problem. When I connected it, it first shows and works correctly. Any input I do on the WLED controller will be updated in realtime on homekit, but if I try to change the brightness on Homekit it doesn’t do anything. It then just shows the brightness on the Homekit UI but there is no update on the controller or the Homebridge.

The other thing mentioned in the title is that even tho it is a RGBCCT strip, i only get shown a standard lightbulb switch in homekit. I couldn’t tell from your plugin description if this was a planned feature or if it should already work.

Thank you for this plugin and for your help!!

Logs:


[25/10/2024, 10:31:13] [wled-ws platform] Received controller RGB LED Strip state update {"on":true,"brightness":255,"transition":7,"presetId":-1,"playlistId":-1,"ledmap":0,"AudioReactive":{"on":true},"nightlight":{"on":false,"duration":60,"mode":1,"targetBrightness":0,"remaining":-1},"udpSync":{"send":false,"receive":true,"sgrp":1,"rgrp":1},"liveDataOverride":0,"mainSegmentId":0,"segments":[{"id":0,"start":0,"stop":59,"length":59,"grouping":1,"spacing":0,"offset":0,"on":true,"freeze":false,"brightness":255,"cct":0,"set":0,"colors":[[0,0,255,0],[255,0,0,0],[0,0,0,0]],"effectId":129,"effectSpeed":255,"effectIntensity":255,"paletteId":0,"c1":128,"c2":128,"c3":16,"selected":true,"reverse":false,"mirror":false,"o1":false,"o2":false,"o3":false,"si":0,"m12":2}]}
[25/10/2024, 10:31:13] [wled-ws platform] Controller RGB LED Strip updated current On state to: true
[25/10/2024, 10:31:13] [wled-ws platform] Controller RGB LED Strip updated current Live state to: true
[25/10/2024, 10:31:13] [wled-ws platform] Controller RGB LED Strip updated current preset to: -1
[25/10/2024, 10:31:13] [wled-ws platform] Controller RGB LED Strip updated current playlist to: -1
[25/10/2024, 10:31:13] [wled-ws platform] Received initial info for controller RGB LED Strip
[25/10/2024, 10:31:13] [wled-ws platform] Update accessory info for controller RGB LED Strip to: brand=WLED product=FOSS version=0.15.0-b6 mac=xx:xx:xx:xx:xx:xx lc=5
[25/10/2024, 10:31:13] [wled-ws platform] Received effects for controller RGB LED Strip ["Solid","Blink","Breathe","Wipe","Wipe Random","Random Colors","Sweep","Dynamic","Colorloop","Rainbow","Scan","Scan Dual","Fade","Theater","Theater Rainbow","Running","Saw","Twinkle","Dissolve","Dissolve Rnd","Sparkle","Sparkle Dark","Sparkle+","Strobe","Strobe Rainbow","Strobe Mega","Blink Rainbow","Android","Chase","Chase Random","Chase Rainbow","Chase Flash","Chase Flash Rnd","Rainbow Runner","Colorful","Traffic Light","Sweep Random","Chase 2","Aurora","Stream","Scanner","Lighthouse","Fireworks","Rain","Tetrix","Fire Flicker","Gradient","Loading","Rolling Balls","Fairy","Two Dots","Fairytwinkle","Running Dual","RSVD","Chase 3","Tri Wipe","Tri Fade","Lightning","ICU","Multi Comet","Scanner Dual","Stream 2","Oscillate","Pride 2015","Juggle","Palette","Fire 2012","Colorwaves","Bpm","Fill Noise","Noise 1","Noise 2","Noise 3","Noise 4","Colortwinkles","Lake","Meteor","Meteor Smooth","Railway","Ripple","Twinklefox","Twinklecat","Halloween Eyes","Solid Pattern","Solid Pattern Tri","Spots","Spots Fade","Glitter","Candle","Fireworks Starburst","Fireworks 1D","Bouncing Balls","Sinelon","Sinelon Dual","Sinelon Rainbow","Popcorn","Drip","Plasma","Percent","Ripple Rainbow","Heartbeat","Pacifica","Candle Multi","Solid Glitter","Sunrise","Phased","Twinkleup","Noise Pal","Sine","Phased Noise","Flow","Chunchun","Dancing Shadows","Washing Machine","Rotozoomer","Blends","TV Simulator","Dynamic Smooth","Spaceships","Crazy Bees","Ghost Rider","Blobs","Scrolling Text","Drift Rose","Distortion Waves","Soap","Octopus","Waving Cell","Pixels","Pixelwave","Juggles","Matripix","Gravimeter","Plasmoid","Puddles","Midnoise","Noisemeter","Freqwave","Freqmatrix","GEQ","Waterfall","Freqpixels","RSVD","Noisefire","Puddlepeak","Noisemove","Noise2D","Perlin Move","Ripple Peak","Firenoise","Squared Swirl","RSVD","DNA","Matrix","Metaballs","Freqmap","Gravcenter","Gravcentric","Gravfreq","DJ Light","Funky Plank","RSVD","Pulser","Blurz","Drift","Waverly","Sun Radiation","Colored Bursts","Julia","RSVD","RSVD","RSVD","Game Of Life","Tartan","Polar Lights","Swirl","Lissajous","Frizzles","Plasma Ball","Flow Stripe","Hiphotic","Sindots","DNA Spiral","Black Hole","Wavesins","Rocktaves","Akemi"]
[25/10/2024, 10:31:13] [wled-ws platform] Received presets for controller RGB LED Strip {"0":{},"1":{"on":true,"brightness":255,"transition":7,"mainSegment":0,"segments":[{"id":0,"start":0,"stop":59,"grouping":1,"spacing":0,"of":0,"on":true,"freeze":false,"brightness":255,"cct":0,"set":0,"name":"","colors":[[255,236,207,0],[0,0,0,0],[0,0,0,0]],"effectId":0,"effectSpeed":128,"effectIntensity":128,"paletteId":0,"c1":128,"c2":128,"c3":16,"selected":true,"reverse":false,"mirror":false,"o1":false,"o2":false,"o3":false,"si":0,"m12":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0}],"name":"Lights On","label":"1"},"2":{"on":true,"brightness":90,"transition":7,"mainSegment":0,"segments":[{"id":0,"start":0,"stop":59,"grouping":1,"spacing":0,"of":0,"on":true,"freeze":false,"brightness":255,"cct":137,"set":0,"colors":[[255,0,0,0],[0,0,0,0],[0,0,0,0]],"effectId":0,"effectSpeed":128,"effectIntensity":128,"paletteId":0,"c1":128,"c2":128,"c3":16,"selected":true,"reverse":false,"mirror":false,"o1":false,"o2":false,"o3":false,"si":0,"m12":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0}],"name":"Red Solid","label":"2"},"3":{"on":true,"brightness":255,"transition":7,"mainSegment":0,"segments":[{"id":0,"start":0,"stop":59,"grouping":1,"spacing":0,"of":0,"on":true,"freeze":false,"brightness":255,"cct":0,"set":0,"name":"","colors":[[0,0,255,0],[255,0,0,0],[0,0,0,0]],"effectId":129,"effectSpeed":255,"effectIntensity":255,"paletteId":0,"c1":128,"c2":128,"c3":16,"selected":true,"reverse":false,"mirror":false,"o1":false,"o2":false,"o3":false,"si":0,"m12":2},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0}],"name":"Pixelwave","label":"3"}}
[25/10/2024, 10:31:13] [wled-ws platform] Received config for controller RGB LED Strip {"rev":[1,0],"vid":2410140,"id":{"mdns":"[controller-mdns]","name":"WLED","invocationName":"Light","sui":false},"network":{"espnow":false,"linked_remote":"","instances":[{"ssid":"[Wi-Fi Network Name]","pskl":13,"ip":[x,x,x,x],"gateway":[x,x,x,x],"subnet":[255,255,255,0]}],"dns":[8,8,8,8]},"accessPoint":{"ssid":"WLED-AP","pskl":8,"channel":1,"hide":0,"openBehavior":0,"ip":[4,3,2,1]},"wifi":{"sleep":false,"phy":false,"txpwr":78},"hardware":{"led":{"total":59,"maxCurrent":0,"maxCurrentPerLED":0,"cctCorrection":false,"cctFromRGB":false,"ic":false,"cctBlending":0,"fps":42,"autoWhiteMode":2,"ld":true,"instances":[{"start":0,"length":59,"pins":[16],"colorOrder":0,"reverse":false,"skip":0,"type":32,"offRefresh":false,"rgbwm":0,"freq":0,"maxpwr":0,"ledma":55}]},"com":[],"button":{"max":4,"pull":true,"instances":[{"type":2,"pin":[4],"macros":[0,0,0]},{"type":0,"pin":[-1],"macros":[0,0,0]},{"type":0,"pin":[-1],"macros":[0,0,0]},{"type":0,"pin":[-1],"macros":[0,0,0]}],"touchThreshold":32,"mqtt":false},"ir":{"pin":-1,"type":0,"sel":true},"relay":{"pin":-1,"reverse":false,"odrain":false},"baud":1152,"if":{"i2c-pin":[-1,-1],"spi-pin":[-1,-1,-1]}},"light":{"scaleBrightness":100,"paletteBlendingMode":0,"autoSegments":false,"gammaCorrection":{"brightness":1,"color":2.8,"val":2.8},"transition":{"enabled":true,"fx":true,"duration":7,"palettes":false,"rpc":5,"hrp":true},"nightlight":{"mode":1,"duration":60,"targetBrightness":0,"macro":0}},"defaults":{"preset":1,"on":true,"brightness":128},"interfaces":{"sync":{"port0":21324,"port1":65506,"espnow":false,"receive":{"brightness":true,"color":true,"effects":true,"pal":true,"groups":1,"seg":false,"sb":false},"send":{"en":false,"direct":false,"button":false,"alexa":false,"hue":true,"groups":1,"ret":0}},"nodes":{"list":true,"broadcast":true},"live":{"enabled":true,"mso":false,"rlm":true,"port":5568,"multicast":false,"dmx":{"universe":1,"sequenceSkip":false,"e131prio":0,"address":1,"dss":0,"mode":4},"timeout":25,"maxBrightness":false,"noGammaCorrection":true,"offset":0},"alexa":{"enabled":false,"macros":[0,0],"p":0},"mqtt":{"enabled":false,"broker":"","port":1883,"user":"","pskl":0,"clientId":"[Client ID]","rtn":false,"topics":{"device":"wled/0a4f10","group":"wled/all"}},"hue":{"enabled":false,"id":1,"interval":25,"receive":{"on":true,"brightness":true,"color":true},"ip":[192,168,178,0]},"ntp":{"enabled":false,"host":"0.wled.pool.ntp.org","timezone":0,"offset":0,"ampm":false,"lon":0,"lat":0}},"overlay":{"clock":0,"countdown":false,"min":0,"max":29,"o12pix":0,"show5MinuteMarks":false,"showSecondsTrail":false,"osb":false},"timers":{"countdown":{"goal":[20,1,1,0,0,0],"macro":0},"instances":[]},"ota":{"lock":false,"lockWiFi":false,"pskl":7,"arduinoOTA":true},"usermods":{"AudioReactive":{"enabled":true,"add-palettes":false,"analogmic":{"pin":-1},"digitalmic":{"type":1,"pin":[32,15,14,-1]},"config":{"squelch":10,"gain":60,"AGC":1},"frequency":{"scale":3},"dynamics":{"limiter":false,"rise":80,"fall":1400},"sync":{"port":11988,"mode":0}}}}
[25/10/2024, 10:31:13] [wled-ws platform] Controller RGB LED Strip connected
[25/10/2024, 10:50:29] [wled-ws platform] Set controller RGB LED Strip On state to: Off
[25/10/2024, 10:50:30] [wled-ws platform] Received controller RGB LED Strip state update {"on":false,"brightness":255,"transition":7,"presetId":-1,"playlistId":-1,"ledmap":0,"AudioReactive":{"on":true},"nightlight":{"on":false,"duration":60,"mode":1,"targetBrightness":0,"remaining":-1},"udpSync":{"send":false,"receive":true,"sgrp":1,"rgrp":1},"liveDataOverride":0,"mainSegmentId":0,"segments":[{"id":0,"start":0,"stop":59,"length":59,"grouping":1,"spacing":0,"offset":0,"on":true,"freeze":false,"brightness":255,"cct":0,"set":0,"colors":[[0,0,255,0],[255,0,0,0],[0,0,0,0]],"effectId":129,"effectSpeed":255,"effectIntensity":255,"paletteId":0,"c1":128,"c2":128,"c3":16,"selected":true,"reverse":false,"mirror":false,"o1":false,"o2":false,"o3":false,"si":0,"m12":2}]}
[25/10/2024, 10:50:30] [wled-ws platform] Received info for controller RGB LED Strip

Plugin Config:


{
  "controllers" : [
    {
      "address" : "192.168.x.x",
      "name" : "Office Bar Matrix",
      "presets" : "Drip"
    },
    {
      "address" : "192.168.x.x",
      "lightCapabilities" : 3,
      "name" : "RGB LED Strip ",
      "presets" : "2",
      "resetRealTimeModeAfterStream" : true,
      "showRealTimeModeButton" : false
    }
  ],
  "logging" : false,
  "name" : "wled-ws platform",
  "platform" : "wled-ws"
}

Environment:

smhex commented 4 weeks ago

Hi @MrSteffens ,

thank you for your report. Unfortunately, I never tested the plugin with Live mode on.

@LeLunZ : can you have a look at it?

Regarding CCT: the color temperature characteristic is not implemented yet.

Regards

LeLunZ commented 4 weeks ago

@MrSteffens so as @smhex said „Live Mode“ is On, is that correct?

I haven’t looked at the wled code in a longer time, but I think:

Live Mode/Realtime mode means the other device that’s streaming „colors“ to your WLED instance has full control. which means you can’t control the brightness from HomeKit while live mode is on.