FluxLED / MagicHome plugin

Plugins that users have built. NOTE: plugins that were developed for Indigo versions older than 2022.1 will have to be updated to work with Indigo 2022.1 (Python 3 - see this blog post for details). If the plugin listed here is not in the Plugin Store (which will show updated plugins) then you will need to ask on the appropriate thread below if it has been updated and where you get get the update.
stuartcolman
Posts: 81
Joined: Sun Nov 01, 2015 2:56 pm
Location: Essex, United Kingdom

Re: FluxLED / MagicHome plugin

Post by stuartcolman »

The plugin has been enabled for a little while now, and I have seen some crashes and reports being sent off. Any update on how it's going?
User avatar
DaveL17
Posts: 6845
Joined: Tue Aug 20, 2013 11:02 am
Location: Chicago, IL, USA
Contact:

Re: FluxLED / MagicHome plugin

Post by DaveL17 »

Woke up this morning to a log full of error messages. Unplugging and replugging the MagicHome device seems to have sorted it.

Code: Select all

2018-08-19 00:00:14.494	Flux LED Error	Error updating device: Workshop - Flux LED Strip Lights. Is the IP address correct?
2018-08-19 00:00:19.495	Flux LED Error	Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 33, in runConcurrentThread
  File "plugin.py", line 95, in updateStatus
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/FluxLED.indigoPlugin/Contents/Server Plugin/flux_led/__main__.py", line 518, in __init__
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/FluxLED.indigoPlugin/Contents/Server Plugin/flux_led/__main__.py", line 648, in update_state
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/FluxLED.indigoPlugin/Contents/Server Plugin/flux_led/__main__.py", line 620, in query_state
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/FluxLED.indigoPlugin/Contents/Server Plugin/flux_led/__main__.py", line 598, in _determine_query_len
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/FluxLED.indigoPlugin/Contents/Server Plugin/flux_led/__main__.py", line 1017, in _send_msg
timeout: timed out

2018-08-19 00:00:19.495	Flux LED Error	plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)

2018-08-19 00:00:39.502	Flux LED Error	Error updating device: Workshop - Flux LED Strip Lights. Is the IP address correct?
2018-08-19 00:00:44.506	Flux LED Error	Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 33, in runConcurrentThread
  File "plugin.py", line 95, in updateStatus
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/FluxLED.indigoPlugin/Contents/Server Plugin/flux_led/__main__.py", line 518, in __init__
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/FluxLED.indigoPlugin/Contents/Server Plugin/flux_led/__main__.py", line 648, in update_state
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/FluxLED.indigoPlugin/Contents/Server Plugin/flux_led/__main__.py", line 620, in query_state
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/FluxLED.indigoPlugin/Contents/Server Plugin/flux_led/__main__.py", line 598, in _determine_query_len
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/FluxLED.indigoPlugin/Contents/Server Plugin/flux_led/__main__.py", line 1017, in _send_msg
timeout: timed out

2018-08-19 00:00:44.506	Flux LED Error	plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)

2018-08-19 00:01:04.515	Flux LED Error	Error updating device: Workshop - Flux LED Strip Lights. Is the IP address correct?
2018-08-19 00:01:09.519	Flux LED Error	Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 33, in runConcurrentThread
  File "plugin.py", line 95, in updateStatus
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/FluxLED.indigoPlugin/Contents/Server Plugin/flux_led/__main__.py", line 518, in __init__
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/FluxLED.indigoPlugin/Contents/Server Plugin/flux_led/__main__.py", line 648, in update_state
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/FluxLED.indigoPlugin/Contents/Server Plugin/flux_led/__main__.py", line 620, in query_state
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/FluxLED.indigoPlugin/Contents/Server Plugin/flux_led/__main__.py", line 598, in _determine_query_len
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/FluxLED.indigoPlugin/Contents/Server Plugin/flux_led/__main__.py", line 1017, in _send_msg
timeout: timed out

