[OBSOLETE] Trend Setter

Both Osram spots (GU10) and the E27 bulbs

Iā€™m trying to add it as a smart app and it seems to respond :

No signature of method: script14790983021431496728714.metadata() is applicable for argument types: (script14790983021431496728714$_run_closure1) values: [script14790983021431496728714$_run_closure1@16aa51c8] Possible solutions: getMetadata(), getState(), setState(java.lang.Object), metaClass(groovy.lang.Closure)

Any thoughts on what is happening? Doesnā€™t seem to be adding it correctly?

Iā€™m just popping in to say thanks! Your app works marvelously for my needs. Cheers

This is working very well for me. I have several ceiling fixtures with multiple Osram LIGHTIFY bulbs in them and this is the first app that has allowed me to control them properly. Thanks again!

So is this working with hue bulbs? And CoRE?

Canā€™t see why there would be any incompatibilities for either of them. In the end the virtual control devices are effectively proxies for the devices in the group. Assuming those devices react appropriately to the standard commands there shouldnā€™t be any issues.

Mad props for this App! I did this through the Alexa app when I was too lazy to go and make a virtual ā€œXā€ then go to CoRE and setup a piston. This is simple and easy and works perfect for my needs.

Thanks!

Is anyone in here tieing scenes to switches? I canā€™t figure out how the best way to do this is.

Was this ever updated to allow setting color temp? The scenes I create are mostly different color temps with Hue ambient white bulbs, so an app like this to control that would be great.

Just wanted to let everyone know. Works perfect with Philips Hue lights :slight_smile:Thank you for this app!!!

Works wonderfully. great app. only improvement would be proper GitHub integration

Just wanted to say Thanks! This was works perfectly and was totally idiot proof (me getting it working in one shot proves it:) ). Thanks again!

1 Like

Can Trend Setter cope with a mix of interacting with the switches virtually and physically?

I just installed Trend Setter and synced my 3 Cooper Aspire dimmer switches. I found that they all stayed in sync when I used my smart phone to set ā€œthe levelā€ and on/off. When I physically adjusted the level or on/off by pushing on one of the dimmer switches, Trend Setter saw that they were out of sync, but did not keep the others updated.

Let me know if Trend Setter does handle this. It may be that my setup is somehow interfering with Trend Setter.
@Kriskit, thanks for the contribution, it looks great, and Iā€™m excited that it may finally solve my 3 dimmer setup problem!

Hi @aadhoc229,

It doesnā€™t support that no, the original idea is that it groups devices together so that one single virtual device controls the devices in the group. Not the other way aroundā€¦ however, your request has intrigued me so Iā€™ve started working on a way of making it work. It may not be the most efficient of things due to the way Trend Setter works but it might work :slight_smile:

It will be a setting on the group for bidirectional control. Iā€™ll update you when I have got something working.

If I get time, Iā€™ll look at colour temperature control as well as itā€™s been requested a lot.

1 Like

Maybe this is a dumb question but can you tell me the proper settings to use GitHub integration with your code? I set it up the same way I have setup others and I canā€™t seem to get it working. My apps/devices of yours are still green in the IDE, indicating there is no matching copy in the repository but I can also see it in the repository as new but am unable to update/add it from there as it says ā€œskipped due to errorsā€.



First of all a big thank you to @Kriskit for all the work. This solved 95% of my needs to control the Osram Lightify bulbs I have as a group. Like many others in the thread, I would love to see a temperature control feature as well. Iā€™m contemplating trying to hack one up myself for my specific instance (100% Osram Lightify bulbs) but my coding level is novice so Iā€™m not optimistic on what I can achieve.

In the meantime, I thought Iā€™d share my quick and dirty solution to have the lights return to Soft White after being controlled as a color group. I created a CORE piston that watches the Virtual Group switch and when it changes to OFF, it runs a routine to set the color temperature on all the individual bulbs in the group to 2700K and then shuts them back off again. The next time you activate the Virtual Group or any of the bulbs, they come back up as Soft White.

This requires extra configuration and you have to make sure your groups are in sync between TrendSetter and CORE, but it does work for my needs.

1 Like

Is there anyway to remove a virtual device or group. Nothing Iā€™ve tried (removing the virtual device directly, removing the group in Trendsetter, force deleting from the IDE, etc.) seems to work.

I need to get rid of some of these virtual device/groups that I am no longer using. Hereā€™s the error I get in the IDE:

deleted object would be re-saved by cascade (remove deleted object from associations): [physicalgraph.app.InstalledSmartApp#6944f95e-98a3-4f31-aa2b-9fa7ec5bbb25]; nested exception is org.hibernate.ObjectDeletedException: deleted object would be re-saved by cascade (remove deleted object from associations): [physicalgraph.app.InstalledSmartApp#6944f95e-98a3-4f31-aa2b-9fa7ec5bbb25]

Any help would be appreciated.

Hey Chris, not sure if you made any progress on that last note (having the ā€œslaveā€ switches update the status of the ā€œmasterā€. If you have, I would be hugely appreciative of the code. I have a set of lights that could be controlled by either the virtual switch and Trend Setter, a physical switch on the wall, the native app the switches come with (Lutron Caseta) or HomeKit. Realistically I donā€™t use all of those things, but the physical wall switch does get used a lot. Any thoughts on how I might trigger a status update of the master virtual switch based on a change of status of the lights? Thanks for any thoughts!

Hi Oleg,

I did get somewhere, I got stuck trying to get it to work nicely with colourful lights. Itā€™s not the most elegant solution but it does seem to work for switches and dimmers (at least with virtual devices havenā€™t tested with actual devices):

You can replace the Group code with this:

The switch group device handler code:

The dimmer group device handler code:

You will find under the group settings there is an ā€œExperimentalā€ section at the bottom that you can expand and turn on the Bidirectional setting.

Give it a shot, see what happens, but I make no promises it wonā€™t behave strangely.

Hope this helps :slight_smile:

1 Like

Hi,

Very sorry for not responding sooner.

Iā€™m afraid that I donā€™t have any specialist knowledge for removing stubborn SmartApps, itā€™s supposed to cascade and delete the things related. When this wonā€™t happen, itā€™s a problem with SmartThings. You may have to contact support to get them to remove it manually for you :frowning:

Sorry to not be more help.