andrew77 Posted January 6, 2020 Share Posted January 6, 2020 Hi guys, I'm not sure if I'm supposed to post this issue here. If it's not the right forum I apologize. I have a program for a bathroom fan. Switchlinc is turned on and waits 25 minutes then shuts off. This works when I use the SWL but when I tell Alexa to do this it turns on fine but doesn't shut off after the 25 minutes. Clearly the program works. Have a missed something with the ISY Portal? Drew Link to comment
lilyoyo1 Posted January 6, 2020 Share Posted January 6, 2020 Did you add the switch or the program to the portal Link to comment
andrew77 Posted January 6, 2020 Author Share Posted January 6, 2020 Yes, as a program (just double checked.) I also made the spoken Bathroom Fan Timer as Bathroom Fan was already used by the SWL itself I'd like to simplify that and whenever someone says turn on Bathroom Fan it would trigger the program. I'm hoping this is possible Link to comment
oberkc Posted January 6, 2020 Share Posted January 6, 2020 (edited) It is bery possible that such a program would not be triggered when initiated by alexa or the ISY. Does it have a control condition or status condion? nevermind. I see your response at the same time as my post. Edited January 6, 2020 by oberkc Link to comment
andrew77 Posted January 6, 2020 Author Share Posted January 6, 2020 No status or controls. (I changed the timer to 10 seconds for testing only) Bathroom Fan - [ID 0022][Parent 0001] If Control 'Bathroom Fan' is switched On Then Wait 10 seconds Set 'Bathroom Fan' Off Else - No Actions - (To add one, press 'Action') Link to comment
oberkc Posted January 6, 2020 Share Posted January 6, 2020 1 minute ago, andrew77 said: No status or controls. ??? I see that your program DOES have a control condition. My initial concern is that turning on the switch via alexa would not trigger such a program. But you stated that you added the program directly to alexa, so I cannot say why this would not work. Link to comment
andrew77 Posted January 6, 2020 Author Share Posted January 6, 2020 I'm sorry, I misunderstood what you meant as far as controls etc. (I wasn't thinking turning a switch on would be a control but it clearly says it in the program I pasted) Should I just make a Routine in Alexa? I Always try to get the ISY to do everything first as its tidier that way (I'm assuming) Drew Link to comment
lilyoyo1 Posted January 6, 2020 Share Posted January 6, 2020 I would write a separate program if status of the fan is on then wait 10 seconds shut off. Add that to Alexa and see what happens Link to comment
TomL Posted January 6, 2020 Share Posted January 6, 2020 IIRC, alexa only activates THEN and ELSE clauses. On for THEN, Off for ELSE. I would guess it is turning on the fan as te spoke for the fan, but is not actually running the program. THere is no statement to turn fan on in the THEN clause, so I don't think it is activating what you think it is. You could try another program where you name FAN Test or something have the THEN statement turn on the fan wait xx mins and turn off and ELSE turn off. Link to comment
oberkc Posted January 6, 2020 Share Posted January 6, 2020 1 hour ago, TomL said: IRC, alexa only activates THEN and ELSE clauses That is my recollection, as well. If the program was added to alexa, and then asked to be turned on, I would assume the THEN path would run but, apparently, it is not. Perhaps alexa misunderstands and tries to turn on the switch, rather than the program. Or, follow lilyoyo1 suggestion and change the condition to "status" rather than "control". Link to comment
larryllix Posted January 6, 2020 Share Posted January 6, 2020 That is my recollection, as well. If the program was added to alexa, and then asked to be turned on, I would assume the THEN path would run but, apparently, it is not. Perhaps alexa misunderstands and tries to turn on the switch, rather than the program. Or, follow lilyoyo1 suggestion and change the condition to "status" rather than "control". It's a simple test. Try this. 'Alexa....dim the xxxx' If it works you are not using the program. The If triggered are not involved. The ISY portal is the trigger. Sent using Tapatalk Link to comment
smacbride Posted January 6, 2020 Share Posted January 6, 2020 I use Alexa to turn state variables on or off. I then have programs that run based on those variable being turned on/off etc. It works fine. Link to comment
lilyoyo1 Posted January 6, 2020 Share Posted January 6, 2020 (edited) Changing control to status should work. Regardless off how it's turned on the fan will turn off after 25 minutes. Edited January 6, 2020 by lilyoyo1 1 Link to comment
andrew77 Posted January 7, 2020 Author Share Posted January 7, 2020 That totally makes sense. I’ll try it when I get home from work and post again thanks for the tip Link to comment
andrew77 Posted January 7, 2020 Author Share Posted January 7, 2020 Works perfectly. thanks again guys. Drew Link to comment
Recommended Posts