Raspberry pi smart home control12/26/2023 ![]() From now on you can now access your Home Assistant installation directly from your home screen.3. Open your browser setting menu and find “Add to home screen” you can now give it name. Open your phone browser and navigate to the public IP for dynamic DNS of your installation. With remote access configured your can add your home assistant interface as an app on your phone. Add Home Assistant as an app on your phone To setup Duck DNS on your Raspberry Pi follow these directions: (remember to select “Pi” as your operating system). If our public internet IP is a dynamic IP you can setup a dynamic DNS to help you locate your IP address when you’re outside your home. Here is an example for how it looks on my Asus router:Īfter port forwarding has been configured you can now access your home assistant installation on your public internet IP address when you’re outside your home. You can find these instructions by googling: “ port forwarding setup”. To do this please refer to instructions for your router. Next you need to instruct your internet router to listen to port 8123 requests on the public internet address and forward these to the Raspberry Pi. ![]() Next remove the old DHCP lease and reboot the Raspberry Pi: $ sudo rm /var/lib/dhcpcd5/dhcpcd-wlan0.lease ![]() ![]() This setup also has you setup your network name and network key in the interfaces file. Netmask is the mask parameter captured above and Gateway is the gateway parameter captured. In the interfaces file update the iface wlan0 entry: (note this require you to remove the wpa_nf line) iface wlan0 inet staticĪddress will be the new static IP of your Raspberry Pi – in this example i changed the IP from the original IP assigned to the Pi. Open your network configuration in nano: $ sudo nano /etc/network/interfaces TX packets:10658 errors:0 dropped:1 overruns:0 carrier:0 RX packets:12869 errors:0 dropped:1792 overruns:0 frame:0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 Wlan0 Link encap:Ethernet HWaddr 74:da:38:2b:1c:3d Next execute this command to get a little more information: $ ifconfig wlan0 This is needed since your internet router needs to know where to find the smart home hub at all times so it can route incoming traffic to it.įirst login to your Raspberry Pi and execute the following command to obtain basic network information: $ netstat -nrĭestination Gateway Genmask Flags MSS Window irtt IfaceĠ.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0ġ92.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0įrom this command you need to note down Gateway (192.168.1.1). Next step for making sure you can access the Raspberry Pi from the internet is to setup a static IP for Raspberry Pi. Verify that you see the login screen like this: Setup static IP for Raspberry Pi To password protect access to the interface login to the Raspberry Pi (Working with a Raspberry Pi from another computer) and open the Home Assistant configuration file in nano: $ sudo nano /home/hass/.homeassistant/configuration.yamlįind the HTTP section and uncomment the following line and add your password: http:Įxit nano by pressing Ctrl+X followed by Y, and restart the home assistant service with: $ sudo systemctl restart rviceĪfter restarting Home Assistant access your Home Assistant interface on: :8123 (it might take a minute or two to come up). Securing your web interfaceīefore we open access to your Home Assistant interface to the public we need to secure the interface. To get started we need a Raspberry Pi already configured with Home Assistant – you can use this guide to set it up: How to: Create a Z-Wave Smart Home hub using a Raspberry Pi. This post will walk you through setting up your Home Assistant smart home hub for remote access. One of the key features of a smart home is to be able to access your home from outside your home. In the How to: Create a Z-Wave Smart Home hub using a Raspberry Pi post we walked through how to setup the Raspberry Pi as a Smart Home hub that will enable you to control your lights and other Z-Wave enabled devices using a phone or a browser on your local network.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |