[OBSOLETE] Trend Setter

That is rather odd since as far as Alexa is concerned, the group device is no different than any other device in Smart Things :confused: I could understand if it didn’t behave properly but for it to say it can’t find it at all is very strange.

One thing I’ve noticed is normally if Alexa cannot find a device because you tell her the wrong name she says “Sorry I didn’t find X” but in my case she says “Sorry I didn’t find a device or group named X in Gene’ profile”. I’m not sure what the profile stuff is all about.

sigh… im totally lost.

I Forked your “smartThings” repository, and attempted to fork the 2 links in the readme, but they just won’t join into the repository. I’ve added the repos to the Smartthings Smartapps, but when I go to update there are no apps to add…

Sorry I am totally new to smartthings, just got it 2 days ago, so I have alot to learn. I am trying to basically follow the steps that I used to install the Nest… which was pretty simple.

If I am gathering this smartapp right, than I should be able to have 1 Actiontile for my Ceiling fan (3 hue lights) that can change color/dim/white levels all in one tile. This way I can group them all together and clean up my actiontile as well as make life easy on the control panel, instead of doing everything 3x.

Edit: Figured it out… that was mildly infuriating, and I blame fatigue!

There really needs to be a halfway decent guide on how to do this stickied somewhere so that noobs like myself can just glance at it and have a understanding. For installing smartapps in general…

Does it work now? How can I try it? What are the parameters? Thanks!

If you have more than one person in your household (you can link multiple Amazon accounts) you can tell Alexa to switch accounts by saying “switch accounts”. I guess it’s so you can have separate shopping lists/reminders etc.

1 Like

I got Github integration working with a workaround here:

I don’t know if this works for other countries though.

1 Like

I think I added your repo using the following data:

Owner: Kriskit
Name: SmartThingsPublic
Branch: master

But I got the following error when trying to update the group.groovy and trend-setter.groovy files…

Any idea why?

Hi, sorry, the original post has old information and I can’t edit it anymore… Try using the following:
https://community.smartthings.com/uploads/short-url/6Na2BfWMdBk4SVBpwv5GDfdf6Og.png

2 Likes

Bang! worked on the first go… :smiley: Thanks!

1 Like

Sorry. New to integating with the IDE.
I’ve added the 2 SmartApps (published the 1), added 6 Device Handlers successfully, but I’m not seeing anything showing up in the SmartThings App, what am I missing here?!

Edit: Nevermind, f*** Samsung, man. I was somehow logged into a different IDE under the same email address. I can only guess I got there because I didn’t know my correct password and had to try like 10 different ones. When I finally got in, I guess I wasnt really in ??? Logging out and back in knowing the correct password, had to redo all of it again and it works fine. Thanks Samsung.

1 Like

The best way to login to IDE is https://account.smartthings.com :slight_smile:

This app does exactly want I wanted however I’ve noticed that say you have 3 lights in a group turning the group on maybe 7/10 times all the light turn on at slightly different times so looks a bit naff anyway to fix this?

Unfortunately not. I send all the commands to ST at the same time but ST appears to process them in order rather than in parallel. Sometimes it’s noticeable, sometimes it’s not.

1 Like

Seems a bit naff asking Google to turn on the lights using hue turns them all on at the same time but smarthings does one at a time even through Google I’ve even seen a 1 second delay between two bulbs looks stupid.

I love how smart things is all my devices in one app but can’t help but think might be best to leave each bridge linked to Google home on its own and not use smartthings.

2 Likes

Just wondering. Is anyone else having trouble with this SA?

Every time I change the colour of a group I have (contains blooms and strips) it sets the brightness back down to 0%. Happens every time :frowning: can’t figure out why?

this is the output -

49437032-e58f-425c-9aeb-d4d25ee32ddd  12:16:47: debug Setting level to 1

