Odd problem with routines


#1

1) Give a description of the problem
Routine turns a virtual switch called Goodbye on. That is SUPPOSED to trigger “Goodbye changes to on” and a whole bunch of things are supposed to happen.

The routine does turn Goodbye on but, webcore doesn’t recognize it to run the piston.

I can manually switch it on from the My Home panel and it works fine.

I did change it to Location changes to away but am wondering what could be wrong here. Is it a bug or am I supposed to use conditions instead of triggers if I want to use a routine to switch something on and trigger a piston?


#2

I’ve been looking at this code recently for another issue with Changes to. I’ll update this thread tomorrow after doing some debugging to see how physical and programmatic events differ.


#3

Thanks. I thought I was going nuts. :slight_smile:


#4

Can I ask a clarifying question? So, your routine turns on a virtual switch and you’re using the virtual switch turning on to cause a piston to fire? Why not just trigger it off the routine running?


#5

Umm… Was looking for this option and never found it.

Oh man… I feel stupid. It was right there in virtual devices. I’m glad I found that but! I do need that functionality anyway and looking forward to hear if it was a bug


#6

I can tell you it’s working for me. I have a couple virtual switches setup that the Alexa turns on which then run some WC pistons. I’ve not had any issues with them working.

I’m just using the “Simulated Switch” DTH which is built-in to ST.

I also use “changes to on” as my Trigger in both pistons.


#7

Ya, that doesn’t work for me when it’s in a routine. Works fine otherwise


#8

Do you have the interaction set correctly for when the change takes place? You don’t have it set to physical do you?


#9

It was ‘device changes to on’

Not sure why that matters because it works fine with it manually turning on, just not in the routine


#10

Device changes to on? Or switch changes to on? Because there are two was that devices can be interacted with. Physical or programmatic. Obviously the routine is a programmatic and not a physical.


#11

I have any in the change type. Programmatic or User.


#12

It’s physical and programmatic. Can you post a green screen shot of the piston?