Author Topic: Skip MiOS authentication when on LAN?  (Read 812 times)

Offline tadr

  • Full Member
  • ***
  • Posts: 127
  • Karma: +6/-2
Skip MiOS authentication when on LAN?
« on: April 26, 2018, 10:45:25 pm »
It appears that Homewave authenticates via MiOS regardless of whether the phone is on the same LAN as the Vera unit -- is there a way to disable this to permit faster LAN connections?

For example, when I launch homewave I first get a wifi icon in the corner with a red background, then a cloud with a red background, then after 5-10 seconds, a white wifi icon and a successful connection.  If I enable "Direct to Vera (no MiOS)" setting, Homewave connects to my Vera almost instantaneously when I'm on my LAN.  Of course, it doesn't work when I'm on a cellular connection or different network with this setting (unless I open up a port for Vera on my router, which I'm not about to do).  So -- is there a way to have Homewave try a direct connection first before defaulting to MiOS authentication?

I thought it already did this but apparently I'm mistaken...

Offline intveltr

  • Moderator
  • Hero Member
  • *****
  • Posts: 1721
  • Karma: +100/-5
Re: Skip MiOS authentication when on LAN?
« Reply #1 on: May 03, 2018, 12:54:15 pm »
It should always try and connect directly first, but at the same time it will connect to Mios to verify the account settings.  I'll check if the Mios login somehow interferes with the local connect
HomeWave is available in the App Store!  Turn your iPhone/iPad into an easy-to-use remote control for Vera.

Offline tadr

  • Full Member
  • ***
  • Posts: 127
  • Karma: +6/-2
Re: Skip MiOS authentication when on LAN?
« Reply #2 on: May 04, 2018, 10:50:29 pm »
It should always try and connect directly first, but at the same time it will connect to Mios to verify the account settings.  I'll check if the Mios login somehow interferes with the local connect

