FluxLED / MagicHome plugin

Posted on
Sun Apr 01, 2018 1:27 pm
srkinard offline
Posts: 319
Joined: Apr 10, 2016
Location: Austin, Texas

Re: FluxLED / MagicHome plugin

noel1983 wrote:
Hi Ross
What difference would the rgbw one from aliexpress make?
Have you a link you could share please?


RGBW has an additional channel for white LEDs, most often for Warm White LEDs strips since it's almost impossible to get a good warm white using just RGB.

Here's the link to the controllers...you have to click on the RGBW one...
https://www.aliexpress.com/item/Magic-Home-Mini-RGB-RGBW-Wifi-Controller-For-Led-Strip-Panel-light-Timing-Function-16million-colors/32791924935.html

This is the 12mm wide dual LED strips I use:
https://www.ebay.com/itm/5M-Double-Row-RGBWW-600leds-5050-RGB-2835-Warm-White-LED-Strip-Lights-IP20-/262513774666

Posted on
Sun Apr 01, 2018 1:34 pm
noel1983 offline
Posts: 446
Joined: Oct 17, 2014

Re: FluxLED / MagicHome plugin

Aah I hadn't seen those before, cool thanks for the links and the info.

Posted on
Sun Apr 01, 2018 1:39 pm
jh71283 offline
Posts: 127
Joined: Jun 16, 2014

Re: FluxLED / MagicHome plugin

noel1983 wrote:
Aah I hadn't seen those before, cool thanks for the links and the info.


I believe there are also RGBWW models, which gives you full colour and warm / cool whites.

However I have mine linked to a warm white only strip, just using the W channel and ignoring the others.

I might make some discrete device types to handle the different possibilities.


Sent from my iPhone using Tapatalk

Posted on
Mon Apr 02, 2018 12:28 pm
srkinard offline
Posts: 319
Joined: Apr 10, 2016
Location: Austin, Texas

Re: FluxLED / MagicHome plugin

jh71283 wrote:
I might make some discrete device types to handle the different possibilities.


So just got a pair of the normal RGB ones from Amazon. Got one online and connected to the SSID all my HA gear connects to.

Changing colors works, as does the ON and OFF buttons.

When I click the "Send Status Request" button I get this:

Code: Select all
   Flux LED Error                  Error in plugin execution ExecuteAction:

Traceback (most recent call last):
  File "plugin.py", line 239, in actionControlDimmerRelay
AttributeError: 'Plugin' object has no attribute 'getBulbStatus'

And when I try to change the brightness I get this in the log:
Code: Select all
   Flux LED                        Unhandled command "SetBrightness"

I turned on Debugging and here's a sample of the log where I changed the color, attempted a brightness change then attempted to get status:
Code: Select all
Apr 2, 2018 at 1:18:00 PM
   Flux LED Debug                  logger debugging enabled
   Flux LED Debug                  runConcurrentThread loop
   Flux LED Debug                  Updating device: RGB_LED_01
   Flux LED Debug                  (33, 255, 6, 0)
   Flux LED Debug                  Device Updated
   Flux LED Debug                  (33, 255, 6, 0)
   Flux LED Debug                  Device Updated
   Flux LED Debug                  runConcurrentThread loop
   Flux LED Debug                  Updating device: RGB_LED_01
   Flux LED Debug                  (33, 255, 6, 0)
   Flux LED Debug                  Device Updated
   Flux LED Debug                  (33, 255, 6, 0)
   Flux LED Debug                  Device Updated
   Flux LED Debug                  runConcurrentThread loop
   Flux LED Debug                  Updating device: RGB_LED_01
   Flux LED Debug                  (33, 255, 6, 0)
   Flux LED Debug                  Device Updated
   Flux LED Debug                  (33, 255, 6, 0)
   Flux LED Debug                  Device Updated
   Flux LED Debug                  actionControlDimmerRelay called for device RGB_LED_01. action: actionValue : ActionProps : (dict)
     blueLevel : 2.743418887257576 (real)
     greenLevel : 0.7120788097381592 (real)
     redLevel : 98.62460494041443 (real)
