Hi JMZ, first apologies for the long post, I’ve tried to diagnose this myself so have included some relevant log entries.
I’m trying to get Profile Switching working but it doesn’t seem to work consistently.
My setup in BI Fusion is:
Auto Sync Profile to Mode: Enabled
Mode Home: 0
Mode Away: 1
ST Mode for BI Inactive: Home
I have 2 Routines, named Home and Away with the “Mode” set respectively.
I can manually trigger profile changes within Blue Iris Server and triggering my Away routine in the Smartthings App leads to BI Server changing the profile but triggering Home does not change the profile.
If I go into BI Server and “Sync BI to ST” then it detects the change in mode and switches the profile to inactive.
From my debug logs I get this (relevant logs only, oldest at the top):
Triggering Away routine when BI Profile is Inactive and BI Server is in sync:
4:44:25 PM: info HH execute(true, null, null), newMode: Away
4:44:25 PM: trace prefix(): Goodbye.
4:44:25 PM: debug getprofileName got 1
4:44:25 PM: debug getprofileName returning Away
4:44:25 PM: info Changing Blue Iris Profile to ‘1’, named 'Away’
4:49:23 PM: debug GET /admin?profile=1&lock=2&user=**&pw= HTTP/1.1
Accept: /
User-Agent: Linux UPnP/1.0 SmartThings
HOST: 192.168.2.207:81
4:44:25 PM: info BI_modeChange detected mode now: Away
4:44:25 PM: debug BI_modeChange matched to Away
4:44:25 PM: debug BI_Found profile 1
4:44:26 PM: debug Blue Iris Profile set to Away
But, when I execute the “Home” routine, with BI profile confirmed to be “1” and BI Server app in sync with profile.
4:47:55 PM: info HH execute(true, null, null), newMode: Home
4:47:55 PM: trace prefix(): Welcome Home!
4:47:55 PM: info BI_modeChange detected mode now: Home
4:47:55 PM: debug BI_modeChange matched to Home
and that’s it. There doesn’t seem to be a http request to the server to trigger the profile change.