2018-08-19 00:01:09.519	Flux LED Error	plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
2018-08-19 00:01:29.538	Flux LED Error	Error updating device: Workshop - Flux LED Strip Lights. Is the IP address correct?
Would you be able to add a trap for to handle the timeout exception more gracefully?
I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]
jrcitizen
Posts: 26
Joined: Wed Jan 04, 2017 5:43 pm

Re: FluxLED / MagicHome plugin

Post by jrcitizen »

Any update on if/how this works with five-pin controllers that support RGB +CW + WW (cool white and warm white)? A few example controllers:

https://www.amazon.co.uk/Sunix-Smart-Co ... B01J5A7ABW

https://www.amazon.co.uk/Wireless-Contr ... B07BKNWRL5

https://www.amazon.co.uk/LIGHTEU-contro ... B074XLBZ15
ELWOOD
Posts: 230
Joined: Sun Feb 11, 2007 12:15 pm
Location: Ramsey, NJ

Re: FluxLED / MagicHome plugin

Post by ELWOOD »

jrcitizen wrote:Any update on if/how this works with five-pin controllers that support RGB +CW + WW (cool white and warm white)? A few example controllers:

https://www.amazon.co.uk/Sunix-Smart-Co ... B01J5A7ABW

https://www.amazon.co.uk/Wireless-Contr ... B07BKNWRL5

https://www.amazon.co.uk/LIGHTEU-contro ... B074XLBZ15


Yes, BUT.

Have two RBG that I have been using for a few months. They work but due seem to cause a lot of
SQL logger errors on the log page:


Sep 5, 2018, 5:52:06 PM
SQL Logger creating table device_history_1380234678 for "LED-RBG TOP SHELF"
SQL Logger Error exception trying to insert row into table device_history_1023089061 ("LED-RBG-W") -- unable to modify table
SQL Logger Error ERROR: relation "device_history_1380234678" already exists

SQL Logger Error INSERT INTO device_history_1023089061 ("alertmode", "bluelevel", "bluelevel_ui", "brightnesslevel", "colorblue", "colorgreen", "colormode", "colorred", "colortemp", "colorx", "colory", "effect", "greenlevel", "greenlevel_ui", "hue", "onoffstate", "online", "redlevel", "redlevel_ui", "saturation", "whitelevel", "whitelevel_ui") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s);

Recently added a new RBG/W controller seemed to work at first but than had my whole system starting to
run slow. See my post viewtopic.php?f=201&t=21183. Found the HomeKit
Bridge plugin was using over 100% of the CPU. After disabling the FluxLED plugin the HomeKit usage went
back to normal.

Have had the plugin disabled for a few weeks with no more trouble with HomeKit.

Turned the plugin back on and HomeKit CPU usage went back back up to 100%. Disabled FluxLED, HomeKit
back to normal. Removed the new RBG/W controller from devices, restart FluxLED plugin, so far HomeKit
normel.

Added the RBG/W back in and got 3 or 4 pages of SLQ Logger errors, so far HomeKit seems to be running
OK. Will keep checking the CPU usage and if it goes back up will remove the RBG/W controller.

There is no way in the plugin to use actions to turn on the white LED. The only way I can turn it on is by
using the “W” slider on the device window, than the on/off but if a action changes the color you have to use
the “w” slider again to turn the white on.

So yes it kind of works with RBG/W but the plugin definitely needs a lot more work.

Elwood
stuartcolman
Posts: 81
Joined: Sun Nov 01, 2015 2:56 pm
Location: Essex, United Kingdom

Re: FluxLED / MagicHome plugin

Post by stuartcolman »

