Latest Release 0.3.35 - Patterns have arrived!

Posted on
Fri Oct 30, 2015 11:04 am
Chameleon offline
Posts: 611
Joined: Oct 04, 2014

Latest Release 0.3.35 - Patterns have arrived!

Hi all

It's been a hard slog but I've completed the pattern generator for LED Manager. It was a little more difficult than I thought because I've had to write a new module, outside of Indigo, just so you can develop your patterns and save them. In the end I think it worked :D

I'm releasing a new version 0.3.35 today and it's working well on my system for four days so I feel confident enough to release it as a new Beta version.

DISCLAIMER: Given the fact that I have no Zipato devices at all most of the coding and functionality is less tested than I would like and I'm relying on users to test it for me and highlight the errors. However, I don't expect any changes in that area to impact other users

You can download the latest stable version (0.3.35) from this link: https://www.dropbox.com/s/dayo30alpcx8lki/Fibaro%20RGB%20Lights.zip?dl=1

BTW - if you've saved any colours since the last update then you'll loose them when you upgrade. If you want to keep them please view the custom states for each device and make a note of the red, green,blue and white settings. You can then create the colour again :D

What's new in version 0.3.35?

Stablisation - I've completed a series of tests to remove some of the more irritating and minor bugs and improve performance.

F10 - It would be really cool if I could define a pattern, say an alarm, and then automatically run it when I want. So to do this I've created some new features. The first can be found on the Menu (Plugins/LED Manager/) called Add, Edit or Delete Patterns). When you select this option you'll be taken to our new pattern generator. It looks like this...

Screen Shot 2015-10-30 at 16.30.45.png
LED Manager Pattern Generator
Screen Shot 2015-10-30 at 16.30.45.png (82.55 KiB) Viewed 6374 times


From here you can Add a new pattern, Edit an old one or Delete the pattern completely. I've added a default one called Alarm by clicking on the drop down in the top left and this is how it's displayed...

Screen Shot 2015-10-30 at 16.31.33.png
Typical Pattern
Screen Shot 2015-10-30 at 16.31.33.png (85.58 KiB) Viewed 6374 times


If you change the settings (colours or durations) then don't forget to click Save Edits or they will be lost,.

If you click Add Pattern you can create your own. I've created one here called New Pattern

Screen Shot 2015-10-30 at 16.32.42.png
Creating your own pattern
Screen Shot 2015-10-30 at 16.32.42.png (88.77 KiB) Viewed 6374 times


First entry a cycle type from the dropdown next to the name you've just entered.... You've a choice of Once, Many or Forever which I think are self explanatory. I don't recommend you use Forever as it will keep on going until you stop the plugin. If you select Many then you can enter the number of times it should run in the next box.

Use the dropdowns to select colours and enter durations for how long they should be displayed (in milliseconds) in the box on the right of each colour. You can stop at any point leaving the None in the colour box. BTW if you look carefully you'll also see that your saved colours have been included in the list (see last update)

Finally save the pattern...

Screen Shot 2015-10-30 at 16.33.08.png
New Pattern Saved
Screen Shot 2015-10-30 at 16.33.08.png (86.74 KiB) Viewed 6374 times


Now you'll see that your pattern is in the list...

Screen Shot 2015-10-30 at 16.33.30.png
In the list (note -s)
Screen Shot 2015-10-30 at 16.33.30.png (96.09 KiB) Viewed 6374 times


Notice the '-'s in the name. These have been added as indigo doesn't like spaces in dictionary key names so these replaced any spaces you've put in and still keeps the names readable.

Screen Shot 2015-10-30 at 16.33.53.png
Finishing Off
Screen Shot 2015-10-30 at 16.33.53.png (91.65 KiB) Viewed 6374 times


Once you completed your edits, adds and deletions then click Save. If you click Cancel then all of the changes that you've made in that session will be lost.

Now you've created some patterns you can apply them to devices. You can either use the menu option or create an action.

Screen Shot 2015-10-30 at 16.45.37.png
Menu Option
Screen Shot 2015-10-30 at 16.45.37.png (115.92 KiB) Viewed 6374 times


or action

Screen Shot 2015-10-30 at 16.44.11.png
New Action Command
Screen Shot 2015-10-30 at 16.44.11.png (97.07 KiB) Viewed 6374 times


One last thing. You'll notice that you're given the opportunity to apply the pattern to all linked devices in a group. If you select this option ALL of the devices in a single group will change colour :)

That's about it for today. Please have a go and see how it goes. Let me know of any bugs or issues as usual...

