Given the function Home Assistant will play in your Home Automation Environment, it is very important you ensure that you assign a static IP to your instance. This will ensure that any other devices or systems within your setup always know how to connect to Home Assistant within your network.
This process will require some basic technical understanding – in particular knowledge of how to access your routers settings.
Technically speaking setting a static IP might not be required as the subsequent step to configure your router (bottom of instructions) could supersede this. However, some routers may only allow to to make static the current IP. So if you want this to be a specific IP its worth changing this directly within Home Assistant first.
Open Up your Home Assistant console. Click Supervisor from the left, select system from the top right. Find the IP address and click change
Table of Contents
Open Up Settings within Home Assistant
Open your Home Assistant instance and Open Settings > System
Configure Home Assistant Network Settings
Open up the network settings option.
Next, Expand the IPV4 drop down and enter your IP details.
Arrow 1 = Click Static IP, this will open up the IP address detail that can be changed.
Arrow 2 = This is the IP address. In this example I have used 192.168.0.199/24. You can change any address within your routers range (and is not in use).
I would advise going above 192.168.0.100 as those addresses are less likely to have been already automatically assigned by your router.
Also the format of your range might be slightly different to mine. Yours might be 192.168.1.199/24 for example. Please check this before assigning an address. Open a command prompt and type ‘ipconfig /all’ on your laptop/PC.
Final note. Often when assigning static IP’s you do not include /24 at the end. This is a requirement of home assistant and for most users /24 will work just fine.
Arrow 3 = The address of your router. Most likely 192.168.0.1 or 192.168.1.1. Again, check this using the command prompt.
Arrow 4 = DNS servers. this again will be the IP address of your router unless you are using an alternate DNS method (if you are you probably don’t need this guide).
Reboot Home Assistant (not restart)
Select Settings > System
Now go to the Top right and press the power circle.
Expand Advanced options and select Reboot System.
This will reboot your home assistant with the desired IP.
Reserve the IP address in your Router
Depending on the brand of your router the interface will look and feel slightly different to one another. However, the fundamental process of reserving a static IP is fairly standard.
Please see our separate guide for setting a static IP within a router. This example involves a TP-Link router.
You will now have a static IP assign to home assistant. This is a fundamental step to setting up Home Assistant and we recommend you do this before adding any devices or setting any automations within your Home Assistant environment.