CoRE - Get peer assistance here with setting up Pistons

I’m trying to get my sonos to play a web stream at volume 20. I set up a test switch and got the web stream url, but if I have it on another station, it just turns that station back on instead of the station I told it to. Any ideas?

The url plugged directly into my sonos works, so it shouldn’t be that.

http://kdge-fm.akacast.akamaistream.net/7/259/20088/v1/auth.akacast.akamaistream.net/kdge-fm

Maybe lower case http?

I just tried. Still plays whatever station it was on previously.

Can anyone recommend a way to trigger a piston if a dimmer switch is double or triple pressed?

I’d like to use a switch to perform different actions if it’s

  • on and pressed; turn off
  • on and double pressed; turn off all lights and arm alarm
  • off and pressed; turn on % 10%
  • off and double pressed; turn on @ 100%

I’ve been using CoRE for a couple of months now and I love it! I was using the old Rule Machine and had lots of problems with it, but CoRE is so much better. Thanks to everyone involved in creating this SmartApp!

Last week, I went into CoRE settings and turned on “Expert Mode”. Since doing that, I’ve found that I can do just about everything using BASIC pistons (no more trying to choose between “Latching”, “And-If”, “Or-If”, “Else-If”, etc.).

Here’s a new piston I created a few days ago which has been working great:

Are there any downsides to using a BASIC piston for just about everything? When would I really need one of the other piston types?

Glad you love it :wink:

You should use whatever:

a) works (reference to a nice movie Whatever Works)
b) makes sense to you - I mean whatever you understand the logic of and grasp as a concept

Other than that, there is no good way or bad way. Whatever works :wink:

I ended up using what another post recommended. It works when I just use a sonos favorite through the harmony hub. Not sure why I could never get the sonos command to work the way I tried before.

Thanks! That worked as a test. However one small challenge left - the maximum time listed under the Was Duration condition is 60 minutes. I need 4 hours. How can I do this? Thanks again!

I can put a word with the CoRE developer to extend that to more. Problem with that (time limit) is that the was retrieves the list of events in the required time window. There is a hard limit of 7 days (ST only provides last 7 days of data), but limiting it to something short ensures faster SQL queries, which leads to the underlying reason for the 60 min limit. But I guess that’s not CoRE’s concern? :wink:

apologies if this has been asked/answered before, i did some searching but didn’t catch it.

is there a way to have a piston set the dim level on a physical switch but not turn on the light? my goal is to have all my dimmable lights change their dim levels at various points in time, but to keep the current state of the light. so for example, at 9:30, set them to 20%, leaving off lights that aren’t being used at that time. right now when i set the dim %, it activates the light.

I don’t know of any device that would allow a level adjustment without turning on. While it might exist, this is an inherent behavior of smart bulbs/dimmers.

interesting, i had hoped that it would be possible since on these switches - Cooper Wiring Devices RF9540-N - you can manually adjust the dim level without turning on/off the light.

of note, i’m using the default dimmer switch device handler that comes with smartthings. when i use the app to set the dim level of the bulb while off, it turns on the light. maybe a customer device handler might allow for this to work?

I was looking to do this very thing with my GE Z-Wave In-Wall Smart Dimmer (Toggle) switches and started this thread: GE Smart Dimmer when turned on, default to full brightness - #26 by mechanicguy

Basically it ended with “Set Level” always turning on the light. The piston I made issues a “Turn Off” immediately afterward. With an LED bulb, you get a brief full-on which I found annoying, so I set it to run during the night. Incandescent bulbs aren’t as noticeable.

another interesting note, using smarttiles.click, i was able to adjust the dimmness slider without activating the light. then when i turned the light on from the tile, it came up to the dimmness level i set it to.

if i look at the events from the device, it seems like the difference is that there is a source of APP_COMMAND with a value of setLevel that is issued by the smarttiles.click method vs coming from the smartthings app, it’s just a source of DEVICE with a value of 99. @ady624 can we have the piston issue a source of APP_COMMAND vs DEVICE, that might do the trick.

Still at a loss. Cant find anything to do this. Anyone have any luck with creating triggers based on windspeed

Why in the heck doesn’t this wait 4 minutes before it locks the door?

Put the wait and the lock in the same action. The wait is useless as it is, it only affects tasks following it within the same action. None in your case

As far as I know, CoRE issues the standard setLevel command to the device. It does not request it to turn on. Check the DTH code see if it automatically sends an on() command as well?