![]() |
|
Make sure your Pi has a static IP - Printable Version +- Comfort Automation/ Security System Forums (https://www.comfortforums.com) +-- Forum: Third Party (interfacing to Comfort) (https://www.comfortforums.com/forum-5.html) +--- Forum: alphaWerk UHAI RPi (Community Edition) (https://www.comfortforums.com/forum-136.html) +--- Thread: Make sure your Pi has a static IP (/thread-4667.html) |
- benstinton - 03-30-2017 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. - juwi_uk - 03-30-2017 Do you not need to do anything on your dhcp server as well to remove this ip address from the pool of available addresses or is this done automatically for you such that other devices arent leased the same IP address? - benstinton - 03-30-2017 You are quite right. Normally I would say choose an IP from a range not assigned to DHCP with your router, but in this case unless you are willing to delete all devices and smartapps from SmartThings and start again, you need to work with the IP that has already been assigned.Therefore probably the best thing to do is to see if you can move the range of dynamic IPs slightly so your target IP address falls outside it. I\'ll update the instructions a bit to reflect this. |