49437032-e58f-425c-9aeb-d4d25ee32ddd 12:16:47: debug syncLevel(): [1, 1, 1, 1, 1]
49437032-e58f-425c-9aeb-d4d25ee32ddd 12:16:45: debug Setting level to 1
49437032-e58f-425c-9aeb-d4d25ee32ddd 12:16:45: debug Some values are the same, choosing most popular
49437032-e58f-425c-9aeb-d4d25ee32ddd 12:16:45: debug syncLevel(): [0, 1, 1, 1, 1]
49437032-e58f-425c-9aeb-d4d25ee32ddd 12:16:41: debug Setting level to 1
49437032-e58f-425c-9aeb-d4d25ee32ddd 12:16:41: debug Some values are the same, choosing most popular
49437032-e58f-425c-9aeb-d4d25ee32ddd 12:16:41: debug syncLevel(): [0, 1, 1, 0, 1]
49437032-e58f-425c-9aeb-d4d25ee32ddd 12:16:39: debug Setting level to 0
49437032-e58f-425c-9aeb-d4d25ee32ddd 12:16:39: debug Some values are the same, choosing most popular
49437032-e58f-425c-9aeb-d4d25ee32ddd 12:16:39: debug syncLevel(): [0, 0, 1, 0, 1]
49437032-e58f-425c-9aeb-d4d25ee32ddd 12:16:31: debug Percent On: 100
49437032-e58f-425c-9aeb-d4d25ee32ddd 12:16:31: debug syncSwitch(): [on, on, on, on, on]
49437032-e58f-425c-9aeb-d4d25ee32ddd 12:16:31: debug Setting level to 0
49437032-e58f-425c-9aeb-d4d25ee32ddd 12:16:31: debug syncLevel(): [0, 0, 0, 0, 0]
49437032-e58f-425c-9aeb-d4d25ee32ddd 12:16:31: debug syncHue(): [67, 67, 67, 67, 67]
49437032-e58f-425c-9aeb-d4d25ee32ddd 12:16:31: debug syncSaturation(): [98, 98, 98, 98, 98]
49437032-e58f-425c-9aeb-d4d25ee32ddd 12:16:17: error org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object ‘null’ with class ‘null’ to class ‘int’. Try ‘java.lang.Integer’ instead @line 350 (adjustSaturation)

First time I’ve seen this. Very odd, the error suggests an unexpected value. But why it would go to level zero I’m not sure at the moment. I will look at the code when I get a spare minute.

Thanks buddy -

