Running Home Assistant (HASSIO) locally without an internet connection - raspberry-pi

I am new to Home Assistant and I currently have a disc image of the software installed on a Raspberry Pi 3b. I have managed to get this up and running successfully by connecting my PI to an internet connection via an ethernet cable and connecting my laptop to the same network wirelessly. The problem I am facing is that I wish to run this locally without an internet connection and simply connecting my laptop to the PI with the Ethernet cable does not seem to be working. I have tried looking around for support but I cannot seem to find much on the matter.

Home Assistant's default port is 8123 not 8023.
If there is a direct connection between your laptop and the Raspberry Pi then the chance is high that mDNS won't not work. Thus, homeassistant.local is not reachable.
Add a static IP address for your Home Assistant host and your laptop.

Related

Can't reach Raspberry Pi from a specific computer

I've an issue connecting with my raspberry from a specific computer on home network.
Raspberry is connected on WiFi and my computer is connected on LAN.
The issue occurs only on the actual raspberry IP that is a static IP (192.168.1.3. This is correctly reached from every other device in the home network.
If I change the IP assigned to raspi it becomes reachable from my computer but I don't know why.
I've tried deleting DNS cache from the computer and checking Firewall rules but nothing found. I've also checked raspi to see if there are rules blocking the connection but nothing found here too.
Could you please help me understanding why this is happening? I would like to keep the actual IP assigned to the raspi.
Thank you

How to setup internet through ethernet for a headless Pi?

I have the following setup:
Ubuntu 18.04 PC connected with an ethernet cable to a raspberry pi 3+.
What I want:
I am using ssh to connect to the Pi. I would like that the Pi can get internet access through the ethernet. Meaning, that the Pi is using the internet of the PC.
It would be nice if you could help me with a guide and tell me what I have to change in order to make it work.
What I tried:
I have a static IP on my PC as well as on the Pi.
In the network manager (nm-connection-editor), I set the IPv4 method to 'Shared to other computers'.
How do I now tell the Pi to use this network?
Thanks for your help

2 router in cascade with 2 DHCP and remote access

The installation is in a holidays house (so no permanent internet access)
I have a 4g-Routerm (ROUTER-1 = huawei B525-b23) that enable the internet access. I switch it on one day a week.
I have another router (ROUTER-2 = GL-MT300N-V2).
ROUTER-2 is always plugged on electricity.
On ROUTER-2 is connected through ethernet port a Raspberry-Pi3 (with Home Assistant on it).
On ROUTER-2 is connected through WIFI a Camera IP
ROUTER-1 and ROUTER-2 are connected together through ethernet.
When ROUTER-1 is not plug to electricity, none have acces to internet, but it's not an issue.
The camera save picture on the Rapbery Pi3, the Home Assistat is recording some sensor data.
When I switch on the electricity on the ROUTER-1, everyone have access to internet.
What I want is to have remote Access to my router-2 and my Rasberry and my Camera when ROUTER-1 is online
How should I do ?
Hi I can think of two solutions for this setup but both involve buying a second hand cheap router.
I think the use of a single router would make this setup a lot easier. Any router would work that supports:a USB 4g Modem to be attached to it, and has support for setting up a openvpn server and you need to be OK with leaving the Internet on all the time just make sure you dont have any services running that use up bandwidth and you should be ok. You can can connect both raspberry pi and IP camera to that router. Setup Openvpn server open the UDP port required and download the certificates, You should be able to vpn into your network and manage it through SSH or something remotely.
The second option is tailored to you but still requires swapping the 4G Modem with another one that supports these things: Wake on LAN, openvpn server, supports ssh into it over LAN and either has 4G support through a sim card slot or a usb port with modem support.
You can then have it setup so this new Router-1 is switched off with wake on lan configured on it and the raspberry pi to send the magic packet. You can use something like this to get an idea of how WoL https://www.lifewire.com/wake-on-lan-4149800. You can use cron on your raspberry pi to send WoL signal to Router 1 once a week which would eventually give you internet access once the router is up. You have to setup a vpn server on it and forward the required port and download the certificates. When your scheduled WoL cron runs make sure you are able to connect through vpn then access network resources you wish, at the end when you are done you can ssh into the router-1 and turn it off.
I hope this helps. I had a look at the router models you are using and it doesnt leave you with many options. You can get cheap second hand routers online that support everything that is required.

Can't connect my raspberry-pi to internet via Ethernet connection + ICS connection failed

I have a raspberry pi 3 connected to my PC (Windows 7) via ethernet using DHCP server and VNC viewer and it works perfectly.
The pc is connected to a WIFI.
I want to access to internet from my raspberry pi, I tried the ICS sharing but it didn't work:
I shared the wifi connection:here
changed the ip address: here
after sharing the wifi connection, I am unable to access internet from both the pc and rasp even though they are in the same ip address.
On PC,On the Rasp
Can you please help me to find a solution?
Thank you.
You have to create a network bridge.
Select the two networks, right click and select bridge connections.
I'd use static IP address on your PI and your PC's ethernet

Windows IOT - Raspberry pi not connecting to wifi

I have a raspberry pi 3 running windows IOT and it works fine when on a LAN connection. However the issue is that I want it to be on wifi. I have set the wifi connection up and set it to automatically connect and if I then remove the LAN cable everything works fine. But when I reboot the pi it refuses to automatically connect to the wifi. If I go back to the settings and select my wifi network it has the "Connect Automatically" box checked but when I click connect it asks me again for the password...
It is as if it is not saving the password for my network. How do I fix this issue?