diff --git a/.static-ips.yml b/.static-ips.yml index 9f421d3..d64b59d 100644 --- a/.static-ips.yml +++ b/.static-ips.yml @@ -17,5 +17,6 @@ firefly-importer: 10.255.239.31 # the range for the local lan network is 192.168.2.0/24 syncthing: 192.168.2.241 - -MDNS_REFLECTOR_IP: 10.0.2.254 \ No newline at end of file +# we use macvlan1 to use multicast dns (mDNS). As of setting this up, don't know how to setup avahi daemon without using macvlan. +ESPHOME_LOCAL: 10.0.2.254 +HOME_ASSISTANT_LOCAL: 10.0.2.253 \ No newline at end of file diff --git a/esphome/Click on.docx b/esphome/Click on.docx new file mode 100644 index 0000000..22bcc7a Binary files /dev/null and b/esphome/Click on.docx differ diff --git a/esphome/sthome-24g4.yaml b/esphome/data/config/sthome-ut1.yaml similarity index 72% rename from esphome/sthome-24g4.yaml rename to esphome/data/config/sthome-ut1.yaml index ab1e680..c6c5d53 100644 --- a/esphome/sthome-24g4.yaml +++ b/esphome/data/config/sthome-ut1.yaml @@ -1,6 +1,6 @@ esphome: - name: sthome-24g4 - friendly_name: sthome-2.4G4 + name: sthome-ut1 + friendly_name: sthome-ut1 esp32: board: esp32dev @@ -20,9 +20,10 @@ ota: password: "37f546590fcc15e1323d273540eb623a" wifi: -# ssid: !secret wifi_ssid -# password: !secret wifi_password -# multiple Wifi SSIDs + #ssid: !secret wifi_ssid + #password: !secret wifi_password + # we will use local dns server for local dns resolution + domain: ".sthome.org" networks: - ssid: !secret wifi_ssid1 password: !secret wifi_password1 @@ -33,6 +34,7 @@ wifi: - ssid: !secret wifi_ssid4 password: !secret wifi_password4 manual_ip: + # For faster connection startup, set a static IP address # Set this to the IP of the ESP static_ip: 10.0.2.1 gateway: 10.0.0.2 @@ -41,7 +43,7 @@ wifi: dns2: 10.0.0.2 # Enable fallback hotspot (captive portal) in case wifi connection fails ap: - ssid: "Sthome-24G4 Fallback Hotspot" + ssid: "sthome-ut1 Fallback Hotspot" password: "7SglIlgdkpAD" -captive_portal: \ No newline at end of file +captive_portal: diff --git a/esphome/data/config/sthome-ut2.yaml b/esphome/data/config/sthome-ut2.yaml new file mode 100644 index 0000000..908d6a6 --- /dev/null +++ b/esphome/data/config/sthome-ut2.yaml @@ -0,0 +1,49 @@ +esphome: + name: sthome-ut2 + friendly_name: sthome-ut2 + +esp32: + board: esp32dev + framework: + type: arduino + +# Enable logging +logger: + +# Enable Home Assistant API +api: + encryption: + key: "o+fgr4qh0rTegCxXE3jbfJ/0si8+W9wxgnnYX9Xucqw=" + +ota: + - platform: esphome + password: "cb8a82d04c2f4dcf9bd273f903c7c378" + +wifi: + #ssid: !secret wifi_ssid + #password: !secret wifi_password + # we will use local dns server for local dns resolution + domain: ".sthome.org" + networks: + - ssid: !secret wifi_ssid1 + password: !secret wifi_password1 + - ssid: !secret wifi_ssid2 + password: !secret wifi_password2 + - ssid: !secret wifi_ssid3 + password: !secret wifi_password3 + - ssid: !secret wifi_ssid4 + password: !secret wifi_password4 + manual_ip: + # For faster connection startup, set a static IP address + # Set this to the IP of the ESP + static_ip: 10.0.2.2 + gateway: 10.0.0.2 + subnet: 255.255.240.0 + dns1: 10.0.0.1 + dns2: 10.0.0.2 + # Enable fallback hotspot (captive portal) in case wifi connection fails + ap: + ssid: "Sthome-Ut2 Fallback Hotspot" + password: "geuZrJgQo7cg" + +captive_portal: diff --git a/esphome/data/config/sthome-ut3.yaml b/esphome/data/config/sthome-ut3.yaml new file mode 100644 index 0000000..d9b34dc --- /dev/null +++ b/esphome/data/config/sthome-ut3.yaml @@ -0,0 +1,53 @@ +esphome: + name: sthome-ut3 + friendly_name: sthome-ut3 + +esp32: + board: esp32dev + framework: + type: arduino + +# Enable logging +logger: + +# Enable Home Assistant API +api: + encryption: + key: "AIoquKPjpcHa2pcJ0aKxvtpM3mwgZuZhpCPtdVitP2Q=" + +ota: + - platform: esphome + password: "879012af7180c8700cee65fbf18704d1" + +wifi: + #ssid: !secret wifi_ssid + #password: !secret wifi_password + # this module struggles with noise, setting output_power to 8.5dB + output_power: 8.5dB + # we will use local dns server for local dns resolution + domain: .sthome.org + networks: + - ssid: !secret wifi_ssid1 + password: !secret wifi_password1 + - ssid: !secret wifi_ssid2 + password: !secret wifi_password2 + - ssid: !secret wifi_ssid3 + password: !secret wifi_password3 + - ssid: !secret wifi_ssid4 + password: !secret wifi_password4 + manual_ip: + # For faster connection startup, set a static IP address + # Set this to the IP of the ESP + static_ip: 10.0.2.3 + gateway: 10.0.0.2 + subnet: 255.255.240.0 + dns1: 10.0.0.1 + dns2: 10.0.0.2 + + # Enable fallback hotspot (captive portal) in case wifi connection fails + ap: + ssid: "Sthome-Ut3 Fallback Hotspot" + password: "cGXb2DqkwaOr" + +captive_portal: + \ No newline at end of file diff --git a/esphome/stacks/.env b/esphome/stacks/.env index f97db50..f6e29ac 100644 --- a/esphome/stacks/.env +++ b/esphome/stacks/.env @@ -12,4 +12,6 @@ SECRETSDIR=${STACKSDIR}/secrets PUID=3066 PGID=3067 DOMAINNAME=sthome.org -WEBUI_PORT=6052 \ No newline at end of file +WEBUI_PORT=6052 + +ESPHOME_LOCAL=10.0.2.254 # for mDNS diff --git a/esphome/stacks/compose.yml b/esphome/stacks/compose.yml index 9421298..0d6e704 100644 --- a/esphome/stacks/compose.yml +++ b/esphome/stacks/compose.yml @@ -3,7 +3,7 @@ name: esphome networks: traefik-net: external: true - mdns-net: + macvlan1: external: true services: @@ -12,51 +12,34 @@ services: image: esphome/esphome env_file: .esphome.env volumes: - - /var/run/dbus:/var/run/dbus - - /var/run/avahi-daemon/socket:/var/run/avahi-daemon/socket - /etc/localtime:/etc/localtime:ro - ${DATADIR}/config:/config +# - /var/run/avahi-daemon/socket:/var/run/avahi-daemon/socket restart: unless-stopped privileged: true networks: - - traefik-net - - mdns-net + traefik-net: + macvlan1: + ipv4_address: ${ESPHOME_LOCAL} labels: - traefik.enable=true - traefik.docker.network=traefik-net - # - # http services - # ------------- - "traefik.http.services.${APPLICATION_NAME}-svc.loadbalancer.server.port=${WEBUI_PORT}" - # - # http routers - # ------------ - # limit router to web ":80" entrypoint - "traefik.http.routers.${APPLICATION_NAME}-rtr.entrypoints=web" - # set match criteria for router - "traefik.http.routers.${APPLICATION_NAME}-rtr.rule=Host(`${APPLICATION_NAME}.${DOMAINNAME}`)&& PathPrefix(`/`)" - # attach middlewares to router - "traefik.http.routers.${APPLICATION_NAME}-rtr.middlewares=http-mw-secureHeaders-redirect@file" - # assign svc target to router - "traefik.http.routers.${APPLICATION_NAME}-rtr.service=${APPLICATION_NAME}-svc" - # - # limit router to websecure ":443" entrypoint - "traefik.http.routers.${APPLICATION_NAME}-secure-rtr.entrypoints=websecure" - # set match criteria for router - "traefik.http.routers.${APPLICATION_NAME}-secure-rtr.rule=Host(`${APPLICATION_NAME}.${DOMAINNAME}`)&& PathPrefix(`/`)" - # attach middlewares to router - "traefik.http.routers.${APPLICATION_NAME}-secure-rtr.middlewares=http-mw-secureHeaders@file" - # tls - "traefik.http.routers.${APPLICATION_NAME}-secure-rtr.tls=true" - # apply tls options - "traefik.http.routers.${APPLICATION_NAME}-secure-rtr.tls.options=tls-options@file" - # generate certificates using following certresolver - "traefik.http.routers.${APPLICATION_NAME}-secure-rtr.tls.certresolver=solver-dns" - # assign svc target to router - "traefik.http.routers.${APPLICATION_NAME}-secure-rtr.service=${APPLICATION_NAME}-svc" -# avahi-tools: -# volumes: -# - /run/dbus:/var/run/dbus -# - /run/avahi-daemon:/var/run/avahi-daemon -# image: ahasbini/avahi-tools:latest -# command: avahi-publish-service -s truenas.sthome.org _ssh._tcp 2222 \ No newline at end of file + avahi-tools: + volumes: + - /run/dbus:/var/run/dbus + - /run/avahi-daemon:/var/run/avahi-daemon + image: ahasbini/avahi-tools:latest + command: avahi-publish -a esphome.local ${ESPHOME_LOCAL} + #command: avahi-publish-service -s esphome.local _http._tcp \ No newline at end of file diff --git a/esphome/sthome-24g4-firmware.factory.bin b/esphome/sthome-24g4-firmware.factory.bin deleted file mode 100644 index ddbcea4..0000000 Binary files a/esphome/sthome-24g4-firmware.factory.bin and /dev/null differ diff --git a/esphome/sthome-ut3_logs (1).txt b/esphome/sthome-ut3_logs (1).txt new file mode 100644 index 0000000..cc2bd16 --- /dev/null +++ b/esphome/sthome-ut3_logs (1).txt @@ -0,0 +1,81 @@ +[11:44:29]ets Jul 29 2019 12:21:46 +[11:44:29] +[11:44:29]rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) +[11:44:29]configsip: 0, SPIWP:0xee +[11:44:29]clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 +[11:44:29]mode:DIO, clock div:2 +[11:44:29]load:0x3fff0030,len:1184 +[11:44:29]load:0x40078000,len:13132 +[11:44:29]load:0x40080400,len:3036 +[11:44:29]entry 0x400805e4 +[11:44:29][I][logger:171]: Log initialized +[11:44:29][C][safe_mode:079]: There have been 1 suspected unsuccessful boot attempts +[11:44:29][D][esp32.preferences:114]: Saving 1 preferences to flash... +[11:44:29][D][esp32.preferences:143]: Saving 1 preferences to flash: 0 cached, 1 written, 0 failed +[11:44:29][I][app:029]: Running through setup()... +[11:44:29][C][wifi:048]: Setting up WiFi... +[11:44:29][C][wifi:061]: Starting WiFi... +[11:44:29][C][wifi:062]: Local MAC: D0:EF:76:58:AA:78 +[11:44:29][D][wifi:482]: Starting scan... +[11:44:29][W][component:157]: Component wifi set Warning flag: scanning for networks +[11:44:35][D][wifi:497]: Found networks: +[11:44:35][I][wifi:541]: - 'sthome-2.4G1' (A0:9F:7A:0D:B1:03) [redacted]▂▄▆█ +[11:44:35][D][wifi:542]: Channel: 1 +[11:44:35][D][wifi:543]: RSSI: -67 dB +[11:44:35][D][wifi:546]: - 'sthome-2.4G2'[redacted] (A2:9F:7A:1D:B1:03) [redacted]▂▄▆█ +[11:44:35][D][wifi:546]: - 'sthome-2.4G3'[redacted] (A2:9F:7A:2D:B1:03) [redacted]▂▄▆█ +[11:44:35][D][wifi:546]: - 'sthome-2.4G4'[redacted] (A2:9F:7A:3D:B1:03) [redacted]▂▄▆█ +[11:44:35][D][wifi:546]: - 'Q0024433976614'[redacted] (4A:55:19:7B:07:BA) [redacted]▂▄▆█ +[11:44:35][I][wifi:313]: WiFi Connecting to 'sthome-2.4G1'... +[11:44:36][I][wifi:617]: WiFi Connected! +[11:44:36][C][wifi:428]: Local MAC: D0:EF:76:58:AA:78 +[11:44:36][C][wifi:433]: SSID: 'sthome-2.4G1'[redacted] +[11:44:36][C][wifi:436]: IP Address: 10.0.1.42 +[11:44:36][C][wifi:440]: BSSID: A0:9F:7A:0D:B1:03[redacted] +[11:44:36][C][wifi:441]: Hostname: 'sthome-ut3' +[11:44:36][C][wifi:443]: Signal strength: -69 dB ▂▄▆█ +[11:44:36][C][wifi:447]: Channel: 1 +[11:44:36][C][wifi:448]: Subnet: 255.255.240.0 +[11:44:36][C][wifi:449]: Gateway: 10.0.0.2 +[11:44:36][C][wifi:450]: DNS1: 10.0.0.1 +[11:44:36][C][wifi:451]: DNS2: 1.1.1.1 +[11:44:36][D][wifi:626]: Disabling AP... +[11:44:36][C][api:026]: Setting up Home Assistant API server... +[11:44:36][I][app:062]: setup() finished successfully! +[11:44:36][W][component:170]: Component wifi cleared Warning flag +[11:44:36][W][component:157]: Component api set Warning flag: unspecified +[11:44:36][I][app:100]: ESPHome version 2025.3.3 compiled on Apr 16 2025, 11:31:25 +[11:44:36][C][wifi:600]: WiFi: +[11:44:36][C][wifi:428]: Local MAC: D0:EF:76:58:AA:78 +[11:44:36][C][wifi:433]: SSID: 'sthome-2.4G1'[redacted] +[11:44:36][C][wifi:436]: IP Address: 10.0.1.42 +[11:44:36][C][wifi:440]: BSSID: A0:9F:7A:0D:B1:03[redacted] +[11:44:36][C][wifi:441]: Hostname: 'sthome-ut3' +[11:44:36][C][wifi:443]: Signal strength: -68 dB ▂▄▆█ +[11:44:36][C][wifi:447]: Channel: 1 +[11:44:36][C][wifi:448]: Subnet: 255.255.240.0 +[11:44:36][C][wifi:449]: Gateway: 10.0.0.2 +[11:44:36][C][wifi:450]: DNS1: 10.0.0.1 +[11:44:36][C][wifi:451]: DNS2: 1.1.1.1 +[11:44:36][C][logger:177]: Logger: +[11:44:36][C][logger:178]: Max Level: DEBUG +[11:44:36][C][logger:179]: Initial Level: DEBUG +[11:44:36][C][logger:181]: Log Baud Rate: 115200 +[11:44:36][C][logger:182]: Hardware UART: UART0 +[11:44:36][C][captive_portal:089]: Captive Portal: +[11:44:36][C][mdns:116]: mDNS: +[11:44:36][C][mdns:117]: Hostname: sthome-ut3 +[11:44:36][C][esphome.ota:073]: Over-The-Air updates: +[11:44:36][C][esphome.ota:074]: Address: sthome-ut3.local:3232 +[11:44:36][C][esphome.ota:075]: Version: 2 +[11:44:36][C][esphome.ota:078]: Password configured +[11:44:36][C][safe_mode:018]: Safe Mode: +[11:44:36][C][safe_mode:020]: Boot considered successful after 60 seconds +[11:44:36][C][safe_mode:021]: Invoke after 10 boot attempts +[11:44:36][C][safe_mode:023]: Remain in safe mode for 300 seconds +[11:44:36][C][api:140]: API Server: +[11:44:36][C][api:141]: Address: sthome-ut3.local:6053 +[11:44:36][C][api:143]: Using noise encryption: YES +[11:45:29][I][safe_mode:041]: Boot seems successful; resetting boot loop counter +[11:45:29][D][esp32.preferences:114]: Saving 1 preferences to flash... +[11:45:29][D][esp32.preferences:143]: Saving 1 preferences to flash: 0 cached, 1 written, 0 failed diff --git a/esphome/sthome-ut3_logs.txt b/esphome/sthome-ut3_logs.txt new file mode 100644 index 0000000..a9b1497 --- /dev/null +++ b/esphome/sthome-ut3_logs.txt @@ -0,0 +1,325 @@ +[11:37:20]ets Jul 29 2019 12:21:46 +[11:37:20] +[11:37:20]rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) +[11:37:20]configsip: 0, SPIWP:0xee +[11:37:20]clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 +[11:37:20]mode:DIO, clock div:2 +[11:37:20]load:0x3fff0030,len:1184 +[11:37:20]load:0x40078000,len:13132 +[11:37:20]load:0x40080400,len:3036 +[11:37:20]entry 0x400805e4 +[11:37:21][I][logger:171]: Log initialized +[11:37:21][C][safe_mode:079]: There have been 1 suspected unsuccessful boot attempts +[11:37:21][D][esp32.preferences:114]: Saving 1 preferences to flash... +[11:37:21][D][esp32.preferences:143]: Saving 1 preferences to flash: 0 cached, 1 written, 0 failed +[11:37:21][I][app:029]: Running through setup()... +[11:37:21][C][wifi:048]: Setting up WiFi... +[11:37:21][C][wifi:061]: Starting WiFi... +[11:37:21][C][wifi:062]: Local MAC: D0:EF:76:58:AA:78 +[11:37:21][D][wifi:482]: Starting scan... +[11:37:21][W][component:157]: Component wifi set Warning flag: scanning for networks +[11:37:27][D][wifi:497]: Found networks: +[11:37:27][I][wifi:541]: - 'sthome-2.4G1' (A0:9F:7A:0D:B1:03) [redacted]▂▄▆█ +[11:37:27][D][wifi:542]: Channel: 13 +[11:37:27][D][wifi:543]: RSSI: -68 dB +[11:37:27][D][wifi:546]: - 'Q0024433976614'[redacted] (4A:55:19:7B:07:BA) [redacted]▂▄▆█ +[11:37:27][D][wifi:546]: - 'Q0023413241956'[redacted] (AE:0B:FB:D7:CD:E9) [redacted]▂▄▆█ +[11:37:27][I][wifi:313]: WiFi Connecting to 'sthome-2.4G1'... +[11:37:57][W][wifi:647]: Timeout while connecting to WiFi. +[11:37:57][I][wifi:313]: WiFi Connecting to 'sthome-2.4G1'... +[11:37:57][W][wifi_esp32:569][arduino_events]: Event: Disconnected ssid='sthome-2.4G1' bssid=A0:9F:7A:0D:B1:03[redacted] reason='Association Leave' +[11:37:57][W][wifi:674]: WiFi Unknown connection status 0 +[11:38:02][D][wifi:482]: Starting scan... +[11:38:08][D][wifi:497]: Found networks: +[11:38:08][I][wifi:541]: - 'sthome-2.4G1' (A0:9F:7A:0D:B1:03) [redacted]▂▄▆█ +[11:38:08][D][wifi:542]: Channel: 13 +[11:38:08][D][wifi:543]: RSSI: -69 dB +[11:38:08][D][wifi:546]: - 'Q0023413241956'[redacted] (AE:0B:FB:D7:CD:E9) [redacted]▂▄▆█ +[11:38:08][I][wifi:313]: WiFi Connecting to 'sthome-2.4G1'... +[11:38:08][W][wifi_esp32:569][arduino_events]: Event: Disconnected ssid='sthome-2.4G1' bssid=A0:9F:7A:0D:B1:03[redacted] reason='Association Leave' +[11:38:08][W][wifi:674]: WiFi Unknown connection status 0 +[11:38:08][I][wifi:313]: WiFi Connecting to 'sthome-2.4G1'... +[11:38:21][I][wifi:182]: Starting fallback AP! +[11:38:21][C][wifi:263]: Setting up AP... +[11:38:21][C][wifi:265]: AP SSID: 'Sthome-Ut3 Fallback Hotspot' +[11:38:21][C][wifi:266]: AP Password: 'cGXb2DqkwaOr' +[11:38:21][C][wifi:275]: IP Address: 192.168.4.1 +[11:38:21][C][api:026]: Setting up Home Assistant API server... +[11:38:21][I][app:062]: setup() finished successfully! +[11:38:21][I][safe_mode:041]: Boot seems successful; resetting boot loop counter +[11:38:21][D][esp32.preferences:114]: Saving 1 preferences to flash... +[11:38:21][D][esp32.preferences:143]: Saving 1 preferences to flash: 0 cached, 1 written, 0 failed +[11:38:21][W][component:157]: Component api set Warning flag: unspecified +[11:38:21][I][app:100]: ESPHome version 2025.3.3 compiled on Apr 16 2025, 11:31:25 +[11:38:21][C][wifi:600]: WiFi: +[11:38:21][C][wifi:428]: Local MAC: D0:EF:76:58:AA:78 +[11:38:21][C][wifi:433]: SSID: 'sthome-2.4G1'[redacted] +[11:38:21][C][wifi:440]: BSSID: A0:9F:7A:0D:B1:03[redacted] +[11:38:21][C][wifi:441]: Hostname: 'sthome-ut3' +[11:38:21][C][wifi:443]: Signal strength: -68 dB ▂▄▆█ +[11:38:21][C][wifi:447]: Channel: 13 +[11:38:21][C][wifi:448]: Subnet: 0.0.0.0 +[11:38:21][C][wifi:449]: Gateway: 0.0.0.0 +[11:38:21][C][wifi:450]: DNS1: 0.0.0.0 +[11:38:21][C][wifi:451]: DNS2: 0.0.0.0 +[11:38:21][C][logger:177]: Logger: +[11:38:21][C][logger:178]: Max Level: DEBUG +[11:38:21][C][logger:179]: Initial Level: DEBUG +[11:38:21][C][logger:181]: Log Baud Rate: 115200 +[11:38:21][C][logger:182]: Hardware UART: UART0 +[11:38:22][C][captive_portal:089]: Captive Portal: +[11:38:22][C][mdns:116]: mDNS: +[11:38:22][C][mdns:117]: Hostname: sthome-ut3 +[11:38:22][C][esphome.ota:073]: Over-The-Air updates: +[11:38:22][C][esphome.ota:074]: Address: sthome-ut3.local:3232 +[11:38:22][C][esphome.ota:075]: Version: 2 +[11:38:22][C][esphome.ota:078]: Password configured +[11:38:22][C][safe_mode:018]: Safe Mode: +[11:38:22][C][safe_mode:020]: Boot considered successful after 60 seconds +[11:38:22][C][safe_mode:021]: Invoke after 10 boot attempts +[11:38:22][C][safe_mode:023]: Remain in safe mode for 300 seconds +[11:38:22][C][api:140]: API Server: +[11:38:22][C][api:141]: Address: sthome-ut3.local:6053 +[11:38:22][C][api:143]: Using noise encryption: YES +[11:38:38][W][wifi:647]: Timeout while connecting to WiFi. +[11:38:43][D][wifi:482]: Starting scan... +[11:38:49][D][wifi:497]: Found networks: +[11:38:49][I][wifi:541]: - 'sthome-2.4G1' (A0:9F:7A:0D:B1:03) [redacted]▂▄▆█ +[11:38:49][D][wifi:542]: Channel: 13 +[11:38:49][D][wifi:543]: RSSI: -67 dB +[11:38:49][D][wifi:546]: - 'Q0023413241956'[redacted] (AE:0B:FB:D7:CD:E9) [redacted]▂▄▆█ +[11:38:49][D][wifi:546]: - 'Q0024433976614'[redacted] (4A:55:19:7B:07:BA) [redacted]▂▄▆█ +[11:38:49][I][wifi:313]: WiFi Connecting to 'sthome-2.4G1'... +[11:38:49][W][wifi_esp32:569][arduino_events]: Event: Disconnected ssid='sthome-2.4G1' bssid=A0:9F:7A:0D:B1:03[redacted] reason='Association Leave' +[11:38:49][W][wifi:674]: WiFi Unknown connection status 0 +[11:38:49][I][wifi:313]: WiFi Connecting to 'sthome-2.4G1'... +[11:39:19][W][wifi:647]: Timeout while connecting to WiFi. +[11:39:24][D][wifi:482]: Starting scan... +[11:39:30][D][wifi:497]: Found networks: +[11:39:30][I][wifi:541]: - 'sthome-2.4G1' (A0:9F:7A:0D:B1:03) [redacted]▂▄▆█ +[11:39:30][D][wifi:542]: Channel: 13 +[11:39:30][D][wifi:543]: RSSI: -68 dB +[11:39:30][D][wifi:546]: - 'Q0024433976614'[redacted] (4A:55:19:7B:07:BA) [redacted]▂▄▆█ +[11:39:30][D][wifi:546]: - 'Q0023413241956'[redacted] (AE:0B:FB:D7:CD:E9) [redacted]▂▄▆█ +[11:39:30][I][wifi:313]: WiFi Connecting to 'sthome-2.4G1'... +[11:39:30][W][wifi_esp32:569][arduino_events]: Event: Disconnected ssid='sthome-2.4G1' bssid=A0:9F:7A:0D:B1:03[redacted] reason='Association Leave' +[11:39:30][W][wifi:674]: WiFi Unknown connection status 0 +[11:39:30][I][wifi:313]: WiFi Connecting to 'sthome-2.4G1'... +[11:40:00][W][wifi_esp32:569][arduino_events]: Event: Disconnected ssid='sthome-2.4G1' bssid=A0:9F:7A:0D:B1:03[redacted] reason='Beacon Timeout' +[11:40:00][W][wifi:669]: Connecting to WiFi network failed. Are the credentials wrong? +[11:40:05][D][wifi:482]: Starting scan... +[11:40:11][D][wifi:497]: Found networks: +[11:40:11][D][wifi:546]: - 'Q0023413241956'[redacted] (AE:0B:FB:D7:CD:E9) [redacted]▂▄▆█ +[11:40:11][W][wifi:551]: No matching network found! +[11:40:16][D][wifi:482]: Starting scan... +[11:40:22][D][wifi:497]: Found networks: +[11:40:22][D][wifi:546]: - 'Q0023413241956'[redacted] (AE:0B:FB:D7:CD:E9) [redacted]▂▄▆█ +[11:40:22][D][wifi:546]: - 'Q0024433976614'[redacted] (4A:55:19:7B:07:BA) [redacted]▂▄▆█ +[11:40:22][W][wifi:551]: No matching network found! +[11:40:27][D][wifi:482]: Starting scan... +[11:40:33][D][wifi:497]: Found networks: +[11:40:33][D][wifi:546]: - 'Q0023413241956'[redacted] (AE:0B:FB:D7:CD:E9) [redacted]▂▄▆█ +[11:40:33][D][wifi:546]: - 'Q0024433976614'[redacted] (4A:55:19:7B:07:BA) [redacted]▂▄▆█ +[11:40:33][W][wifi:551]: No matching network found! +[11:40:38][D][wifi:482]: Starting scan... +[11:40:44][D][wifi:497]: Found networks: +[11:40:44][D][wifi:546]: - 'Q0023413241956'[redacted] (AE:0B:FB:D7:CD:E9) [redacted]▂▄▆█ +[11:40:44][W][wifi:551]: No matching network found! +[11:40:49][D][wifi:482]: Starting scan... +[11:40:55][D][wifi:497]: Found networks: +[11:40:55][I][wifi:541]: - 'sthome-2.4G1' (A0:9F:7A:0D:B1:03) [redacted]▂▄▆█ +[11:40:55][D][wifi:542]: Channel: 1 +[11:40:55][D][wifi:543]: RSSI: -69 dB +[11:40:55][D][wifi:546]: - 'sthome-2.4G4'[redacted] (A2:9F:7A:3D:B1:03) [redacted]▂▄▆█ +[11:40:55][D][wifi:546]: - 'sthome-2.4G2'[redacted] (A2:9F:7A:1D:B1:03) [redacted]▂▄▆█ +[11:40:55][D][wifi:546]: - 'sthome-2.4G3'[redacted] (A2:9F:7A:2D:B1:03) [redacted]▂▄▆█ +[11:40:55][D][wifi:546]: - 'Q0024433976614'[redacted] (4A:55:19:7B:07:BA) [redacted]▂▄▆█ +[11:40:55][D][wifi:546]: - 'Q0023413241956'[redacted] (AE:0B:FB:D7:CD:E9) [redacted]▂▄▆█ +[11:40:55][I][wifi:313]: WiFi Connecting to 'sthome-2.4G1'... +[11:40:55][W][component:237]: Component wifi took a long time for an operation (75 ms). +[11:40:55][W][component:238]: Components should block for at most 30 ms. +[11:40:56][W][wifi:669]: Connecting to WiFi network failed. Are the credentials wrong? +[11:40:56][I][wifi:313]: WiFi Connecting to 'sthome-2.4G1'... +[11:40:56][W][wifi:669]: Connecting to WiFi network failed. Are the credentials wrong? +[11:41:01][D][wifi:482]: Starting scan... +[11:41:07][D][wifi:497]: Found networks: +[11:41:07][I][wifi:541]: - 'sthome-2.4G1' (A0:9F:7A:0D:B1:03) [redacted]▂▄▆█ +[11:41:07][D][wifi:542]: Channel: 1 +[11:41:07][D][wifi:543]: RSSI: -66 dB +[11:41:07][D][wifi:546]: - 'sthome-2.4G2'[redacted] (A2:9F:7A:1D:B1:03) [redacted]▂▄▆█ +[11:41:07][D][wifi:546]: - 'sthome-2.4G3'[redacted] (A2:9F:7A:2D:B1:03) [redacted]▂▄▆█ +[11:41:07][D][wifi:546]: - 'sthome-2.4G4'[redacted] (A2:9F:7A:3D:B1:03) [redacted]▂▄▆█ +[11:41:07][D][wifi:546]: - 'Q0024433976614'[redacted] (4A:55:19:7B:07:BA) [redacted]▂▄▆█ +[11:41:07][D][wifi:546]: - 'Q0023413241956'[redacted] (AE:0B:FB:D7:CD:E9) [redacted]▂▄▆█ +[11:41:07][I][wifi:313]: WiFi Connecting to 'sthome-2.4G1'... +[11:41:07][W][component:237]: Component wifi took a long time for an operation (78 ms). +[11:41:07][W][component:238]: Components should block for at most 30 ms. +[11:41:07][W][wifi:674]: WiFi Unknown connection status 0 +[11:41:07][I][wifi:313]: WiFi Connecting to 'sthome-2.4G1'... +[11:41:07][W][wifi_esp32:569][arduino_events]: Event: Disconnected ssid='sthome-2.4G1' bssid=A0:9F:7A:0D:B1:03[redacted] reason='Authentication Failed' +[11:41:07][W][wifi:669]: Connecting to WiFi network failed. Are the credentials wrong? +[11:41:12][D][wifi:482]: Starting scan... +[11:41:18][D][wifi:497]: Found networks: +[11:41:18][I][wifi:541]: - 'sthome-2.4G1' (A0:9F:7A:0D:B1:03) [redacted]▂▄▆█ +[11:41:18][D][wifi:542]: Channel: 1 +[11:41:18][D][wifi:543]: RSSI: -65 dB +[11:41:18][D][wifi:546]: - 'sthome-2.4G2'[redacted] (A2:9F:7A:1D:B1:03) [redacted]▂▄▆█ +[11:41:18][D][wifi:546]: - 'sthome-2.4G4'[redacted] (A2:9F:7A:3D:B1:03) [redacted]▂▄▆█ +[11:41:18][D][wifi:546]: - 'sthome-2.4G3'[redacted] (A2:9F:7A:2D:B1:03) [redacted]▂▄▆█ +[11:41:18][D][wifi:546]: - 'Q0023413241956'[redacted] (AE:0B:FB:D7:CD:E9) [redacted]▂▄▆█ +[11:41:18][D][wifi:546]: - 'Q0024433976614'[redacted] (4A:55:19:7B:07:BA) [redacted]▂▄▆█ +[11:41:18][I][wifi:313]: WiFi Connecting to 'sthome-2.4G1'... +[11:41:18][W][component:237]: Component wifi took a long time for an operation (78 ms). +[11:41:18][W][component:238]: Components should block for at most 30 ms. +[11:41:18][W][wifi:674]: WiFi Unknown connection status 0 +[11:41:18][I][wifi:313]: WiFi Connecting to 'sthome-2.4G1'... +[11:41:18][W][wifi_esp32:569][arduino_events]: Event: Disconnected ssid='sthome-2.4G1' bssid=A0:9F:7A:0D:B1:03[redacted] reason='Association Failed' +[11:41:18][W][wifi:669]: Connecting to WiFi network failed. Are the credentials wrong? +[11:41:23][D][wifi:482]: Starting scan... +[11:41:29][D][wifi:497]: Found networks: +[11:41:29][I][wifi:541]: - 'sthome-2.4G1' (A0:9F:7A:0D:B1:03) [redacted]▂▄▆█ +[11:41:29][D][wifi:542]: Channel: 1 +[11:41:29][D][wifi:543]: RSSI: -67 dB +[11:41:29][D][wifi:546]: - 'sthome-2.4G2'[redacted] (A2:9F:7A:1D:B1:03) [redacted]▂▄▆█ +[11:41:29][D][wifi:546]: - 'sthome-2.4G4'[redacted] (A2:9F:7A:3D:B1:03) [redacted]▂▄▆█ +[11:41:29][D][wifi:546]: - 'sthome-2.4G3'[redacted] (A2:9F:7A:2D:B1:03) [redacted]▂▄▆█ +[11:41:29][D][wifi:546]: - 'Q0024433976614'[redacted] (4A:55:19:7B:07:BA) [redacted]▂▄▆█ +[11:41:29][D][wifi:546]: - 'Q0023413241956'[redacted] (AE:0B:FB:D7:CD:E9) [redacted]▂▄▆█ +[11:41:29][I][wifi:313]: WiFi Connecting to 'sthome-2.4G1'... +[11:41:29][W][component:237]: Component wifi took a long time for an operation (75 ms). +[11:41:29][W][component:238]: Components should block for at most 30 ms. +[11:41:29][W][wifi:669]: Connecting to WiFi network failed. Are the credentials wrong? +[11:41:29][I][wifi:313]: WiFi Connecting to 'sthome-2.4G1'... +[11:41:29][W][wifi_esp32:569][arduino_events]: Event: Disconnected ssid='sthome-2.4G1' bssid=A0:9F:7A:0D:B1:03[redacted] reason='Association Leave' +[11:41:29][W][wifi:674]: WiFi Unknown connection status 0 +[11:41:34][D][wifi:482]: Starting scan... +[11:41:41][D][wifi:497]: Found networks: +[11:41:41][I][wifi:541]: - 'sthome-2.4G1' (A0:9F:7A:0D:B1:03) [redacted]▂▄▆█ +[11:41:41][D][wifi:542]: Channel: 1 +[11:41:41][D][wifi:543]: RSSI: -66 dB +[11:41:41][D][wifi:546]: - 'sthome-2.4G3'[redacted] (A2:9F:7A:2D:B1:03) [redacted]▂▄▆█ +[11:41:41][D][wifi:546]: - 'sthome-2.4G4'[redacted] (A2:9F:7A:3D:B1:03) [redacted]▂▄▆█ +[11:41:41][D][wifi:546]: - 'sthome-2.4G2'[redacted] (A2:9F:7A:1D:B1:03) [redacted]▂▄▆█ +[11:41:41][D][wifi:546]: - 'Q0024433976614'[redacted] (4A:55:19:7B:07:BA) [redacted]▂▄▆█ +[11:41:41][D][wifi:546]: - 'Q0023413241956'[redacted] (AE:0B:FB:D7:CD:E9) [redacted]▂▄▆█ +[11:41:41][I][wifi:313]: WiFi Connecting to 'sthome-2.4G1'... +[11:41:41][W][component:237]: Component wifi took a long time for an operation (78 ms). +[11:41:41][W][component:238]: Components should block for at most 30 ms. +[11:41:41][W][wifi:674]: WiFi Unknown connection status 0 +[11:41:41][I][wifi:313]: WiFi Connecting to 'sthome-2.4G1'... +[11:41:41][W][wifi_esp32:569][arduino_events]: Event: Disconnected ssid='sthome-2.4G1' bssid=A0:9F:7A:0D:B1:03[redacted] reason='Association Leave' +[11:41:41][W][wifi:674]: WiFi Unknown connection status 0 +[11:41:46][D][wifi:482]: Starting scan... +[11:41:52][D][wifi:497]: Found networks: +[11:41:52][I][wifi:541]: - 'sthome-2.4G1' (A0:9F:7A:0D:B1:03) [redacted]▂▄▆█ +[11:41:52][D][wifi:542]: Channel: 1 +[11:41:52][D][wifi:543]: RSSI: -68 dB +[11:41:52][D][wifi:546]: - 'sthome-2.4G4'[redacted] (A2:9F:7A:3D:B1:03) [redacted]▂▄▆█ +[11:41:52][D][wifi:546]: - 'sthome-2.4G2'[redacted] (A2:9F:7A:1D:B1:03) [redacted]▂▄▆█ +[11:41:52][D][wifi:546]: - 'sthome-2.4G3'[redacted] (A2:9F:7A:2D:B1:03) [redacted]▂▄▆█ +[11:41:52][D][wifi:546]: - 'Q0023413241956'[redacted] (AE:0B:FB:D7:CD:E9) [redacted]▂▄▆█ +[11:41:52][D][wifi:546]: - 'Q0024433976614'[redacted] (4A:55:19:7B:07:BA) [redacted]▂▄▆█ +[11:41:52][I][wifi:313]: WiFi Connecting to 'sthome-2.4G1'... +[11:41:52][W][wifi_esp32:569][arduino_events]: Event: Disconnected ssid='sthome-2.4G1' bssid=A0:9F:7A:0D:B1:03[redacted] reason='Association Leave' +[11:41:52][W][wifi:674]: WiFi Unknown connection status 0 +[11:41:52][I][wifi:313]: WiFi Connecting to 'sthome-2.4G1'... +[11:41:52][W][wifi_esp32:569][arduino_events]: Event: Disconnected ssid='sthome-2.4G1' bssid=A0:9F:7A:0D:B1:03[redacted] reason='Association Failed' +[11:41:52][W][wifi:669]: Connecting to WiFi network failed. Are the credentials wrong? +[11:41:57][D][wifi:482]: Starting scan... +[11:42:03][D][wifi:497]: Found networks: +[11:42:03][I][wifi:541]: - 'sthome-2.4G1' (A0:9F:7A:0D:B1:03) [redacted]▂▄▆█ +[11:42:03][D][wifi:542]: Channel: 1 +[11:42:03][D][wifi:543]: RSSI: -68 dB +[11:42:03][D][wifi:546]: - 'sthome-2.4G2'[redacted] (A2:9F:7A:1D:B1:03) [redacted]▂▄▆█ +[11:42:03][D][wifi:546]: - 'sthome-2.4G3'[redacted] (A2:9F:7A:2D:B1:03) [redacted]▂▄▆█ +[11:42:03][D][wifi:546]: - 'sthome-2.4G4'[redacted] (A2:9F:7A:3D:B1:03) [redacted]▂▄▆█ +[11:42:03][D][wifi:546]: - 'Q0023413241956'[redacted] (AE:0B:FB:D7:CD:E9) [redacted]▂▄▆█ +[11:42:03][D][wifi:546]: - 'Q0024433976614'[redacted] (4A:55:19:7B:07:BA) [redacted]▂▄▆█ +[11:42:03][I][wifi:313]: WiFi Connecting to 'sthome-2.4G1'... +[11:42:03][W][component:237]: Component wifi took a long time for an operation (75 ms). +[11:42:03][W][component:238]: Components should block for at most 30 ms. +[11:42:03][W][wifi:669]: Connecting to WiFi network failed. Are the credentials wrong? +[11:42:03][I][wifi:313]: WiFi Connecting to 'sthome-2.4G1'... +[11:42:03][W][wifi:669]: Connecting to WiFi network failed. Are the credentials wrong? +[11:42:08][D][wifi:482]: Starting scan... +[11:42:14][D][wifi:497]: Found networks: +[11:42:14][I][wifi:541]: - 'sthome-2.4G1' (A0:9F:7A:0D:B1:03) [redacted]▂▄▆█ +[11:42:14][D][wifi:542]: Channel: 1 +[11:42:14][D][wifi:543]: RSSI: -68 dB +[11:42:14][D][wifi:546]: - 'sthome-2.4G2'[redacted] (A2:9F:7A:1D:B1:03) [redacted]▂▄▆█ +[11:42:14][D][wifi:546]: - 'sthome-2.4G3'[redacted] (A2:9F:7A:2D:B1:03) [redacted]▂▄▆█ +[11:42:14][D][wifi:546]: - 'sthome-2.4G4'[redacted] (A2:9F:7A:3D:B1:03) [redacted]▂▄▆█ +[11:42:14][D][wifi:546]: - 'Q0023413241956'[redacted] (AE:0B:FB:D7:CD:E9) [redacted]▂▄▆█ +[11:42:14][D][wifi:546]: - 'Q0024433976614'[redacted] (4A:55:19:7B:07:BA) [redacted]▂▄▆█ +[11:42:14][I][wifi:313]: WiFi Connecting to 'sthome-2.4G1'... +[11:42:14][W][component:237]: Component wifi took a long time for an operation (78 ms). +[11:42:14][W][component:238]: Components should block for at most 30 ms. +[11:42:15][W][wifi:674]: WiFi Unknown connection status 0 +[11:42:15][I][wifi:313]: WiFi Connecting to 'sthome-2.4G1'... +[11:42:15][W][wifi_esp32:569][arduino_events]: Event: Disconnected ssid='sthome-2.4G1' bssid=A0:9F:7A:0D:B1:03[redacted] reason='Association Failed' +[11:42:15][W][wifi:669]: Connecting to WiFi network failed. Are the credentials wrong? +[11:42:20][D][wifi:482]: Starting scan... +[11:42:26][D][wifi:497]: Found networks: +[11:42:26][I][wifi:541]: - 'sthome-2.4G1' (A0:9F:7A:0D:B1:03) [redacted]▂▄▆█ +[11:42:26][D][wifi:542]: Channel: 1 +[11:42:26][D][wifi:543]: RSSI: -67 dB +[11:42:26][D][wifi:546]: - 'sthome-2.4G3'[redacted] (A2:9F:7A:2D:B1:03) [redacted]▂▄▆█ +[11:42:26][D][wifi:546]: - 'sthome-2.4G2'[redacted] (A2:9F:7A:1D:B1:03) [redacted]▂▄▆█ +[11:42:26][D][wifi:546]: - 'sthome-2.4G4'[redacted] (A2:9F:7A:3D:B1:03) [redacted]▂▄▆█ +[11:42:26][D][wifi:546]: - 'Q0024433976614'[redacted] (4A:55:19:7B:07:BA) [redacted]▂▄▆█ +[11:42:26][D][wifi:546]: - 'Q0023413241956'[redacted] (AE:0B:FB:D7:CD:E9) [redacted]▂▄▆█ +[11:42:26][I][wifi:313]: WiFi Connecting to 'sthome-2.4G1'... +[11:42:26][W][component:237]: Component wifi took a long time for an operation (75 ms). +[11:42:26][W][component:238]: Components should block for at most 30 ms. +[11:42:26][W][wifi:669]: Connecting to WiFi network failed. Are the credentials wrong? +[11:42:26][I][wifi:313]: WiFi Connecting to 'sthome-2.4G1'... +[11:42:26][W][wifi_esp32:569][arduino_events]: Event: Disconnected ssid='sthome-2.4G1' bssid=A0:9F:7A:0D:B1:03[redacted] reason='Association Leave' +[11:42:26][W][wifi:674]: WiFi Unknown connection status 0 +[11:42:31][D][wifi:482]: Starting scan... +[11:42:37][D][wifi:497]: Found networks: +[11:42:37][I][wifi:541]: - 'sthome-2.4G1' (A0:9F:7A:0D:B1:03) [redacted]▂▄▆█ +[11:42:37][D][wifi:542]: Channel: 1 +[11:42:37][D][wifi:543]: RSSI: -66 dB +[11:42:37][D][wifi:546]: - 'sthome-2.4G2'[redacted] (A2:9F:7A:1D:B1:03) [redacted]▂▄▆█ +[11:42:37][D][wifi:546]: - 'sthome-2.4G3'[redacted] (A2:9F:7A:2D:B1:03) [redacted]▂▄▆█ +[11:42:37][D][wifi:546]: - 'sthome-2.4G4'[redacted] (A2:9F:7A:3D:B1:03) [redacted]▂▄▆█ +[11:42:37][D][wifi:546]: - 'Q0024433976614'[redacted] (4A:55:19:7B:07:BA) [redacted]▂▄▆█ +[11:42:37][D][wifi:546]: - 'Q0023413241956'[redacted] (AE:0B:FB:D7:CD:E9) [redacted]▂▄▆█ +[11:42:37][I][wifi:313]: WiFi Connecting to 'sthome-2.4G1'... +[11:42:37][W][component:237]: Component wifi took a long time for an operation (78 ms). +[11:42:37][W][component:238]: Components should block for at most 30 ms. +[11:42:37][W][wifi:674]: WiFi Unknown connection status 0 +[11:42:37][I][wifi:313]: WiFi Connecting to 'sthome-2.4G1'... +[11:42:37][W][wifi_esp32:569][arduino_events]: Event: Disconnected ssid='sthome-2.4G1' bssid=A0:9F:7A:0D:B1:03[redacted] reason='Association Leave' +[11:42:37][W][wifi:674]: WiFi Unknown connection status 0 +[11:42:42][D][wifi:482]: Starting scan... +[11:42:48][D][wifi:497]: Found networks: +[11:42:48][I][wifi:541]: - 'sthome-2.4G1' (A0:9F:7A:0D:B1:03) [redacted]▂▄▆█ +[11:42:48][D][wifi:542]: Channel: 1 +[11:42:48][D][wifi:543]: RSSI: -68 dB +[11:42:48][D][wifi:546]: - 'sthome-2.4G2'[redacted] (A2:9F:7A:1D:B1:03) [redacted]▂▄▆█ +[11:42:48][D][wifi:546]: - 'sthome-2.4G3'[redacted] (A2:9F:7A:2D:B1:03) [redacted]▂▄▆█ +[11:42:48][D][wifi:546]: - 'sthome-2.4G4'[redacted] (A2:9F:7A:3D:B1:03) [redacted]▂▄▆█ +[11:42:48][D][wifi:546]: - 'Q0024433976614'[redacted] (4A:55:19:7B:07:BA) [redacted]▂▄▆█ +[11:42:48][D][wifi:546]: - 'Q0023413241956'[redacted] (AE:0B:FB:D7:CD:E9) [redacted]▂▄▆█ +[11:42:48][I][wifi:313]: WiFi Connecting to 'sthome-2.4G1'... +[11:42:48][W][component:237]: Component wifi took a long time for an operation (78 ms). +[11:42:48][W][component:238]: Components should block for at most 30 ms. +[11:42:48][W][wifi:674]: WiFi Unknown connection status 0 +[11:42:48][I][wifi:313]: WiFi Connecting to 'sthome-2.4G1'... +[11:42:49][I][wifi:617]: WiFi Connected! +[11:42:49][C][wifi:428]: Local MAC: D0:EF:76:58:AA:78 +[11:42:49][C][wifi:433]: SSID: 'sthome-2.4G1'[redacted] +[11:42:49][C][wifi:436]: IP Address: 10.0.1.42 +[11:42:49][C][wifi:440]: BSSID: A0:9F:7A:0D:B1:03[redacted] +[11:42:49][C][wifi:441]: Hostname: 'sthome-ut3' +[11:42:49][C][wifi:443]: Signal strength: -71 dB ▂▄▆█ +[11:42:49][C][wifi:447]: Channel: 1 +[11:42:49][C][wifi:448]: Subnet: 255.255.240.0 +[11:42:49][C][wifi:449]: Gateway: 10.0.0.2 +[11:42:49][C][wifi:450]: DNS1: 10.0.0.1 +[11:42:49][C][wifi:451]: DNS2: 1.1.1.1 +[11:42:49][D][wifi:626]: Disabling AP... +[11:42:49][W][component:237]: Component wifi took a long time for an operation (57 ms). +[11:42:49][W][component:238]: Components should block for at most 30 ms. +[11:42:49][W][component:170]: Component wifi cleared Warning flag diff --git a/home-assistant/stacks/.env b/home-assistant/stacks/.env index db5dc86..65b708c 100644 --- a/home-assistant/stacks/.env +++ b/home-assistant/stacks/.env @@ -14,9 +14,7 @@ DATADIR=${DATAROOT}/${APPLICATION_NAME} SECRETSDIR=${STACKSDIR}/secrets WEBUI_PORT=8123 -APP2_NAME=esphome -APP2_DATADIR=${DATAROOT}/${APP2_NAME} -APP2_WEBUI_PORT=6052 +HOME_ASSISTANT_LOCAL=10.0.2.253 # for mDNS # # Generate DB_PASSWORD with: diff --git a/home-assistant/stacks/compose.yml b/home-assistant/stacks/compose.yml index fb508e0..47dca1c 100644 --- a/home-assistant/stacks/compose.yml +++ b/home-assistant/stacks/compose.yml @@ -14,7 +14,7 @@ networks: external: true postgres-net: external: true - mdns-net: + macvlan1: external: true services: @@ -29,9 +29,10 @@ services: restart: unless-stopped env_file: .home-assistant.env networks: - - traefik-net - - postgres-net - - mdns-net + traefik-net: + postgres-net: + macvlan1: + ipv4_address: ${HOME_ASSISTANT_LOCAL} depends_on: postgresql: condition: service_healthy @@ -50,38 +51,15 @@ services: - "traefik.http.routers.${APPLICATION_NAME}-secure-rtr.tls.options=tls-options@file" - "traefik.http.routers.${APPLICATION_NAME}-secure-rtr.tls.certresolver=solver-dns" - "traefik.http.routers.${APPLICATION_NAME}-secure-rtr.service=${APPLICATION_NAME}-svc" -# esphome: -# hostname: esphome -# image: esphome/esphome -# env_file: .esphome.env -# volumes: -# - /etc/localtime:/etc/localtime:ro -# - ${APP2_DATADIR}/config:/config -# restart: unless-stopped -# privileged: true -# networks: -# - traefik-net -# labels: -# - traefik.enable=true -# - traefik.docker.network=traefik-net -# - "traefik.http.services.${APP2_NAME}-svc.loadbalancer.server.port=${APP2_WEBUI_PORT}" -# - "traefik.http.routers.${APP2_NAME}-rtr.entrypoints=web" -# - "traefik.http.routers.${APP2_NAME}-rtr.rule=Host(`${APP2_NAME}.${DOMAINNAME}`)&& PathPrefix(`/`)" -# - "traefik.http.routers.${APP2_NAME}-rtr.middlewares=http-mw-secureHeaders-redirect@file" -# - "traefik.http.routers.${APP2_NAME}-rtr.service=${APP2_NAME}-svc" -# - "traefik.http.routers.${APP2_NAME}-secure-rtr.entrypoints=websecure" -# - "traefik.http.routers.${APP2_NAME}-secure-rtr.rule=Host(`${APP2_NAME}.${DOMAINNAME}`)&& PathPrefix(`/`)" -# - "traefik.http.routers.${APP2_NAME}-secure-rtr.middlewares=http-mw-secureHeaders@file" -# - "traefik.http.routers.${APP2_NAME}-secure-rtr.tls=true" -# - "traefik.http.routers.${APP2_NAME}-secure-rtr.tls.options=tls-options@file" -# - "traefik.http.routers.${APP2_NAME}-secure-rtr.tls.certresolver=solver-dns" -# - "traefik.http.routers.${APP2_NAME}-secure-rtr.service=${APP2_NAME}-svc" -# avahi-tools: -# volumes: -# - /run/dbus:/var/run/dbus -# - /run/avahi-daemon:/var/run/avahi-daemon -# image: ahasbini/avahi-tools:latest -# command: avahi-publish-service -s truenas.sthome.org _ssh._tcp 2222 + +# for mDNS + avahi-tools: + volumes: + - /run/dbus:/var/run/dbus + - /run/avahi-daemon:/var/run/avahi-daemon + image: ahasbini/avahi-tools:latest + command: avahi-publish -a home-assistant.local ${HOME_ASSISTANT_LOCAL} + postgresql: image: postgres:16-alpine hostname: "${APPLICATION_NAME}_postgresql"