Many thanks


Mike

Posted on
Mon Nov 09, 2015 7:30 pm
toille27 offline
User avatar
Posts: 234
Joined: Jul 18, 2011
Location: Doylestown PA

Re: Latest Release 0.3.35 - Patterns have arrived!

This is a really cool expansion of your plug in, I will mess around with this when I have some free time later this week. I do have a Zipato bulb to try out. I'm assuming the heavy work of quick pattern color changes is carried outside of Indigo to prevent interference with day to day signals?

Posted on
Tue Nov 10, 2015 4:32 am
Chameleon offline
Posts: 611
Joined: Oct 04, 2014

Re: Latest Release 0.3.35 - Patterns have arrived!

toille27 wrote:
This is a really cool expansion of your plug in, I will mess around with this when I have some free time later this week. I do have a Zipato bulb to try out. I'm assuming the heavy work of quick pattern color changes is carried outside of Indigo to prevent interference with day to day signals?


Yes - the actual pattern changing is handed over to an independent thread in indigo so that the rest of the sever can carry on as normal without interference. However, it still generates z wave commands to the device to change the colour according to the sequence defined so it does add to z wave traffic - but there's no way around that :D I've also asked Matt & Jay if we can suppress messages in the log but that could be achieved by removing association 1 to the controller and polling the device instead which is what I do.

Mike

Posted on
Tue Nov 10, 2015 6:39 am
DaveL17 offline
User avatar
Posts: 6739
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Latest Release 0.3.35 - Patterns have arrived!

I don't know if this is even possible presently, but what would be a super option (for the Fib RGBW anyway) is if you could figure out how to offload the patterns to the Fib itself. There was some discussion about this a while back. We were able to access the factory patterns, but IIRC, no one figured out how (or it wasn't possible) to set the custom pattern settings directly.

Get on that will you?

Great job with the plugin!
Dave


Sent from my iPhone using Tapatalk

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Thu Nov 12, 2015 3:38 pm
petematheson offline
Posts: 847
Joined: Sep 14, 2014
Location: Southampton, UK

Re: Latest Release 0.3.35 - Patterns have arrived!

This sounds awesome, although I've been unable to get it to work! Any help please bud?

LED Light Manager Running pattern Alarm on Stairs LEDs
LED Light Manager Now running pattern now...
LED Light Manager Errors on Change Colour:<type 'exceptions.ValueError'>
LED Light Manager LED Device STAIRS LEDS has been updated
LED Light Manager Errors on Change Colour:<type 'exceptions.ValueError'>
LED Light Manager LED Device STAIRS LEDS has been updated
LED Light Manager Errors on Change Colour:<type 'exceptions.ValueError'>
LED Light Manager LED Device STAIRS LEDS has been updated
LED Light Manager Errors on Change Colour:<type 'exceptions.ValueError'>
LED Light Manager LED Device STAIRS LEDS has been updated
LED Light Manager Errors on Change Colour:<type 'exceptions.ValueError'>
LED Light Manager LED Device STAIRS LEDS has been updated
LED Light Manager Errors on Change Colour:<type 'exceptions.ValueError'>
LED Light Manager LED Device STAIRS LEDS has been updated
LED Light Manager Errors on Change Colour:<type 'exceptions.ValueError'>
LED Light Manager LED Device STAIRS LEDS has been updated
LED Light Manager Errors on Change Colour:<type 'exceptions.ValueError'>
LED Light Manager LED Device STAIRS LEDS has been updated
LED Light Manager Errors on Change Colour:<type 'exceptions.ValueError'>
LED Light Manager LED Device STAIRS LEDS has been updated
LED Light Manager Errors on Change Colour:<type 'exceptions.ValueError'>
LED Light Manager LED Device STAIRS LEDS has been updated
LED Light Manager Errors on Change Colour:<type 'exceptions.ValueError'>
LED Light Manager LED Device STAIRS LEDS has been updated
LED Light Manager Completed pattern Alarm on Stairs LEDs

Posted on
Fri Nov 13, 2015 3:42 am
Chameleon offline
Posts: 611
Joined: Oct 04, 2014

Re: Latest Release 0.3.35 - Patterns have arrived!

petematheson wrote:
This sounds awesome, although I've been unable to get it to work! Any help please bud?