configured : True
delayAmount : 900
description : set color levels device to 99 1 3
deviceAction : SetColorLevels
deviceId : 1333906378
replaceExisting : True
textToSpeak :
   Flux LED Debug                  ON  [Color: (33, 255, 6) White: 0 raw state: 129,51,35,97,1,15,33,255,6,0,4,0,0,114,]
   Flux LED Debug                  device request status:
actionValue : ActionProps : (dict)
     blueLevel : 2.743418887257576 (real)
     greenLevel : 0.7120788097381592 (real)
     redLevel : 98.62460494041443 (real)
configured : True
delayAmount : 900
description : set color levels device to 99 1 3
deviceAction : SetColorLevels
deviceId : 1333906378
replaceExisting : True
textToSpeak :
   Flux LED Debug                  Device Updated
   Flux LED Debug                  runConcurrentThread loop
   Flux LED Debug                  Updating device: RGB_LED_01
   Flux LED Debug                  (251, 2, 7, 0)
   Flux LED Debug                  Device Updated
   Flux LED Debug                  (251, 2, 7, 0)
   Flux LED Debug                  Device Updated
   Flux LED Debug                  runConcurrentThread loop
   Flux LED Debug                  Updating device: RGB_LED_01
   Flux LED Debug                  (251, 2, 7, 0)
   Flux LED Debug                  Device Updated
   Flux LED Debug                  (251, 2, 7, 0)
   Flux LED Debug                  Device Updated
   Flux LED Debug                  actionControlDimmerRelay called for device RGB_LED_01. action: actionValue : 0
configured : True
delayAmount : 900
description : unknown action type device
deviceAction : RequestStatus
deviceId : 1333906378
replaceExisting : True
textToSpeak :
   Flux LED Debug                  ON  [Color: (251, 2, 7) White: 0 raw state: 129,51,35,97,1,15,251,2,7,0,4,0,0,80,]
   Flux LED Debug                  device request status:
actionValue : 0
configured : True
delayAmount : 900
description : unknown action type device
deviceAction : RequestStatus
deviceId : 1333906378
replaceExisting : True
textToSpeak :
   Flux LED Error                  Error in plugin execution ExecuteAction:

Traceback (most recent call last):
  File "plugin.py", line 239, in actionControlDimmerRelay
AttributeError: 'Plugin' object has no attribute 'getBulbStatus'

   Flux LED Debug                  runConcurrentThread loop
   Flux LED Debug                  Updating device: RGB_LED_01
   Flux LED Debug                  (251, 2, 7, 0)
   Flux LED Debug                  Device Updated
   Flux LED Debug                  (251, 2, 7, 0)
   Flux LED Debug                  Device Updated
   Flux LED Debug                  runConcurrentThread loop
   Flux LED Debug                  Updating device: RGB_LED_01
   Flux LED Debug                  (251, 2, 7, 0)
   Flux LED Debug                  Device Updated
   Flux LED Debug                  (251, 2, 7, 0)
   Flux LED Debug                  Device Updated
   Flux LED Debug                  runConcurrentThread loop
   Flux LED Debug                  Updating device: RGB_LED_01
   Flux LED Debug                  (251, 2, 7, 0)
   Flux LED Debug                  Device Updated
   Flux LED Debug                  (251, 2, 7, 0)
   Flux LED Debug                  Device Updated
   Flux LED Debug                  runConcurrentThread loop
   Flux LED Debug                  Updating device: RGB_LED_01
   Flux LED Debug                  (251, 2, 7, 0)
   Flux LED Debug                  Device Updated
   Flux LED Debug                  (251, 2, 7, 0)
   Flux LED Debug                  Device Updated
   Flux LED Debug                  runConcurrentThread loop
   Flux LED Debug                  Updating device: RGB_LED_01
   Flux LED Debug                  (251, 2, 7, 0)
   Flux LED Debug                  Device Updated
   Flux LED Debug                  (251, 2, 7, 0)
   Flux LED Debug                  Device Updated


