I've setup a momentary push button to allow family members to easily set feed mode. Initially, I named the digital switch "FeedSw". I then created a virtual outlet named "FeedVO" to register the button push and hold the feed mode open for 5 min.
Now, here's the interesting part. Everytime I upload the following code to FeedVO:
Fallback OFF
Set OFF
If FeedSw CLOSED Then ON
Min Time 005:00 Then ON
It would revert to the following, like clockwork:
Fallback OFF
Set OFF
If FeedA 000 Then ON
Min Time 005:00 Then ON
It repeatedly replaced my "If FeedSw CLOSED Then ON" with "If FeedA 000 Then ON". This was repeatable using either the web interface or apex.local, and I went nuts trying to debug this. Finally, I renamed "FeedSw" to "Sw_Fd" and it worked just fine. Here's the final code:
Fallback OFF
Set OFF
If Sw_Fd CLOSED Then ON
Min Time 005:00 Then ON
Such a strange bug! Figured I mention it here in case anyone else comes across this issue.
Bookmarks