Migrating my own environment - martikainen87/Home-Automation GitHub Wiki
Copying my old configuration
At this point i copied all the configuration files from my old HA instance to the new one, which caused a lot of issues with missing dependencies to different software.
Systemmonitor component incorrect argument for the ethernet connection to monitor it ifconfig and you will see ouput similar to this:
pi@homeAssistant:~$ ifconfig ens160: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.1.128 netmask 255.255.255.0 broadcast 192.168.1.255 Changing \sensors\system_info_sensor.yaml to have arg: ens160, did not help, #return to solve#
NMAP / ICMP https://home-assistant.io/components/device_tracker.nmap_tracker/
missing dependencies for nmap and arp
sudo apt-get install net-tools nmap results:
pi@homeAssistant:~$ nmap 192.168.1.3
Starting Nmap 7.12 ( https://nmap.org ) at 2017-03-11 11:43 CET Nmap scan report for 192.168.1.3 Host is up (0.00012s latency). HA could still not uses found this https://github.com/home-assistant/home-assistant/issues/1632#issuecomment-245340774
to find where your script is for nmap use this command
find / -name device_tracker.py open the file to edit it.
sudo nano /srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/device_tracker/nmap_tracker.py ctrl+w and search for cmd =
replace
cmd = ['arp', '-n', ip_address] with
cmd = ['/usr/sbin/arp', '-n', ip_address]* reboot the VM and it should work
CPU temperature Since I'm running on a VM, the thermal sensors for the hardware wont work.