Hope this helps debug it.

I'm going to order the RGBW set soon enough so I can test those. I have some strips with Warm White LEDs and some with Cool White LEDs that I'd like to put in assorted places.

Thanks
Ross

Posted on
Mon Apr 02, 2018 1:19 pm
srkinard offline
Posts: 319
Joined: Apr 10, 2016
Location: Austin, Texas

Re: FluxLED / MagicHome plugin

More tinkering triggers a few more of the errors noel posted too.

When I went to create an Action Group it popped up the config box where I could enter the values for Red, Green and Blue. Every time I tried to put a value in it would pop up the Communication with the plugin timed out. slide-down dialog which was dismissed via the OK button. The Indigo log shows these errors as I tried to first change color via the color picker and then I tried to edit each color value then close the dialog:
Code: Select all
   Error (client)                  performRequestMethod() caught exception: InvalidParameterError -- plugin does not define method rgbColorPickerUpdated
   Error (client)                  performRequestMethod() caught exception: InvalidParameterError -- plugin does not define method rgbColorFieldUpdated
   Error (client)                  performRequestMethod() caught exception: InvalidParameterError -- plugin does not define method rgbColorFieldUpdated
   Error (client)                  performRequestMethod() caught exception: InvalidParameterError -- plugin does not define method rgbColorFieldUpdated

Apr 2, 2018 at 2:03:53 PM
   Action Group                    RGB LED 01 - Test Action
   Flux LED Error                  plugin does not define method setRGB

The second error is when I tried to run the action group called RGB LED 01 - Test Action and it failed with the plugin does not define method setRGB error message.

Any thoughts or ideas?

The Fibaro devices I have create multiple devices when added. A master RGBW device like you have here, and also 4 child "dimmer" devices for each of the channels controlled.
I'll attach a screenshot of the Fibaro unit so you can see the composite device and the individual channels.

Let me know if I can do anything to help test and all.

Thanks
Ross
Attachments
Screenshot 2018-04-02 14.16.38.png
Screenshot 2018-04-02 14.16.38.png (237.63 KiB) Viewed 5490 times

Posted on
Thu Apr 05, 2018 2:26 pm
jh71283 offline
Posts: 127
Joined: Jun 16, 2014

Re: FluxLED / MagicHome plugin

Thanks for your patience guys, the plugin has now been updated to v0.0.2, and I think I have sorted all the bugs reported.

Happy trails!

Posted on
Thu Apr 05, 2018 2:34 pm
srkinard offline
Posts: 319
Joined: Apr 10, 2016
Location: Austin, Texas

Re: FluxLED / MagicHome plugin

Color selection now works, but cannot change brightness.

Code: Select all
   Flux LED                        Unhandled command "SetBrightness"


Progress is good...I'm looking forward to being able to use the much more reasonably priced controls...thanks!!

Ross

Posted on
Tue Apr 10, 2018 1:02 pm
jh71283 offline
Posts: 127
Joined: Jun 16, 2014

Re: FluxLED / MagicHome plugin

srkinard wrote:
Color selection now works, but cannot change brightness.

Code: Select all
   Flux LED                        Unhandled command "SetBrightness"


Progress is good...I'm looking forward to being able to use the much more reasonably priced controls...thanks!!

Ross


v0.0.3 published :D

Posted on
Tue Apr 10, 2018 1:03 pm
jh71283 offline
Posts: 127
Joined: Jun 16, 2014

Re: FluxLED / MagicHome plugin

It's worth noting that if you set brightness, the FluxLED library that I use assumes that you are wanting white light.

If you want a dimmer version of a colour, you need to adjust the RGB values accordingly.