I'm happy to send you logs or anything else you need to help debug.  For what it's worth, this is a fairly recent issue (but I can't pinpoint a start date unfortunately).  I will also note that when I was troubleshooting this I removed the homewave app completely and reinstalled, and when I reloaded it I had to manually input the info for my vera (it did not find it automatically).  Could that be related?

Offline intveltr

  • Moderator
  • Hero Member
  • *****
  • Posts: 1721
  • Karma: +100/-5
Re: Skip MiOS authentication when on LAN?
« Reply #3 on: May 05, 2018, 07:03:24 am »
Could be related.  Did anything change in your network setup (like having WiFi on a separate subnet)?
HomeWave is available in the App Store!  Turn your iPhone/iPad into an easy-to-use remote control for Vera.

Offline tadr

  • Full Member
  • ***
  • Posts: 127
  • Karma: +6/-2
Re: Skip MiOS authentication when on LAN?
« Reply #4 on: May 07, 2018, 11:11:51 am »
Could be related.  Did anything change in your network setup (like having WiFi on a separate subnet)?

My network setup did change fairly recently, but I'm not certain if the change corresponded with the Homewave issues or not.  Specifically, I swapped out my router for a Ubiquiti USG and changed my wifi access points to Ubiquiti as well.  My wifi is on the same subnet as my wired devices though, and I don't have any other issues connecting to network resources from wifi devices though.  And like I said Homewave works perfectly when I enable "Direct to Vera" and I'm on my local wifi.  Any ideas?

Do other people not have issues with a delay when loading the app on local wifi?

Offline Tillsy

  • Full Member
  • ***
  • Posts: 207
  • Karma: +12/-4
Re: Skip MiOS authentication when on LAN?
« Reply #5 on: May 07, 2018, 07:59:43 pm »
Could be related.  Did anything change in your network setup (like having WiFi on a separate subnet)?

My network setup did change fairly recently, but I'm not certain if the change corresponded with the Homewave issues or not.  Specifically, I swapped out my router for a Ubiquiti USG and changed my wifi access points to Ubiquiti as well.  My wifi is on the same subnet as my wired devices though, and I don't have any other issues connecting to network resources from wifi devices though.  And like I said Homewave works perfectly when I enable "Direct to Vera" and I'm on my local wifi.  Any ideas?

Do other people not have issues with a delay when loading the app on local wifi?
In case this is relevant, I can vouch I have seen immense slowness with Ubiquiti devices when dealing with UDP traffic.  TCP is fine, but UDP throughput is insanely bad.  Again may not be relevant, just thought I would mention it.

Offline tadr

  • Full Member
  • ***
  • Posts: 127
  • Karma: +6/-2
Re: Skip MiOS authentication when on LAN?
« Reply #6 on: May 07, 2018, 09:27:44 pm »
Could be related.  Did anything change in your network setup (like having WiFi on a separate subnet)?

My network setup did change fairly recently, but I'm not certain if the change corresponded with the Homewave issues or not.  Specifically, I swapped out my router for a Ubiquiti USG and changed my wifi access points to Ubiquiti as well.  My wifi is on the same subnet as my wired devices though, and I don't have any other issues connecting to network resources from wifi devices though.  And like I said Homewave works perfectly when I enable "Direct to Vera" and I'm on my local wifi.  Any ideas?

Do other people not have issues with a delay when loading the app on local wifi?
In case this is relevant, I can vouch I have seen immense slowness with Ubiquiti devices when dealing with UDP traffic.  TCP is fine, but UDP throughput is insanely bad.  Again may not be relevant, just thought I would mention it.

In order to eliminate the wireless AP change as a variable, I turned on wifi on my airport express and tried that.  I get the same behavior -- red wifi icon, followed by red cloud icon, followed by the white wifi icon when it connects.  The connection takes anywhere from ~2-5 seconds.  This is the same behavior I am seeing when connected to my Unifi APs.  Enabling "direct to vera" results in a near instantaneous connection, with the wifi icon briefly flashing red and then turning white  (No cloud icon shows up, which I assume is the mios login delay).

Offline intveltr

  • Moderator
  • Hero Member
  • *****
  • Posts: 1721
  • Karma: +100/-5
Re: Skip MiOS authentication when on LAN?
« Reply #7 on: May 08, 2018, 03:31:07 pm »
That doesn't give me much of a clue.  It's not the Ubiquiti gear I should think, I've got a USG and APs from them and they work just fine (in every respect including Vera)

Did you fill in the Mios credentials correctly? If these are off, it might mess with the connection process.
HomeWave is available in the App Store!  Turn your iPhone/iPad into an easy-to-use remote control for Vera.

Offline tadr

  • Full Member
  • ***
  • Posts: 127
  • Karma: +6/-2
Re: Skip MiOS authentication when on LAN?
« Reply #8 on: May 08, 2018, 03:41:45 pm »
That doesn't give me much of a clue.  It's not the Ubiquiti gear I should think, I've got a USG and APs from them and they work just fine (in every respect including Vera)

Did you fill in the Mios credentials correctly? If these are off, it might mess with the connection process.

The Mios credentials must be correct because I can use Homewave when I'm not on my lan.

Does the app normally cycle from from a red wifi icon, to a red cloud icon, back to a white wifi icon when connecting from the local wifi?  That's what it does for me, but it seems like it should just go from the red wifi icon (briefly) straight to the white wifi icon (like it does when "Direct to Vera" is checked).  The fact that when I uninstalled and reinstalled the app it couldn't automatically find my Vera makes me suspicious that the two are related.  Is there some setting on the Vera that could be messing with this (Note: "Secure my Vera" is not selected)?  Is there some configuration setting of the app that does not get wiped when the app is uninstalled and reinstalled?

Offline intveltr

  • Moderator
  • Hero Member
  • *****
  • Posts: 1721
  • Karma: +100/-5
Re: Skip MiOS authentication when on LAN?
« Reply #9 on: May 08, 2018, 04:12:52 pm »
The app sometimes cycles through those phases but it should be fairly fast (less than 5 seoncds).  I haven't noticed it being slower since I use OpenLuup (and connect to that), but if I try and connect to Vera it does seem a bit on the slow side.  It also doesn't pick up the serial number like it should, meaning the discovery process could be broken.  I'll have to run this through the debugger
HomeWave is available in the App Store!  Turn your iPhone/iPad into an easy-to-use remote control for Vera.

Offline tadr

  • Full Member
  • ***
  • Posts: 127
  • Karma: +6/-2
Re: Skip MiOS authentication when on LAN?
« Reply #10 on: May 16, 2018, 11:56:33 am »
The app sometimes cycles through those phases but it should be fairly fast (less than 5 seoncds).  I haven't noticed it being slower since I use OpenLuup (and connect to that), but if I try and connect to Vera it does seem a bit on the slow side.  It also doesn't pick up the serial number like it should, meaning the discovery process could be broken.  I'll have to run this through the debugger

Thanks for looking into it! 

As an aside, I just setup push alerts to Homewave... I didn't know what I was missing all this time - awesome.