LED Light Manager Running pattern Alarm on Stairs LEDs
LED Light Manager Now running pattern now...
LED Light Manager Errors on Change Colour:<type 'exceptions.ValueError'>
LED Light Manager LED Device STAIRS LEDS has been updated
LED Light Manager Errors on Change Colour:<type 'exceptions.ValueError'>
LED Light Manager LED Device STAIRS LEDS has been updated
LED Light Manager Errors on Change Colour:<type 'exceptions.ValueError'>
LED Light Manager LED Device STAIRS LEDS has been updated
LED Light Manager Errors on Change Colour:<type 'exceptions.ValueError'>
LED Light Manager LED Device STAIRS LEDS has been updated
LED Light Manager Errors on Change Colour:<type 'exceptions.ValueError'>
LED Light Manager LED Device STAIRS LEDS has been updated
LED Light Manager Errors on Change Colour:<type 'exceptions.ValueError'>
LED Light Manager LED Device STAIRS LEDS has been updated
LED Light Manager Errors on Change Colour:<type 'exceptions.ValueError'>
LED Light Manager LED Device STAIRS LEDS has been updated
LED Light Manager Errors on Change Colour:<type 'exceptions.ValueError'>
LED Light Manager LED Device STAIRS LEDS has been updated
LED Light Manager Errors on Change Colour:<type 'exceptions.ValueError'>
LED Light Manager LED Device STAIRS LEDS has been updated
LED Light Manager Errors on Change Colour:<type 'exceptions.ValueError'>
LED Light Manager LED Device STAIRS LEDS has been updated
LED Light Manager Errors on Change Colour:<type 'exceptions.ValueError'>
LED Light Manager LED Device STAIRS LEDS has been updated
LED Light Manager Completed pattern Alarm on Stairs LEDs


Pete

I need a little more information to solve the problem. It's probably that a field in the pattern has been left blank - typically a duration which should read 0 if it's not being used. However, I'd like to find the problem for you.

I've created a new version of LED Manager (0.3.40) which contains additional error handling - I've recently added this functionality to all of my plugins and this was the last one. Whenever the plugin finds an error it writes it to an error log called LEDManagerErrors.log. This file is stored in: /Library/Application Support/Perceptive Automation/Indigo 6/Logs

It's a standard text file and can be viewed using text edit. It will provide us with a lot more information on what's going wrong and allow me to trap the error gracefully and provide you with a solution. If you could 'upgrade your version, run the plugin, run a pattern (just like you did to get this) and then send me a copy of the error log (as an attachment) or at least a cut & paste of the important information from the log I'll look at it right away :D

Regards

Mike

Posted on
Sat Nov 14, 2015 1:51 pm
toille27 offline
User avatar
Posts: 234
Joined: Jul 18, 2011
Location: Doylestown PA

Re: Latest Release 0.3.35 - Patterns have arrived!

I just tried this out, started with a simple pattern and same errors for me.....

Action Group Attic LED Fourth of July Lighting
LED Light Manager Running pattern Red-White-Blue on LM Attic LED Lights
LED Light Manager Now running pattern now...
LED Light Manager Errors on Change Colour:<type 'exceptions.ValueError'>
LED Light Manager LED Device LM ATTIC LED LIGHTS has been updated
Sent INSTEON "Attic LED Power" on
LED Light Manager Errors on Change Colour:<type 'exceptions.ValueError'>
LED Light Manager LED Device LM ATTIC LED LIGHTS has been updated
LED Light Manager Errors on Change Colour:<type 'exceptions.ValueError'>
LED Light Manager LED Device LM ATTIC LED LIGHTS has been updated
LED Light Manager Errors on Change Colour:<type 'exceptions.ValueError'>
LED Light Manager LED Device LM ATTIC LED LIGHTS has been updated
LED Light Manager Errors on Change Colour:<type 'exceptions.ValueError'>
LED Light Manager LED Device LM ATTIC LED LIGHTS has been updated
LED Light Manager Errors on Change Colour:<type 'exceptions.ValueError'>
LED Light Manager LED Device LM ATTIC LED LIGHTS has been updated
LED Light Manager Errors on Change Colour:<type 'exceptions.ValueError'>
LED Light Manager LED Device LM ATTIC LED LIGHTS has been updated
LED Light Manager Errors on Change Colour:<type 'exceptions.ValueError'>
LED Light Manager LED Device LM ATTIC LED LIGHTS has been updated
LED Light Manager Errors on Change Colour:<type 'exceptions.ValueError'>
LED Light Manager LED Device LM ATTIC LED LIGHTS has been updated
LED Light Manager Errors on Change Colour:<type 'exceptions.ValueError'>
LED Light Manager LED Device LM ATTIC LED LIGHTS has been updated