Posted on
Tue Apr 10, 2018 3:22 pm
srkinard offline
Posts: 319
Joined: Apr 10, 2016
Location: Austin, Texas

Re: FluxLED / MagicHome plugin

Thanks for the update. Hopefully the RGBW units I ordered will arrive soon so I can experiment with them.

With the 0.0.3 version, when I edit the action to set the RGB levels...an error pops up for each field changed. If I change one filed, one error, two = 2 errors, etc.

Here's what it gives when I change all 3 values:

Code: Select all
   Flux LED Error                  Error in plugin execution UiAction:

Traceback (most recent call last):
  File "plugin.py", line 152, in rgbColorFieldUpdated
AttributeError: 'Plugin' object has no attribute 'calcRgbHexValsFromRgbLevels'

   Flux LED Error                  Error in plugin execution UiAction:

Traceback (most recent call last):
  File "plugin.py", line 152, in rgbColorFieldUpdated
AttributeError: 'Plugin' object has no attribute 'calcRgbHexValsFromRgbLevels'

   Flux LED Error                  Error in plugin execution UiAction:

Traceback (most recent call last):
  File "plugin.py", line 152, in rgbColorFieldUpdated
AttributeError: 'Plugin' object has no attribute 'calcRgbHexValsFromRgbLevels'

The values get set, so it doesn't prevent the use. Just FYI.

Thanks!
Ross

Posted on
Fri May 11, 2018 4:43 pm
jay (support) offline
Site Admin
User avatar
Posts: 18185
Joined: Mar 19, 2008
Location: Austin, Texas

Re: FluxLED / MagicHome plugin

Can I get a little clarification on what this plugin works with? I understand that it talks to RGBW controllers (from Supernight and Ledenet and perhaps others) that you then attach LED strips to.

Apparently, however, Flux and MagicLight (among others) also make bulbs that use the same chipset/protocol. Do those work with this plugin as well? Do you know of any way to identify devices from other manufacturers that may also work? I kinda feel like we may be sitting on a gold (or maybe just a silver) mine here but I'm just not sure.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Thu May 17, 2018 2:08 pm
ckeyes888 offline
Posts: 2417
Joined: Nov 26, 2009
Location: Kalispell, MT

Re: FluxLED / MagicHome plugin

Loving this one. I’d love to get rid of my remaining IR devices and this will get me down to only 2.
Would be really nice to have the fade function as well.

Thanks for a great plugin!

Carl

Posted on
Thu May 17, 2018 2:21 pm
jh71283 offline
Posts: 127
Joined: Jun 16, 2014

Re: FluxLED / MagicHome plugin

Hi guys sorry I missed the notifications.

@Jay, I'm not sure which other bulbs work with this plugin, but I don't see why the ones mentioned would not. I'll have a dig about on eBay and see what others I can get at a reasonable price to test with.

@Carl sorry, what Fade functionality do you need? I'll take a look at it when I understand :D

Posted on
Thu May 17, 2018 2:38 pm
ckeyes888 offline
Posts: 2417
Joined: Nov 26, 2009
Location: Kalispell, MT

Re: FluxLED / MagicHome plugin

Most all of the IR controlled LED strips I’ve seen have a Fade function on the remote...some have Flash or Strobe as well.

I’d be super happy with the Fade as it’s a kinda usable effect.

Thanks,

Carl
Attachments
FAFDC92E-C1E8-497E-9D11-0055E32A6886.jpeg
FAFDC92E-C1E8-497E-9D11-0055E32A6886.jpeg (140.32 KiB) Viewed 5152 times

Posted on
Thu May 17, 2018 3:01 pm
jh71283 offline
Posts: 127
Joined: Jun 16, 2014

Re: FluxLED / MagicHome plugin

Forgive my ignorance, what does it do? Does it just fade in and out of a couple, or does it cycle colours?

It might already be built into the LED controller, and I just have to activate it.


Sent from my iPhone using Tapatalk

Who is online

Users browsing this forum: No registered users and 2 guests