Author Topic: HTTP API issue - Command running unpredictably  (Read 1011 times)

iostream212

  • Sr. Member
  • ****
  • Posts: 453
    • View Profile
HTTP API issue - Command running unpredictably
« on: December 20, 2011, 09:49:55 am »
Background:
I have a few scenes in Elve that work perfectly. My trouble started when I wanted to activate those scenes using my ISY.
I decided to do so by using the HTTP API and the ISY networking module. Below is an example of the network resource I created:

I tested it in ISY and the scene runs as expected.
Next I created some programs in ISY to manually execute the scene
Code: [Select]
If
   - No Conditions - (To add one, press 'Schedule' or 'Condition')
 
Then
        Resource 'Master TV On'
 
Else
   - No Actions - (To add one, press 'Action')
I run the 'then' path and the scene activates as expected. Notice there are no conditions in this program. It requires manual execution.

Forward to now. This scene is running by itself at all hours of the night. I don't understand how it is being triggered. Here is a screen shot of my log:

ISY log is not showing the program running at all.
What is going on? Thanks!
I always wanted to be somebody. In retrospect, I think I should have been more specific.

bpwwer

  • Full Member
  • ***
  • Posts: 210
    • View Profile
Re: HTTP API issue - Command running unpredictably
« Reply #1 on: December 20, 2011, 10:39:09 am »
Just a thought ...

Are you sure the ISY isn't running the program?  Because you have no condition, it may be running it any  time it gets re-evaluated.  If you look at the ISY program summary page, it shows the last time the program was run.  Does that match with the last time the scene was activated in Elve?

You could disable the program on the ISY to make sure it isn't getting run.  I think you can still manually run it even when it is disabled.

iostream212

  • Sr. Member
  • ****
  • Posts: 453
    • View Profile
Re: HTTP API issue - Command running unpredictably
« Reply #2 on: December 20, 2011, 05:54:06 pm »
Hi,
Thanks for the reply. I didn't think that it was the ISY just because the program last run time didn't match the Elve logs. In fact the last run time on ISY was far earlier than the run times logged in Elve. And to be honest I am not 100% on how programs are evaluated in ISY. It would make sense that it is an ISY issue because this never started until I added the Elve scenes as a ISY resource.
I always wanted to be somebody. In retrospect, I think I should have been more specific.

iostream212

  • Sr. Member
  • ****
  • Posts: 453
    • View Profile
Re: HTTP API issue - Command running unpredictably
« Reply #3 on: December 20, 2011, 09:48:40 pm »
I posted over on ISY forums. Seems they started a topic on unpredictable program behavior.

Sent from my SCH-I510 using Tapatalk
I always wanted to be somebody. In retrospect, I think I should have been more specific.

bpwwer

  • Full Member
  • ***
  • Posts: 210
    • View Profile
Re: HTTP API issue - Command running unpredictably
« Reply #4 on: December 21, 2011, 09:44:27 am »
Did you try disabling the program on the ISY to see if the behavior stops?

It does seem more likely that the ISY would be running the program than Elve would be randomly triggering the scene.

iostream212

  • Sr. Member
  • ****
  • Posts: 453
    • View Profile
Re: HTTP API issue - Command running unpredictably
« Reply #5 on: December 22, 2011, 11:59:10 pm »
I disabled the program this evening in ISY. If the scene fails to run overnight it is definitely ISY triggering. If that is the case it is really strange because ISY is not showing the program as being ran at all.

Sent from my SCH-I510 using Tapatalk
I always wanted to be somebody. In retrospect, I think I should have been more specific.

iostream212

  • Sr. Member
  • ****
  • Posts: 453
    • View Profile
Re: HTTP API issue - Command running unpredictably
« Reply #6 on: December 25, 2011, 07:49:47 am »
It was an ISY programming issue. I had an old program that I forgot was buried in my nest of folders that was causing the unwanted behavior. Removed the program and thus removed this issue. The problem was ME. :-X

Sent from my A500 using Tapatalk
I always wanted to be somebody. In retrospect, I think I should have been more specific.

John Hughes

  • Administrator
  • Hero Member
  • *****
  • Posts: 2847
    • View Profile
    • Codecore Technologies
Re: HTTP API issue - Command running unpredictably
« Reply #7 on: December 26, 2011, 04:42:41 pm »
Thanks for the update, I'm glad you got it working.
John Hughes
Codecore Technologies