I get similar error when trying to change to a static color also.

Here is the log...

Screen Shot 2015-11-14 at 2.46.04 PM.png
Screen Shot 2015-11-14 at 2.46.04 PM.png (115.09 KiB) Viewed 6110 times


Also, I tried to add a new device for my Zipato bulb but it doesn't show up at all to be able to pick it.

Posted on
Thu Nov 19, 2015 2:14 pm
petematheson offline
Posts: 847
Joined: Sep 14, 2014
Location: Southampton, UK

Re: Latest Release 0.3.35 - Patterns have arrived!

Any news on the error? Sorry I didn't post logs as thought you may use the ones from the post below mine.

Posted on
Thu Nov 19, 2015 2:22 pm
petematheson offline
Posts: 847
Joined: Sep 14, 2014
Location: Southampton, UK

Re: Latest Release 0.3.35 - Patterns have arrived!

Scratch that - Fixed it by going into the Device and pressing find RGB devices rather than typing in manually.

Posted on
Thu Nov 19, 2015 2:27 pm
toille27 offline
User avatar
Posts: 234
Joined: Jul 18, 2011
Location: Doylestown PA

Re: Latest Release 0.3.35 - Patterns have arrived!

I set mine up as you just noted but still got the errors. You aren't getting any errors now and it works?

Posted on
Thu Nov 19, 2015 2:34 pm
petematheson offline
Posts: 847
Joined: Sep 14, 2014
Location: Southampton, UK

Re: Latest Release 0.3.35 - Patterns have arrived!

All working OK - although i did also update to the latest version 0.3.40 so that might have something to do with it?

Posted on
Thu Nov 19, 2015 2:38 pm
toille27 offline
User avatar
Posts: 234
Joined: Jul 18, 2011
Location: Doylestown PA

Re: Latest Release 0.3.35 - Patterns have arrived!

I am already running 0.3.40. That's the version I got the errors with. I will wait for a response from Mike.

Posted on
Tue Nov 24, 2015 3:58 am
Chameleon offline
Posts: 611
Joined: Oct 04, 2014

Re: Latest Release 0.3.35 - Patterns have arrived!

toille27 wrote:
I am already running 0.3.40. That's the version I got the errors with. I will wait for a response from Mike.


Sorry it's taken me so long to respond I've been distracted by life :wink:

I need a copy of the LEDManagerError.log file rather than the Apple/Indigo one. You can find the file at this location:

/Library/Application Support/Perceptive Automation/Indigo 6/Logs

Inside this folder you should find a file call LEDManagerErrors.log. It's just a text file and you can open it with TextEdit. If you could open this file and send me a copy of the errors it displays I should be able to narrow down this issue. It's better to access this log when the plugin is running and you've just reproduced the error. The LED Manager clears the file at every reboot and every couple of days so it's better to reload the plugin, get the error and then access the log..

Thanks

Mike

Posted on
Tue Nov 24, 2015 8:20 am
toille27 offline
User avatar
Posts: 234
Joined: Jul 18, 2011
Location: Doylestown PA

Re: Latest Release 0.3.35 - Patterns have arrived!

Here you go, tried adjusting the ms durations to smaller numbers and still doesn't work.

Screen Shot 2015-11-24 at 9.12.49 AM.png
Screen Shot 2015-11-24 at 9.12.49 AM.png (112.1 KiB) Viewed 5868 times

Posted on
Sun Nov 29, 2015 5:13 am
Chameleon offline
Posts: 611
Joined: Oct 04, 2014

Re: Latest Release 0.3.35 - Patterns have arrived!

toille27 wrote:
Here you go, tried adjusting the ms durations to smaller numbers and still doesn't work.


Thanks for that - very helpful.

This tells me that for some reason one of your patterns is corrupt in the text file and it's causing this problem. I've trapped this error now so that it won't cause the same problem to your system BUT that doesn't resolve the corrupt pattern in the file. As I'm not sure how it was created I've added a new feature to the plugin to resolve it.

First I recommend that you install the latest version 0.3.41 from the link in the latest software post.

Then you have two options:

    a) Run the Add, Edit or Delete Pattern menu option and delete the pattern that's causing the issue and then recreate it (remember to save your changes)

    or

    b) Run the new command Purge the Patterns Database to remove corrupt data. This will reset the patterns file to blank and you can then recreate your patterns again.

Let me know how it goes

Regards

Mike

Who is online

Users browsing this forum: No registered users and 1 guest