03-30-2017, 01:19 AM
So, its really important that your Pi has a static IP. If you leave it to DHCP and for any reason your Pi is assigned a new IP via DHCP from your router, then all of your devices will become inactive. This is because their network address, which includes the original IP is stored by SmartThings. This has happened to me a couple of times and is really frustrating. At this point you have two choices, either delete all devices and smartapps and start again, or set your Pi to the static IP that SmartThings has stored. If you are still in your initial set-up or have only just started and don\'t mind starting again, then I would recommend the former so you can choose an IP address from outside the range allocated to DHCP in your router (this way you can move straight to part B).
So here are the steps needed to:
A: Recover the old IP address that SmartThings has recorded
Make a note of the new IPs you have assigned in case you need them in the future.
Even if you haven\'t had this problem yet, its worth following this process anyway in order to prevent it happening at all.
So here are the steps needed to:
A: Recover the old IP address that SmartThings has recorded
- Go to the SmartThings IDE
- Go to the My Devices page, and look down the table of devices.
- Pick one of your comfort devices other than the bridge.
- Look across to the Device Network Id column and you will see string that looks like xxxxxxxx:xxxx
- Copy the first bit before the colon. This is basically your Hex address.
- In a new tab navigate to this page
- Use the form on the right hand side to convert \'Hex to IP Address\', and the IP address you need will be displayed below
- This bit requires you to be familiar with the CLI (Command Line Interface) and happy using SSH. On a mac start \'Terminal\' or on a Windows pc download and use Putty (instructions)
- Type in ssh pi@alpha-uhai.local
- When prompted type \'@lphaWerk\' as the password. If you are worried that it is insecure to have this password posted here, then be aware that this is only useful if you have are already inside your network. So if your network is not secure or if you are still worried, then please feel free to change this password by typing \'sudo raspi-config\' and the changing the user password.
- Follow the instructions here to set your Pi to use the static IP you discovered or chose above.
- If you are using an IP address that previously assigned dynamically, then you will need to enter your routers configuration panel, and adjust the range of address allocated to DHCP, so your Pi\'s IP address falls outside of that range. Any other devices managed by DHCP, that now fall out of the dynamic pool, will get a new dynamic IP when they renew their lease.
Make a note of the new IPs you have assigned in case you need them in the future.
Even if you haven\'t had this problem yet, its worth following this process anyway in order to prevent it happening at all.