I also just found this:
9421d98b-b973-4c31-92be-5a3881ce4f77 12:16:47: debug Updating Controller State: level -> [1, 1, 1, 1, 1]
9421d98b-b973-4c31-92be-5a3881ce4f77 12:16:47: debug getChildDevices(false), children=1
9421d98b-b973-4c31-92be-5a3881ce4f77 12:16:46: debug Device state change: Window Light -> level = 1
9421d98b-b973-4c31-92be-5a3881ce4f77 12:16:45: debug Updating Controller State: level -> [0, 1, 1, 1, 1]
9421d98b-b973-4c31-92be-5a3881ce4f77 12:16:45: debug getChildDevices(false), children=1
9421d98b-b973-4c31-92be-5a3881ce4f77 12:16:44: debug Device state change: New Lounge corner lamp -> level = 1
9421d98b-b973-4c31-92be-5a3881ce4f77 12:16:41: debug Updating Controller State: level -> [0, 1, 1, 0, 1]
9421d98b-b973-4c31-92be-5a3881ce4f77 12:16:41: debug getChildDevices(false), children=1
9421d98b-b973-4c31-92be-5a3881ce4f77 12:16:40: debug Device state change: TV Ambient -> level = 1
9421d98b-b973-4c31-92be-5a3881ce4f77 12:16:39: debug Updating Controller State: level -> [0, 0, 1, 0, 1]
9421d98b-b973-4c31-92be-5a3881ce4f77 12:16:39: debug getChildDevices(false), children=1
9421d98b-b973-4c31-92be-5a3881ce4f77 12:16:38: debug Device state change: Left Lounge Bloom -> level = 1
9421d98b-b973-4c31-92be-5a3881ce4f77 12:16:37: debug Updating Controller State: level -> [0, 0, 1, 0, 0]
9421d98b-b973-4c31-92be-5a3881ce4f77 12:16:37: debug getChildDevices(false), children=1
9421d98b-b973-4c31-92be-5a3881ce4f77 12:16:36: debug Device state change: Right Lounge Bloom -> level = 1
9421d98b-b973-4c31-92be-5a3881ce4f77 12:16:31: debug Updating Controller State: switch -> [on, on, on, on, on]
9421d98b-b973-4c31-92be-5a3881ce4f77 12:16:31: debug Updating Controller State: level -> [0, 0, 0, 0, 0]
9421d98b-b973-4c31-92be-5a3881ce4f77 12:16:31: debug Updating Controller State: hue -> [67, 67, 67, 67, 67]
9421d98b-b973-4c31-92be-5a3881ce4f77 12:16:31: debug Updating Controller State: saturation -> [98, 98, 98, 98, 98]
9421d98b-b973-4c31-92be-5a3881ce4f77 12:16:31: debug getChildDevices(false), children=1
9421d98b-b973-4c31-92be-5a3881ce4f77 12:16:31: debug Device state change: Left Lounge Bloom -> switch = on
9421d98b-b973-4c31-92be-5a3881ce4f77 12:16:31: debug Device state change: New Lounge corner lamp -> switch = on
9421d98b-b973-4c31-92be-5a3881ce4f77 12:16:31: debug Device state change: Right Lounge Bloom -> switch = on
9421d98b-b973-4c31-92be-5a3881ce4f77 12:16:31: debug Device state change: TV Ambient -> switch = on
9421d98b-b973-4c31-92be-5a3881ce4f77 12:16:31: debug Device state change: Window Light -> switch = on
9421d98b-b973-4c31-92be-5a3881ce4f77 12:16:31: debug Device state change: Left Lounge Bloom -> switch = off
9421d98b-b973-4c31-92be-5a3881ce4f77 12:16:31: debug Device state change: Left Lounge Bloom -> saturation = 98
9421d98b-b973-4c31-92be-5a3881ce4f77 12:16:31: debug Device state change: Left Lounge Bloom -> level = 0
9421d98b-b973-4c31-92be-5a3881ce4f77 12:16:30: debug Device state change: New Lounge corner lamp -> saturation = 98
9421d98b-b973-4c31-92be-5a3881ce4f77 12:16:30: debug Device state change: New Lounge corner lamp -> hue = 67
9421d98b-b973-4c31-92be-5a3881ce4f77 12:16:30: debug Device state change: New Lounge corner lamp -> switch = off
9421d98b-b973-4c31-92be-5a3881ce4f77 12:16:30: debug Device state change: New Lounge corner lamp -> level = 0
9421d98b-b973-4c31-92be-5a3881ce4f77 12:16:30: debug Device state change: Right Lounge Bloom -> switch = off
9421d98b-b973-4c31-92be-5a3881ce4f77 12:16:30: debug Device state change: Right Lounge Bloom -> saturation = 98
9421d98b-b973-4c31-92be-5a3881ce4f77 12:16:30: debug Device state change: Right Lounge Bloom -> hue = 67
9421d98b-b973-4c31-92be-5a3881ce4f77 12:16:30: debug Device state change: Right Lounge Bloom -> level = 0
9421d98b-b973-4c31-92be-5a3881ce4f77 12:16:30: debug Running command ‘setHue’ with arguments [66.80054] on [Window Light, TV Ambient, Right Lounge Bloom, New Lounge corner lamp, Left Lounge Bloom]…
9421d98b-b973-4c31-92be-5a3881ce4f77 12:16:30: debug Running command ‘on’ with arguments [] on [Window Light, TV Ambient, Right Lounge Bloom, New Lounge corner lamp, Left Lounge Bloom]…
9421d98b-b973-4c31-92be-5a3881ce4f77 12:16:30: debug Running command ‘setSaturation’ with arguments [97.64706] on [Window Light, TV Ambient, Right Lounge Bloom, New Lounge corner lamp, Left Lounge Bloom]…
9421d98b-b973-4c31-92be-5a3881ce4f77 12:16:30: debug Running command ‘on’ with arguments [] on [Window Light, TV Ambient, Right Lounge Bloom, New Lounge corner lamp, Left Lounge Bloom]…
9421d98b-b973-4c31-92be-5a3881ce4f77 12:16:30: debug Running command ‘setColor’ with arguments [[level:null, red:8, hex:#0806FF, blue:255, saturation:97.64706, hue:66.80054, green:6, alpha:1.0]] on [Window Light, TV Ambient, Right Lounge Bloom, New Lounge corner lamp, Left Lounge Bloom]…
9421d98b-b973-4c31-92be-5a3881ce4f77 12:16:30: debug Device state change: TV Ambient -> level = 0
9421d98b-b973-4c31-92be-5a3881ce4f77 12:16:30: debug Device state change: TV Ambient -> saturation = 98
9421d98b-b973-4c31-92be-5a3881ce4f77 12:16:30: debug Device state change: TV Ambient -> switch = off
9421d98b-b973-4c31-92be-5a3881ce4f77 12:16:30: debug Device state change: TV Ambient -> hue = 67
9421d98b-b973-4c31-92be-5a3881ce4f77 12:16:30: debug Device state change: Window Light -> level = 0
9421d98b-b973-4c31-92be-5a3881ce4f77 12:16:30: debug Device state change: Window Light -> switch = off
9421d98b-b973-4c31-92be-5a3881ce4f77 12:16:30: debug Device state change: Window Light -> hue = 67
9421d98b-b973-4c31-92be-5a3881ce4f77 12:16:30: debug Device state change: Window Light -> saturation = 98

I’m looking through it a bit more too see if I can see - It looks like it reads this line:

15:10:18: debug Running command ‘setColor’ with arguments [[level:null, red:255, hex:#FFBC83, blue:131, saturation:48.627453, hue:7.6612906, green:188, alpha:1.0]] on [Window Light, TV Ambient, Right Lounge Bloom, New Lounge corner lamp, Left Lounge Bloom]…

Its seems to take “null” as 0 and sets the level to either 1 or 0 the hue strips go to 0 and the blooms go to 1… It’s really weird.

I have a “Room” in the hue app with the same lights in it, when I change that it works ok - It’s definatly something related to Trend Setter or the Device Handler as thats the only thing different that is controlling their functions.

I have also had a similar issue… it likes to always go down to 0% as I’m making tweaks like color. I am using ActionTiles as my interface too. It seems to happen through the ActionTiles platform… maybe this could be the cause of my issue?