Canan

Hi, I'm Canan

Oups ...

Never forget impossible is possible

:(


Your PC ran into a problem and needs to restart.
We're just collecting some error info, and then we'll restart for you.


0% complete



QR Code

For more information about this issue and possible fixes, visit
https://www.windows.com/stopcode

If you call a support person, give them this info:
Stop code: SYSTEM_SERVICE_EXCEPTION

Use Home Assistant

Use Home Assistant

House




Steps

Installation on Windows

  1. Install VirtualBox or other to have a Virtual Machine
  2. https://www.virtualbox.org/
  3. Import VDI
  4. https://www.home-assistant.io/installation/windows/

Installation on a Synology NAS

  1. Install Virtual Machine Manager
  2. Import the OVA
  3. /!\ Enable autostart
  4. https://www.home-assistant.io/installation/alternative

Installation on a Raspberry Pi

  1. /!\ Minimum Raspberry Pi 4 (no 4GB RAM, minimum 8GB)
  2. Raspberry Pi 5 8GB with 27W USB-C AC and Case with Fan
  3. https://www.amazon.fr/Starter-Set-Alimentation-Ventilateur-Micro-HDMI-Dissipateur/dp/B0D2FH64ZX/
  4. > Storage to ensure space and the highest possible write and read speeds
  5. SanDisk 128 Go Extreme PRO microSDXC A2 UHS-I Class 10 U3 V30
  6. https://www.amazon.fr/SanDisk-microSDXC-Adaptateur-RescuePRO-Performance/dp/B09X7DNF6G/
  7. https://www.domo-blog.fr/installation-de-home-assistant-sur-raspberry-pi/

Access the site

  1. If everything is set to default, you can access it via the following URL
  2. http://homeassistant.local:8123/
  3. Create your access with location for weather and other information
  4. Uncheck all data sharing for statistics
  5. > Some elements may already be detected
  6. http://homeassistant.local:8123/config/integrations/dashboard

Access the site via mobile

  1. Install the app
  2. Enable the "Pinch to zoom" option in Settings > "Companion app"
  3. Enable the "Autoplay videos" option in Settings > "Companion app"
  4. Enable the "Show first view on startup" option in Settings > "Companion app"

Add the HACS module to install community extensions

  1. Install via the official website
  2. https://www.hacs.xyz/docs/use/download/download/#to-download-hacs
  3. Go to HACS in the vertical bar on the left, then "Add an integration" and select "HACS"
  4. https://www.hacs.xyz/docs/use/configuration/basic/#to-set-up-the-hacs-integration
  5. Enable "Enable AppDaemon apps discovery & tracking"
  6. http://homeassistant.local:8123/config/integrations/integration/hacs
  7. This will ask you to log in to your Github account (create a free account if you don't have one)
  8. Check the logs to see if you can uninstall it
  9. http://homeassistant.local:8123/hassio/dashboard
  10. Restart "Home Assitant"
  11. http://homeassistant.local:8123/config/system
  12. Install what you need unofficial
  13. http://homeassistant.local:8123/hacs/repository/156434866
  14. http://homeassistant.local:8123/hacs/repository/497319128
  15. http://homeassistant.local:8123/hacs/repository/190927524
  16. http://homeassistant.local:8123/hacs/repository/444350375
  17. http://homeassistant.local:8123/hacs/repository/501725479
  18. http://homeassistant.local:8123/hacs/repository/246549747
  19. http://homeassistant.local:8123/hacs/repository/144899700
  20. http://homeassistant.local:8123/hacs/repository/194140521
  21. https://my.home-assistant.io/redirect/hacs_repository/?owner=vdbrink&repository=homeassistant-lovelace-birthday-reminder-card&category=Plugin
  22. Lots of possibilities exist
  23. https://vdbrink.github.io/homeassistant/homeassistant_dashboard_hacs

Enable advanced mode

  1. Check "Advanced mode", via the profile logo at the bottom left of the sidebar

Tuya T & H Sensor (unsupported)

  1. http://homeassistant.local:8123/hacs/repository?owner=azerty9971&repository=xtend_tuya&category=integration
  2. https://github.com/azerty9971/xtend_tuya

National Geographic - Weather station

  1. https://github.com/cytech/home-assistant-wundergroundpws
  2. https://www.wunderground.com/member/api-keys

Some HACS packages also need to have a part installed

  1. As for "browser_mod 2"
  2. https://my.home-assistant.io/redirect/config_flow_start/?domain=browser_mod
  3. Check "Register" and "Auto-register" in it (via the sidebar), and press CTRL+SHIFT+F5 to purge the browser for this site
  4. http://homeassistant.local:8123/browser-mod
  5. Uncheck "Suspend background connections"
  6. http://homeassistant.local:8123/profile/general
  7. Restart "Home Assitant"

Enable ffmpeg

  1. https://www.home-assistant.io/integrations/ffmpeg/
  2. Add in your configuration.yaml
  3. ffmpeg:

Add themes (if needed, usually there is a HACS link)

  1. https://smarthomescene.com/blog/best-home-assistant-dashboard-themes-in-2023/

Add scripts (if needed, usually there is a HACS link)

  1. https://github.com/thomasloven/hass-config/wiki/Lovelace-Plugins
  2. Go to the dedicated page
  3. http://homeassistant.local:8123/config/lovelace/resources
  4. Add resources, such as "card-mod"
  5. https://github.com/thomasloven/lovelace-card-mod/blob/master/card-mod.js

Add Addons

  1. Install "Terminal & SSH"
  2. http://homeassistant.local:8123/hassio/addon/core_ssh/info
  3. Check "Start on boot"
  4. Check "Watchdog"
  5. Clic on Start
  6. Install "File Editor"
  7. http://homeassistant.local:8123/hassio/addon/core_configurator/info
  8. Configure to have an accessible www folder
  9. http://homeassistant.local:8123/hassio/addon/core_configurator/config
  10. Check "Directory First"
  11. Uncheck "Enforce Basepath" to access to /
  12. Create /config/www/floorplan/ (or /homeassistant/www/floorplan/ depending on your configuration and the existing folder)
  13. Restart

Add new device detection

  1. Here is a list of the most used
  2. https://www.home-assistant.io/integrations/somfy/
  3. https://www.home-assistant.io/integrations/tuya/
  4. https://www.home-assistant.io/integrations/onvif/
  5. https://www.home-assistant.io/integrations/samsungtv/
  6. https://www.home-assistant.io/integrations/smartthings/
  7. https://www.home-assistant.io/integrations/melcloud/
  8. https://www.home-assistant.io/integrations/nanoleaf/
  9. https://www.home-assistant.io/integrations/plex/
  10. https://www.home-assistant.io/integrations/tailscale/
  11. > Cozytouch is detected by Somfy but not present in their application, yet visible and accessible by HA

Configure all devices

  1. You must add and follow the instructions, as they won't be the same for everyone
  2. > If you need a Homekit code, for example for Somfy Protect cameras, you will need to use an iPhone to get it
  3. > If you use Somfy, you must enable developer options to create a Developer Token
  4. https://github.com/Somfy-Developer/Somfy-TaHoma-Developer-Mode#getting-started

Configure Tapo cameras

  1. /!\ Not the TP-Link email, use the local camera account
  2. In the Tapo app, create a Camera Account (local account)
  3. App Tapo > Camera Settings > Advanced Settings > Camera Account > Set Username (an email even fake) + Password (without special characters)
  4. Use OnVif

The sequel

  1. You can use the complete list of actions, or create custom dashboards to group and organize your favorites
  2. Place a dedicated Home Assistant tablet on a wall to monitor everything live
  3. Display a 3D map to have the actions in their proper place and simplify understanding and overview

Create a 3D map

  1. Download and install "Home Sweet 3D"
  2. https://sourceforge.net/projects/sweethome3d/files/latest/download
  3. Add useful extensions
  4. https://github.com/shmuelzon/home-assistant-floor-plan
  5. https://sourceforge.net/p/sweethome3d/plug-ins/54/
  6. Add 3D model libraries
  7. https://www.sweethome3d.com/importModels.jsp#ModelsLibraries
  8. Create your scaled plan with distances and import it
  9. Delineate your rooms and create your walls
  10. Add your doors and windows
  11. Add your connected objects, such as your lights
  12. Add all the elements you want
  13. Find and set your viewpoint
  14. Turn off all the lights by unchecking them
  15. Export everything as an image, with the same viewpoint

Create automatic backups

  1. http://homeassistant.local:8123/config/backup/overview

Create a custom dashboard

  1. http://homeassistant.local:8123/config/lovelace/dashboards
  2. /!\ You will have to make scripts

Create the scenes you need

  1. http://homeassistant.local:8123/config/automation/dashboard

Expose the garage camera to your Home Assistant in the apartment without opening dangerous ports

  1. The simplest, cheapest, and most reliable solution is a VPN tunnel via Tailscale on a small Raspberry Pi
  2. The hardware
  3. At a minimum, a 2W Raspberry Pi Zero (integrated Wi-Fi, small, and low power consumption) with a 32GB microSD card
  4. > I still recommend a Raspberry Pi 3 B+ with a 64GB microSD card for versatility
  5. https://www.amazon.fr/dp/B0D3FNL84M
  6. https://www.amazon.fr/dp/B07FCMBLV6
  7. Download Raspberry Pi Imager
  8. https://www.raspberrypi.com/software/
  9. Install Raspberry Pi OS (64-bit)
  10. In the options advances in the Imager
  11. Enable SSH
  12. Configure root credentials, including a username and password for SSH
  13. Configure Wi-Fi with the SSID and password
  14. Set a hostname (e.g., rpi-garage)
  15. Start the Pi by plugging it in
  16. Check that it connects to Wi-Fi
  17. Use a keyboard, mouse, and screen to enable SSH by running the following commands
  18. sudo nano /etc/ssh/sshd_config
  19. Uncomment the line "#PasswordAuthentication yes" (so remove the # in front)
  20. sudo systemctl restart ssh
  21. Check that you can connect via SSH
  22. Update the Pi
  23. sudo apt-get update -y
  24. sudo apt-get upgrade -y
  25. sudo apt-get full-upgrade -y
  26. sudo apt-get autoremove -y
  27. sudo reboot
  28. Install Tailscale
  29. curl -fsSL https://tailscale.com/install.sh| sh
  30. sudo tailscale up --ssh
  31. Or by adding the repos
  32. curl -fsSL https://pkgs.tailscale.com/stable/debian/bookworm.noarmor.gpg| sudo tee /usr/share/keyrings/tailscale-archive-keyring.gpg >/dev/null
  33. curl -fsSL https://pkgs.tailscale.com/stable/debian/bookworm.tailscale-keyring.list| sudo tee /etc/apt/sources.list.d/tailscale.list
  34. sudo apt-get update -y
  35. sudo apt-get install -y tailscale
  36. > During this last step, a link to authenticate the Pi to your Tailscale account will appear
  37. /!\ Check that the Pi appears in the Tailscale web interface and that it has an IP address like 100.x.y.z
  38. Then activate the corresponding route (e.g.: 192.168.68.0/24, i.e. 192.168.68.xx)
  39. While activating port forwarding
  40. echo 'net.ipv4.ip_forward = 1' | sudo tee -a /etc/sysctl.conf
  41. echo 'net.ipv6.conf.all.forwarding = 1' | sudo tee -a /etc/sysctl.conf
  42. sudo sysctl -p /etc/sysctl.conf
  43. sudo systemctl enable --now tailscaled
  44. sudo tailscale set --advertise-routes=192.168.68.0/24
  45. sudo tailscale up --reset --advertise-routes=192.168.68.0/24 --accept-dns=false --snat-subnet-routes=true --advertise-exit-node
  46. Approve the machine's "Route" and "Exit Node"
  47. https://login.tailscale.com/admin/machines/
  48. Add Tailscale to Home Assistant
  49. https://www.home-assistant.io/integrations/tailscale/
  50. http://homeassistant.local:8123/hassio/addon/a0d7b954_tailscale/info
  51. /!\ You will need to create an API token (and make a note of it, as it is only visible when it is created)
  52. Connect the integration and the addon to the same Tailscale account
  53. http://homeassistant.local:8123/hassio/addon/a0d7b954_tailscale/config
  54. Modify the Tailscale addon configuration
  55. Enable "Start on boot"
  56. Enable "Watchdog"
  57. Enable "Show in sidebar"
  58. Click on the "three dots" then "Edit YAML" to add these lines
  59. userspace_networking: false
  60. accept_routes: true
  61. advertise_exit_node: true
  62. accept_dns: true
  63. Click Restart
  64. Restart Home Assistant
  65. Approve the machine's "Route" and "Exit Node"
  66. https://login.tailscale.com/admin/machines/
  67. Enable "Disable Key expiry" via the menu (three dots) of the different machines in Tailscake
  68. Add manually your camera to OnVif
  69. https://www.home-assistant.io/integrations/onvif/
  70. Connect the camera as if it were on the same local network

Access Home Assistant externally with Tailscale

  1. Activate MagicDNS on the online account
  2. https://login.tailscale.com/admin/dns
  3. Note the stable .ts.net domain name for each machine
  4. Install the Tailscale app
  5. https://play.google.com/store/apps/details?id=com.tailscale.ipn
  6. https://apps.apple.com/us/app/tailscale/id1470499037
  7. Log in to the same account
  8. Open Home Assistant using the MagicDNS name (e.g., http://homeassistant..ts.net)
  9. You can set it to fixed in the settings
  10. http://homeassistant.local:8123/config/network

Warning

  1. Lors des paramètres de la VM, tout laisser par défaut, sauf le type de micrologiciel, qu'il faut mettre sur UEFI pour pouvoir démarrer dessus