Performance Drop in https

Hi guys,

I’m having a ‘X File’ here and hopefully you have already resolved something like this.

I’m in Hass.io 0.62.1 in a Ubuntu Server and for some time I was detecting the system really slow, I think it started with the 0.62.X update (but I don’t really know).

The slowliness was easier to detect in automations and things like that:
For example, in the main rooms the light is action by presence (motion, doors sensors, etc), so usually, just step on the door and the motion sensors will catch you and the sytem turn the light on for you.

I was feeling that it was taking more time for the system to react and in some cases you could even find yourself in the middle of the room, right in from of one of the sensors and then the lights turn on.

I reviewed sensor batteries, position, etc. really driving me crazy.

Yesterday I started to do some testing and take some time measurements:

  • To turn on a Wemo light 7/8 secs (manually, from the frontend)
  • To update the frontend with the status of a motion sensor 6/7 secs.

I was about to rebuild it again from scratch and start adding components back one by one to see which one was impacting the performance when I removed the configuration for the https (just to test). Well performance went back to perfect. Less than 1 sec to turn on a light in the same scenario described above.

I did some tests adding and removing the https and clearly it impacts the overall HASS performance.

Any ideas on what would it be happening?

Interesting. I have also noted an increased slugginesh on my system (hass.io 0.63 on RPi3) recently. Which configuration for “https” are you referring to? I have the “http” component configured, but can’t find “https” anywhere.

I’m sorry as I didn’t explain the issue properly.

I was referring in the http component, when configuring the certificate files so HASS goes in https.

I don’t know how I fixed it … but now works with no issue again.

Correct me if i’m wrong, but doesn’t wemo use a server to handle transactions? That means it needs an internet connection at all times? If that’s the case, internet traffic would slow the devices down.

Wemo doesn’t NEED an internet connection. It uses a SOAP API, so you can query it directly for state and issue commands.

I’m really not sure how the phone app works though. It probably goes up through a server since you can control your lights remotely.

Yeah, i wasn’t sure. The phone app definitely goes to a server, probably similar to the hass cloud. I wasn’t sure if it was like smart things where it needed to communicate with the server in order to perform. I wonder what was causing the slow down? Maybe you had alot of network traffic?