Home Assistant
(Created page with "{{Project |type=network |intro=This manages the entirety of the smart plugs and lights. |logo=Home Assistant Logo.svg.png |status=running |repository= |tracker= |meetings=Thur...") |
|||
Line 11: | Line 11: | ||
}} | }} | ||
This is going to be a summary of how Home Assistant is setup and what to do when it breaks. | This is going to be a summary of how Home Assistant is setup and what to do when it breaks. | ||
+ | |||
+ | |||
+ | == The Hardware Setup == | ||
+ | === Proxmox === | ||
+ | As of now our HA(Home Assistant) is running on a [https://www.proxmox.com/en/ proxmox] VM. | ||
+ | The Proxmox server itself is an old All-in-One from CodeClub with a broken screen. | ||
+ | The server is connected via Ethernet to the Network rack and is currently tucked away in the Ikea shelf. | ||
+ | ''Idealy we would have multiple proxmox nodes and multi backup solution.'' | ||
+ | |||
+ | === Network === | ||
+ | The smart plugs are all connected on a separate network called OpenHab, an old reminent of the previous system. | ||
+ | The Password for the OpenHab wifi network can be found by lifting the access point which creates it.(In the box with all the power supplies in the Ikea shelf. | ||
+ | |||
+ | As of now the OpenHab is not separated from the rest of the network, meaning one can access the plugs, independently. | ||
+ | '''In the future it would be good to isolate all smart devices from the rest of the network via Vlans or similar.''' | ||
+ | |||
+ | === The smart devices === | ||
+ | *All smart plugs are Sonoff S20 flashed with Tasmota. These have MQTT configured to call to the Proxmox Ip with the separate login credentials setup in HA for this specific purpose. | ||
+ | *The [[entrance sensor]] runs on a Kniwwelino with EspHome. The Kniwwelino uses an Esp12, which can run the same code as for an Esp8266. Here is the [[File:Example.png|thumb|.yaml]] file, which just needs to be uploaded to it through either the EspHome webclient or one of the numerous specific softwares. | ||
+ | *The LED Strips ( [[Unicorn Tapeworm]] ) from Engineering is running on an Esp32 with [https://kno.wled.ge/ WLED] runnning on it. | ||
+ | |||
+ | |||
+ | == The Software Setup == | ||
+ | |||
+ | We are using the premade [https://www.home-assistant.io/installation/alternative .qcow2]Image from Home Assistant. | ||
+ | After following the guide, you just need to connect to the HA by going to the proxmox ip and adding :8123 . | ||
+ | From there you can setup the admin-user and some non relevant information. | ||
+ | |||
+ | I'd recommend installing the MQTT broker and creating the mqtt-user to get all the smart plugs connected. The Password for the mqtt-user should also be written underneath the AP (very secure I know). | ||
+ | |||
+ | |||
+ | == What to do when shit hits the Fan == | ||
+ | === Openhab is offline === | ||
+ | *Is the AP plugged in ? | ||
+ | *Are light on ? | ||
+ | *Is it warm ? | ||
+ | *Does it smell like burnt electronics? | ||
+ | |||
+ | === Getting Openhab back online === | ||
+ | * Fix whatever could be the issue (unplugged /off) | ||
+ | * If it is unfixable simply replace it with some other AP and setup the Wifi with the same credential as before and plug it back into the network. In the unlikely case that Vlans have been configured, change them accordingly. | ||
+ | |||
+ | === Unable to connect to HA === | ||
+ | *Is the Proxmox machine plugged in and running? | ||
+ | *Can you connect to Proxmox? | ||
+ | |||
+ | === Reviving HA === | ||
+ | *Verify the above, if you are unable to login into the GUI, try the physical machine.use the side button to enable the screen. Login should be the same as for the webgui. | ||
+ | * Proxmox is running but not HA ? | ||
+ | ** Verify that the VM has no errors and check the Logs, restart the VM. | ||
+ | |||
+ | === Starting from a fresh install === | ||
+ | *Get a new Proxmox install | ||
+ | * Load this[insert file] file into the restore utility | ||
+ | * Everything should be back to normal |
Latest revision as of 13:21, 5 April 2024
Home Assistant | |
---|---|
This manages the entirety of the smart plugs and lights. | |
Meetings: | Thursday 18-20h |
Type: | network
|
Status: | running |
Members: | F3l1x, Gunstick, Alex |
Contact Person: | F3l1x (mail) |
Tools | |
QrCode: |
This is going to be a summary of how Home Assistant is setup and what to do when it breaks.
Contents |
[edit] The Hardware Setup
[edit] Proxmox
As of now our HA(Home Assistant) is running on a proxmox VM. The Proxmox server itself is an old All-in-One from CodeClub with a broken screen. The server is connected via Ethernet to the Network rack and is currently tucked away in the Ikea shelf. Idealy we would have multiple proxmox nodes and multi backup solution.
[edit] Network
The smart plugs are all connected on a separate network called OpenHab, an old reminent of the previous system. The Password for the OpenHab wifi network can be found by lifting the access point which creates it.(In the box with all the power supplies in the Ikea shelf.
As of now the OpenHab is not separated from the rest of the network, meaning one can access the plugs, independently. In the future it would be good to isolate all smart devices from the rest of the network via Vlans or similar.
[edit] The smart devices
- All smart plugs are Sonoff S20 flashed with Tasmota. These have MQTT configured to call to the Proxmox Ip with the separate login credentials setup in HA for this specific purpose.
- The entrance sensor runs on a Kniwwelino with EspHome. The Kniwwelino uses an Esp12, which can run the same code as for an Esp8266. Here is the file, which just needs to be uploaded to it through either the EspHome webclient or one of the numerous specific softwares.
- The LED Strips ( Unicorn Tapeworm ) from Engineering is running on an Esp32 with WLED runnning on it.
[edit] The Software Setup
We are using the premade .qcow2Image from Home Assistant. After following the guide, you just need to connect to the HA by going to the proxmox ip and adding :8123 . From there you can setup the admin-user and some non relevant information.
I'd recommend installing the MQTT broker and creating the mqtt-user to get all the smart plugs connected. The Password for the mqtt-user should also be written underneath the AP (very secure I know).
[edit] What to do when shit hits the Fan
[edit] Openhab is offline
- Is the AP plugged in ?
- Are light on ?
- Is it warm ?
- Does it smell like burnt electronics?
[edit] Getting Openhab back online
- Fix whatever could be the issue (unplugged /off)
- If it is unfixable simply replace it with some other AP and setup the Wifi with the same credential as before and plug it back into the network. In the unlikely case that Vlans have been configured, change them accordingly.
[edit] Unable to connect to HA
- Is the Proxmox machine plugged in and running?
- Can you connect to Proxmox?
[edit] Reviving HA
- Verify the above, if you are unable to login into the GUI, try the physical machine.use the side button to enable the screen. Login should be the same as for the webgui.
- Proxmox is running but not HA ?
- Verify that the VM has no errors and check the Logs, restart the VM.
[edit] Starting from a fresh install
- Get a new Proxmox install
- Load this[insert file] file into the restore utility
- Everything should be back to normal