Is the development of this plugin dead? It had so much promise as well :(
ckeyes888
Posts: 2431
Joined: Thu Nov 26, 2009 2:41 pm
Location: Kalispell, MT

Re: FluxLED / MagicHome plugin

Post by ckeyes888 »

stuartcolman wrote:Is the development of this plugin dead? It had so much promise as well :(

+1 Really hope this one gets some love.

Carl
DVDDave
Posts: 470
Joined: Sun Feb 26, 2006 6:33 pm
Location: San Jose, CA

Re: FluxLED / MagicHome plugin

Post by DVDDave »

This plugin is generally working great so far with my new Magic Home device (https://www.amazon.com/gp/product/B078B ... UTF8&psc=1)

I'm having one problem though. When I try to control color with the Apple Home app, which is connecting through Homekit Bridge, the plugin hangs up and starts giving the error

Code: Select all

Flux LED Error                  Error updating device: Closet Light. Is the IP address correct?
I then need to cycle power on the device or reload the plugin to get it going again. However, Alexa and the Magic Home app still work fine.

Thanks for the great plugin and, even with the error, it should prove very useful.

--Dave
jh71283
Posts: 127
Joined: Mon Jun 16, 2014 1:10 am

Re: FluxLED / MagicHome plugin

Post by jh71283 »

It's not dead guys, I've been giving the other MQTT plugin all my attention.

I'll get myself back up to speed on this over the next few days.
stuartcolman
Posts: 81
Joined: Sun Nov 01, 2015 2:56 pm
Location: Essex, United Kingdom

Re: FluxLED / MagicHome plugin

Post by stuartcolman »

Any updates on this? I'm keen to test/use especially with the run-up to Christmas :D
noel1983
Posts: 446
Joined: Fri Oct 17, 2014 1:35 pm

Re: FluxLED / MagicHome plugin

Post by noel1983 »

I’ve just installed a strip of lights in our porch for some Christmas lighting! Have the magic home app working but indigo control would be so much better.




Sent from my iPhone using Tapatalk
editordz
Posts: 67
Joined: Fri Dec 01, 2006 2:18 pm
Location: Sherman Oaks, CA

Re: FluxLED / MagicHome plugin

Post by editordz »

For what it's worth, I have perfect Magic Home integration from Indigo. We have three LED strips on individual controllers that get triggered dozens of times every day (slaved to light switches), and they work 100% reliable. The only time I have to manually intervene is when our internet goes down for whatever reason (thanks Spectrum). Then, the Wifi controllers have to be power cycled in order to be seen again by Indigo.

I'm using FluxLed plugin on Indigo 7.2.0 on Mac Mini running 10.10.5.

Good luck,
Dan
noel1983
Posts: 446
Joined: Fri Oct 17, 2014 1:35 pm

Re: FluxLED / MagicHome plugin

Post by noel1983 »

Thanks Dan I’ll give it another go, last time I was suffering regular crashes I believe caused by the plugin.
Cheers


Sent from my iPhone using Tapatalk
stuartcolman
Posts: 81
Joined: Sun Nov 01, 2015 2:56 pm
Location: Essex, United Kingdom

Re: FluxLED / MagicHome plugin

Post by stuartcolman »

The problem I’m seeing is that the plugin can’t seem to find the WiFi controller, even though it is on a static IP and available all of the time. Just keeps coming up with a “is the IP correct?” Error.

Also the plugin didn’t switch off the lights last night.

Thanks

Stuart
editordz
Posts: 67
Joined: Fri Dec 01, 2006 2:18 pm
Location: Sherman Oaks, CA

Re: FluxLED / MagicHome plugin

Post by editordz »

Which controllers are you using? I'm using these, and have 100% success rate:

https://www.amazon.com/Goldwin-Controll ... ref=plSrch
stuartcolman
Posts: 81
Joined: Sun Nov 01, 2015 2:56 pm
Location: Essex, United Kingdom

Re: FluxLED / MagicHome plugin

Post by stuartcolman »

That's the exact same wifi controller as I'm using. Still seems a bit "hit and miss".
Post Reply

Return to “User Plugins”