I’ll do the button cycling tonight and let you know if that fixes it.
It was definitely working at least as recently as a few weeks ago. I only noticed it about a week ago (though I don’t often reboot my server). Definitely NOT something that you changed in your code.
OK, the toggling seems to have fixed it. Profiles are now held through a reboot. I also tested profile switching; still works fine… except now, Blue Iris Fusion isn’t sending a success (nor a failure) notification that the profile switched. ?. Whatever – it all works, so no complaints! Thank you!
I installed the smartapp from github and followed the instructions but when my modes change it doesn’t affect Blue Iris and I get this error in the live log. Any idea what might be wrong?
error java.lang.NullPointerException: Cannot invoke method getAt() on null object @ line 328
It sounds like the app wasn’t installed fully. Try uninstalling it and then make sure you publish both the child and parent apps in the smartthings API. After you get both published, then go to the smartthings app on your phone and only install the parent app. You don’t need to manually install the child app (each set of triggers will automatically install an instance of the child app). Give that a shot and let me know. You two are the first to have a problem like that in a long time, if ever.
Reverted back to wan enabled secure only and it’s working again. Can’t get LAN going. Perhaps it’s a windows firewall issue. But that error is still occurring on LAN
I see that you define BIprofileNames inside externalAction(profile) but not in localAction(profile).
Lines 179 and 253: def BIprofileNames = response2.data.data.profiles
BIprofileNames is then passed as a parameter to profileName(names, num) where the exception happens. I think it throws an exception because you call profileName(…) from inside localAction(…) so the ‘names’ property is null.
I changed lines 142, 143 to:
if(receiveAlerts == "No") sendNotificationEvent("Temporarily changed Blue Iris to profile ${profile}")
if(receiveAlerts == "Yes") send("Temporarily changed Blue Iris to profile ${profile}")
And lines 158, 159 to:
if(receiveAlerts == "No") sendNotificationEvent("Blue Iris Fusion hold changed Blue Iris to profile ${profile}")
if(receiveAlerts == "Yes") send("Blue Iris Fusion hold changed Blue Iris to profile ${profile}")
Has anyone been able to get the profile option change to work. I have tried many times and nothing. I get nothing in the log when I make a change to the status. If not are there any other options out there.
If I run this http://ip:port/admin?profile=2&user=biUser&pw=biPass it seems to change fine