gnumpi / esphome_matrixio

ESPHome Component for MatrixIO Devices
Other
11 stars 4 forks source link

Error: "Didn't find any MatrixIO device. Check SPI setup." #14

Closed FutureProofHomes closed 2 months ago

FutureProofHomes commented 6 months ago

Matrix Voice ESP32 is connected to RPI Zero 2W running Lastest Bookworm OS w/ Linux Kernel 6.1.0-rpi7-rpi-v8 aarch64. I've successfully flashed firmware-factory.bin to the Matrix Voice ESP32. Upon booting, the Matrix Voice shows white LEDs that are intermittently blinking. I cannot connect Home Assistant ESPHome. Thanks for help and great project here!

Is this issue cause by new GPIO layout discussed here? Or maybe it's because I modified my matrix_voice.yaml file to make the build succeed?

Run sudo minicom -D /dev/ttyS0 to see logs:

[C][wifi:397]:   IP Address: 192.168.10.209
[C][wifi:399]:   BSSID: 78:45:58:E1:71:F6
[C][wifi:400]:   Hostname: 'matrixio-voice'
[C][wifi:402]:   Signal strength: -46 dB ▂▄▆█
[C][wifi:406]:   Channel: 11
[C][wifi:407]:   Subnet: 255.255.255.0
[C][wifi:408]:   Gateway: 192.168.10.1
[C][wifi:409]:   DNS1: 1.1.1.1
[C][wifi:410]:   DNS2: 8.8.8.8
[C][logger:416]: Logger:
[C][logger:417]:   Level: DEBUG
[C][logger:418]:   Log Baud Rate: 115200
[C][logger:420]:   Hardware UART: UART0
[C][spi:067]: SPI bus:
[C][spi:068]:   CLK Pin: GPIO32
[C][spi:069]:   SDI Pin: GPIO21
[C][spi:070]:   SDO Pin: GPIO33
[C][spi:072]:   Using HW SPI: SPI
[C][matrixio_everloop:031]: Matrixio Everloop:
[C][matrixio_everloop:032]:   LEDs: 18
[C][light:103]: Light 'everloop'
[C][light:105]:   Default Transition Length: 1.0s
[C][light:106]:   Gamma Correct: 2.80
[C][template.switch:068]: Template Switch 'Use wake word'
[C][template.switch:091]:   Restore Mode: restore defaults to ON
[C][template.switch:057]:   Optimistic: YES
[C][template.switch:068]: Template Switch 'Use Listen Light'
[C][template.switch:091]:   Restore Mode: restore defaults to ON
[C][template.switch:057]:   Optimistic: YES
[C][template.switch:068]: Template Switch 'Start Listening'
[C][template.switch:091]:   Restore Mode: always OFF
[C][template.switch:057]:   Optimistic: NO
[C][matrixio:026]: Matrixio:
[C][matrixio:027]:   Data rate: 8MHz
[C][matrixio:028]:   CS pin: GPIO23
[C][matrixio:036]:   Matrixio not found! (id: 3227808933, version: 131094)
[C][matrixio_microphone:041]: Matrixio Microphones:
[C][matrixio_speaker:020]: Matrixio Speaker:
[I][logger:326]: Log initialized
[C][ota:473]: There have been 1 suspected unsuccessful boot attempts.
[D][esp32.preferences:114]: Saving 1 preferences to flash...
[D][esp32.preferences:143]: Saving 1 preferences to flash: 0 cached, 1 written, 0 failed
[I][app:029]: Running through setup()...
[D][spi:039]: Setting up SPI bus...
[C][light:035]: Setting up light 'everloop'...
[D][light:036]: 'everloop' Setting:
[D][light:041]:   Color mode: RGBW
[D][light:085]:   Transition length: 1.0s
[D][template.switch:046]:   Restored state ON
[D][switch:012]: 'Use wake word' Turning ON.
[D][switch:055]: 'Use wake word': Sending state ON
[E][voice_assistant:468]: No API client connected
[D][voice_assistant:422]: State changed from IDLE to IDLE
[D][voice_assistant:428]: Desired state set to IDLE
[D][light:036]: 'everloop' Setting:
[D][light:085]:   Transition length: 1.0s
[D][template.switch:046]:   Restored state ON
[D][switch:012]: 'Use Listen Light' Turning ON.
[D][switch:055]: 'Use Listen Light': Sending state ON
[D][light:036]: 'everloop' Setting:
[D][light:047]:   State: ON
[D][light:051]:   Brightness: 60%
[D][light:059]:   Red: 100%, Green: 89%, Blue: 71%
[D][light:063]:   White: 0%
[D][light:085]:   Transition length: 1.0s
[D][template.switch:046]:   Restored state OFF
[D][switch:016]: 'Start Listening' Turning OFF.
[D][light:036]: 'everloop' Setting:
[D][light:051]:   Brightness: 60%
[D][light:059]:   Red: 100%, Green: 89%, Blue: 71%
[D][light:063]:   White: 0%
[D][light:085]:   Transition length: 1.0s
[D][matrixio:013]: Setting up Matrixio...
[D][spi_device:355]: mode 3, data_rate 8000kHz
[E][matrixio:020]: Didn't find any MatrixIO device. Check SPI setup.
[E][component:113]: Component matrixio was marked as failed.
[C][matrixio_speaker:010]: Setting up MatrixIO Speaker...
[C][wifi:038]: Setting up WiFi...
[C][wifi:051]: Starting WiFi...
[C][wifi:052]:   Local MAC: 80:7D:3A:F7:C4:30
[I][wifi:286]: WiFi Connecting to 'ClusterHome_IoT'...
[D][esp32.preferences:114]: Saving 2 preferences to flash...
[D][esp32.preferences:143]: Saving 2 preferences to flash: 2 cached, 0 written, 0 failed
[I][wifi:573]: WiFi Connected!
[C][wifi:391]:   Local MAC: 80:7D:3A:F7:C4:30
[C][wifi:396]:   SSID: 'ClusterHome_IoT'
[C][wifi:397]:   IP Address: 192.168.10.209
[C][wifi:399]:   BSSID: 78:45:58:E1:71:F6
[C][wifi:400]:   Hostname: 'matrixio-voice'
[C][wifi:402]:   Signal strength: -47 dB ▂▄▆█
[C][wifi:406]:   Channel: 11
[C][wifi:407]:   Subnet: 255.255.255.0
[C][wifi:408]:   Gateway: 192.168.10.1
[C][wifi:409]:   DNS1: 1.1.1.1
[C][wifi:410]:   DNS2: 8.8.8.8
[C][ota:097]: Over-The-Air Updates:
[C][ota:098]:   Address: matrixio-voice.local:3232
[C][api:025]: Setting up Home Assistant API server...
[C][voice_assistant:028]: Setting up Voice Assistant...
[I][app:062]: setup() finished successfully!
[I][app:102]: ESPHome version 2023.11.6 compiled on Feb 24 2024, 18:21:27
[C][wifi:559]: WiFi:
[C][wifi:391]:   Local MAC: 80:7D:3A:F7:C4:30
[C][wifi:396]:   SSID: 'ClusterHome_IoT'
[C][wifi:397]:   IP Address: 192.168.10.209
[C][wifi:399]:   BSSID: 78:45:58:E1:71:F6
[C][wifi:400]:   Hostname: 'matrixio-voice'
[C][wifi:402]:   Signal strength: -46 dB ▂▄▆█
[C][wifi:406]:   Channel: 11
[C][wifi:407]:   Subnet: 255.255.255.0
[C][wifi:408]:   Gateway: 192.168.10.1
[C][wifi:409]:   DNS1: 1.1.1.1
[C][wifi:410]:   DNS2: 8.8.8.8
[C][logger:416]: Logger:
[C][logger:417]:   Level: DEBUG
[C][logger:418]:   Log Baud Rate: 115200
[C][logger:420]:   Hardware UART: UART0
[C][spi:067]: SPI bus:
[C][spi:068]:   CLK Pin: GPIO32
[C][spi:069]:   SDI Pin: GPIO21
[C][spi:070]:   SDO Pin: GPIO33
[C][spi:072]:   Using HW SPI: SPI
[C][matrixio_everloop:031]: Matrixio Everloop:
[C][matrixio_everloop:032]:   LEDs: 18
[C][light:103]: Light 'everloop'
[C][light:105]:   Default Transition Length: 1.0s
[C][light:106]:   Gamma Correct: 2.80
[C][template.switch:068]: Template Switch 'Use wake word'
[C][template.switch:091]:   Restore Mode: restore defaults to ON
[C][template.switch:057]:   Optimistic: YES
[C][template.switch:068]: Template Switch 'Use Listen Light'
[C][template.switch:091]:   Restore Mode: restore defaults to ON
[C][template.switch:057]:   Optimistic: YES
[C][template.switch:068]: Template Switch 'Start Listening'
[C][template.switch:091]:   Restore Mode: always OFF
[C][template.switch:057]:   Optimistic: NO
[C][matrixio:026]: Matrixio:
[C][matrixio:027]:   Data rate: 8MHz
[C][matrixio:028]:   CS pin: GPIO23
[C][matrixio:036]:   Matrixio not found! (id: 3227808933, version: 131094)
[C][matrixio_microphone:041]: Matrixio Microphones:
[C][matrixio_speaker:020]: Matrixio Speaker:
[I][logger:326]: Log initialized
[C][ota:473]: There have been 2 suspected unsuccessful boot attempts.
[D][esp32.preferences:114]: Saving 1 preferences to flash...
[D][esp32.preferences:143]: Saving 1 preferences to flash: 0 cached, 1 written, 0 failed
[I][app:029]: Running through setup()...
[D][spi:039]: Setting up SPI bus...
[C][light:035]: Setting up light 'everloop'...
[D][light:036]: 'everloop' Setting:
[D][light:041]:   Color mode: RGBW
[D][light:085]:   Transition length: 1.0s
[D][template.switch:046]:   Restored state ON
[D][switch:012]: 'Use wake word' Turning ON.
[D][switch:055]: 'Use wake word': Sending state ON
[E][voice_assistant:468]: No API client connected
[D][voice_assistant:422]: State changed from IDLE to IDLE
[D][voice_assistant:428]: Desired state set to IDLE
[D][light:036]: 'everloop' Setting:
[D][light:085]:   Transition length: 1.0s
[D][template.switch:046]:   Restored state ON
[D][switch:012]: 'Use Listen Light' Turning ON.
[D][switch:055]: 'Use Listen Light': Sending state ON
[D][light:036]: 'everloop' Setting:
[D][light:047]:   State: ON
[D][light:051]:   Brightness: 60%
[D][light:059]:   Red: 100%, Green: 89%, Blue: 71%
[D][light:063]:   White: 0%
[D][light:085]:   Transition length: 1.0s
[D][template.switch:046]:   Restored state OFF
[D][switch:016]: 'Start Listening' Turning OFF.
[D][light:036]: 'everloop' Setting:
[D][light:051]:   Brightness: 60%
[D][light:059]:   Red: 100%, Green: 89%, Blue: 71%
[D][light:063]:   White: 0%
[D][light:085]:   Transition length: 1.0s
[D][matrixio:013]: Setting up Matrixio...
[D][spi_device:355]: mode 3, data_rate 8000kHz
[E][matrixio:020]: Didn't find any MatrixIO device. Check SPI setup.
[E][component:113]: Component matrixio was marked as failed.
[C][matrixio_speaker:010]: Setting up MatrixIO Speaker...
[C][wifi:038]: Setting up WiFi...
[C][wifi:051]: Starting WiFi...
[C][wifi:052]:   Local MAC: 80:7D:3A:F7:C4:30
[I][wifi:286]: WiFi Connecting to 'ClusterHome_IoT'...
[D][esp32.preferences:114]: Saving 2 preferences to flash...
[D][esp32.preferences:143]: Saving 2 preferences to flash: 2 cached, 0 written, 0 failed
[I][wifi:573]: WiFi Connected!
[C][wifi:391]:   Local MAC: 80:7D:3A:F7:C4:30
[C][wifi:396]:   SSID: 'ClusterHome_IoT'
[C][wifi:397]:   IP Address: 192.168.10.209
[C][wifi:399]:   BSSID: 78:45:58:E1:71:F6
[C][wifi:400]:   Hostname: 'matrixio-voice'
[C][wifi:402]:   Signal strength: -48 dB ▂▄▆█
[C][wifi:406]:   Channel: 11
[C][wifi:407]:   Subnet: 255.255.255.0
[C][wifi:408]:   Gateway: 192.168.10.1
[C][wifi:409]:   DNS1: 1.1.1.1
[C][wifi:410]:   DNS2: 8.8.8.8
[C][ota:097]: Over-The-Air Updates:
[C][ota:098]:   Address: matrixio-voice.local:3232
[W][ota:107]: Last Boot was an unhandled reset, will proceed to safe mode in 8 restarts
[C][api:025]: Setting up Home Assistant API server...
[C][voice_assistant:028]: Setting up Voice Assistant...
[I][app:062]: setup() finished successfully!
[I][app:102]: ESPHome version 2023.11.6 compiled on Feb 24 2024, 18:21:27
[C][wifi:559]: WiFi:
[C][wifi:391]:   Local MAC: 80:7D:3A:F7:C4:30
[C][wifi:396]:   SSID: 'ClusterHome_IoT'
[C][wifi:397]:   IP Address: 192.168.10.209
[C][wifi:399]:   BSSID: 78:45:58:E1:71:F6
[C][wifi:400]:   Hostname: 'matrixio-voice'
[C][wifi:402]:   Signal strength: -47 dB ▂▄▆█
[C][wifi:406]:   Channel: 11
[C][wifi:407]:   Subnet: 255.255.255.0
[C][wifi:408]:   Gateway: 192.168.10.1
[C][wifi:409]:   DNS1: 1.1.1.1
[C][wifi:410]:   DNS2: 8.8.8.8
[C][logger:416]: Logger:
[C][logger:417]:   Level: DEBUG
[C][logger:418]:   Log Baud Rate: 115200
[C][logger:420]:   Hardware UART: UART0
[C][spi:067]: SPI bus:
[C][spi:068]:   CLK Pin: GPIO32
[C][spi:069]:   SDI Pin: GPIO21
[C][spi:070]:   SDO Pin: GPIO33
[C][spi:072]:   Using HW SPI: SPI
[C][matrixio_everloop:031]: Matrixio Everloop:
[C][matrixio_everloop:032]:   LEDs: 18
[C][light:103]: Light 'everloop'
[C][light:105]:   Default Transition Length: 1.0s
[C][light:106]:   Gamma Correct: 2.80
[C][template.switch:068]: Template Switch 'Use wake word'
[C][template.switch:091]:   Restore Mode: restore defaults to ON
[C][template.switch:057]:   Optimistic: YES
[C][template.switch:068]: Template Switch 'Use Listen Light'
[C][template.switch:091]:   Restore Mode: restore defaults to ON
[C][template.switch:057]:   Optimistic: YES
[C][template.switch:068]: Template Switch 'Start Listening'
[C][template.switch:091]:   Restore Mode: always OFF
[C][template.switch:057]:   Optimistic: NO
[C][matrixio:026]: Matrixio:
[C][matrixio:027]:   Data rate: 8MHz
[C][matrixio:028]:   CS pin: GPIO23
[C][matrixio:036]:   Matrixio not found! (id: 3227808933, version: 131094)
[C][matrixio_microphone:041]: Matrixio Microphones:
[C][matrixio_speaker:020]: Matrixio Speaker:
[I][logger:326]: Log initialized
[C][ota:473]: There have been 3 suspected unsuccessful boot attempts.
[D][esp32.preferences:114]: Saving 1 preferences to flash...
[D][esp32.preferences:143]: Saving 1 preferences to flash: 0 cached, 1 written, 0 failed
[I][app:029]: Running through setup()...
[D][spi:039]: Setting up SPI bus...
[C][light:035]: Setting up light 'everloop'...
[D][light:036]: 'everloop' Setting:
[D][light:041]:   Color mode: RGBW
[D][light:085]:   Transition length: 1.0s
[D][template.switch:046]:   Restored state ON
[D][switch:012]: 'Use wake word' Turning ON.
[D][switch:055]: 'Use wake word': Sending state ON
[E][voice_assistant:468]: No API client connected
[D][voice_assistant:422]: State changed from IDLE to IDLE
[D][voice_assistant:428]: Desired state set to IDLE
[D][light:036]: 'everloop' Setting:
[D][light:085]:   Transition length: 1.0s
[D][template.switch:046]:   Restored state ON
[D][switch:012]: 'Use Listen Light' Turning ON.
[D][switch:055]: 'Use Listen Light': Sending state ON
[D][light:036]: 'everloop' Setting:
[D][light:047]:   State: ON
[D][light:051]:   Brightness: 60%
[D][light:059]:   Red: 100%, Green: 89%, Blue: 71%
[D][light:063]:   White: 0%
[D][light:085]:   Transition length: 1.0s
[D][template.switch:046]:   Restored state OFF
[D][switch:016]: 'Start Listening' Turning OFF.
[D][light:036]: 'everloop' Setting:
[D][light:051]:   Brightness: 60%
[D][light:059]:   Red: 100%, Green: 89%, Blue: 71%
[D][light:063]:   White: 0%
[D][light:085]:   Transition length: 1.0s
[D][matrixio:013]: Setting up Matrixio...
[D][spi_device:355]: mode 3, data_rate 8000kHz
[E][matrixio:020]: Didn't find any MatrixIO device. Check SPI setup.
[E][component:113]: Component matrixio was marked as failed.
[C][matrixio_speaker:010]: Setting up MatrixIO Speaker...
[C][wifi:038]: Setting up WiFi...
[C][wifi:051]: Starting WiFi...
[C][wifi:052]:   Local MAC: 80:7D:3A:F7:C4:30
[I][wifi:286]: WiFi Connecting to 'ClusterHome_IoT'...
[D][esp32.preferences:114]: Saving 2 preferences to flash...
[D][esp32.preferences:143]: Saving 2 preferences to flash: 2 cached, 0 written, 0 failed
[W][wifi:625]: WiFi Unknown connection status 0
[I][wifi:286]: WiFi Connecting to 'ClusterHome_IoT'...
[W][wifi_esp32:458]: Event: Disconnected ssid='ClusterHome_IoT' bssid=78:45:58:E1:71:F6 reason='Ass'
[I][wifi:286]: WiFi Connecting to 'ClusterHome_IoT'...
[W][wifi:568]: Incomplete connection.
[I][wifi:286]: WiFi Connecting to 'ClusterHome_IoT'...
[I][wifi:573]: WiFi Connected!
[C][wifi:391]:   Local MAC: 80:7D:3A:F7:C4:30
[C][wifi:396]:   SSID: 'ClusterHome_IoT'
[C][wifi:397]:   IP Address: 192.168.10.209
[C][wifi:399]:   BSSID: 78:45:58:E1:71:F6
[C][wifi:400]:   Hostname: 'matrixio-voice'
[C][wifi:402]:   Signal strength: -47 dB ▂▄▆█
[C][wifi:406]:   Channel: 11
[C][wifi:407]:   Subnet: 255.255.255.0
[C][wifi:408]:   Gateway: 192.168.10.1
[C][wifi:409]:   DNS1: 1.1.1.1
[C][wifi:410]:   DNS2: 8.8.8.8
[C][ota:097]: Over-The-Air Updates:
[C][ota:098]:   Address: matrixio-voice.local:3232
[W][ota:107]: Last Boot was an unhandled reset, will proceed to safe mode in 7 restarts
[C][api:025]: Setting up Home Assistant API server...
[C][voice_assistant:028]: Setting up Voice Assistant...
[I][app:062]: setup() finished successfully!
[I][app:102]: ESPHome version 2023.11.6 compiled on Feb 24 2024, 18:21:27
[C][wifi:559]: WiFi:
[C][wifi:391]:   Local MAC: 80:7D:3A:F7:C4:30
[C][wifi:396]:   SSID: 'ClusterHome_IoT'
[C][wifi:397]:   IP Address: 192.168.10.209
[C][wifi:399]:   BSSID: 78:45:58:E1:71:F6
[C][wifi:400]:   Hostname: 'matrixio-voice'
[C][wifi:402]:   Signal strength: -47 dB ▂▄▆█
[C][wifi:406]:   Channel: 11
[C][wifi:407]:   Subnet: 255.255.255.0
[C][wifi:408]:   Gateway: 192.168.10.1
[C][wifi:409]:   DNS1: 1.1.1.1
[C][wifi:410]:   DNS2: 8.8.8.8
[C][logger:416]: Logger:
[C][logger:417]:   Level: DEBUG
[C][logger:418]:   Log Baud Rate: 115200
[C][logger:420]:   Hardware UART: UART0
[C][spi:067]: SPI bus:
[C][spi:068]:   CLK Pin: GPIO32
[C][spi:069]:   SDI Pin: GPIO21
[C][spi:070]:   SDO Pin: GPIO33
[C][spi:072]:   Using HW SPI: SPI
[C][matrixio_everloop:031]: Matrixio Everloop:
[C][matrixio_everloop:032]:   LEDs: 18
[C][light:103]: Light 'everloop'
[C][light:105]:   Default Transition Length: 1.0s
[C][light:106]:   Gamma Correct: 2.80
[C][template.switch:068]: Template Switch 'Use wake word'
[C][template.switch:091]:   Restore Mode: restore defaults to ON
[C][template.switch:057]:   Optimistic: YES
[C][template.switch:068]: Template Switch 'Use Listen Light'
[C][template.switch:091]:   Restore Mode: restore defaults to ON
[C][template.switch:057]:   Optimistic: YES
[C][template.switch:068]: Template Switch 'Start Listening'
[C][template.switch:091]:   Restore Mode: always OFF
[C][template.switch:057]:   Optimistic: NO
[C][matrixio:026]: Matrixio:
[C][matrixio:027]:   Data rate: 8MHz
[C][matrixio:028]:   CS pin: GPIO23
[C][matrixio:036]:   Matrixio not found! (id: 3227808933, version: 131094)
[C][matrixio_microphone:041]: Matrixio Microphones:
[C][matrixio_speaker:020]: Matrixio Speaker:
[I][logger:326]: Log initialized
[C][ota:473]: There have been 4 suspected unsuccessful boot attempts.
[D][esp32.preferences:114]: Saving 1 preferences to flash...
[D][esp32.preferences:143]: Saving 1 preferences to flash: 0 cached, 1 written, 0 failed
[I][app:029]: Running through setup()...
[D][spi:039]: Setting up SPI bus...
[C][light:035]: Setting up light 'everloop'...
[D][light:036]: 'everloop' Setting:
[D][light:041]:   Color mode: RGBW
[D][light:085]:   Transition length: 1.0s
[D][template.switch:046]:   Restored state ON
[D][switch:012]: 'Use wake word' Turning ON.
[D][switch:055]: 'Use wake word': Sending state ON
[E][voice_assistant:468]: No API client connected
[D][voice_assistant:422]: State changed from IDLE to IDLE
[D][voice_assistant:428]: Desired state set to IDLE
[D][light:036]: 'everloop' Setting:
[D][light:085]:   Transition length: 1.0s
[D][template.switch:046]:   Restored state ON
[D][switch:012]: 'Use Listen Light' Turning ON.
[D][switch:055]: 'Use Listen Light': Sending state ON
[D][light:036]: 'everloop' Setting:
[D][light:047]:   State: ON
[D][light:051]:   Brightness: 60%
[D][light:059]:   Red: 100%, Green: 89%, Blue: 71%
[D][light:063]:   White: 0%
[D][light:085]:   Transition length: 1.0s
[D][template.switch:046]:   Restored state OFF
[D][switch:016]: 'Start Listening' Turning OFF.
[D][light:036]: 'everloop' Setting:
[D][light:051]:   Brightness: 60%
[D][light:059]:   Red: 100%, Green: 89%, Blue: 71%
[D][light:063]:   White: 0%
[D][light:085]:   Transition length: 1.0s
[D][matrixio:013]: Setting up Matrixio...
[D][spi_device:355]: mode 3, data_rate 8000kHz
[E][matrixio:020]: Didn't find any MatrixIO device. Check SPI setup.
[E][component:113]: Component matrixio was marked as failed.
[C][matrixio_speaker:010]: Setting up MatrixIO Speaker...
[C][wifi:038]: Setting up WiFi...
[C][wifi:051]: Starting WiFi...
[C][wifi:052]:   Local MAC: 80:7D:3A:F7:C4:30
[I][wifi:286]: WiFi Connecting to 'ClusterHome_IoT'...
[D][esp32.preferences:114]: Saving 2 preferences to flash...
[D][esp32.preferences:143]: Saving 2 preferences to flash: 2 cached, 0 written, 0 failed
[I][wifi:573]: WiFi Connected!
[C][wifi:391]:   Local MAC: 80:7D:3A:F7:C4:30
[C][wifi:396]:   SSID: 'ClusterHome_IoT'
[C][wifi:397]:   IP Address: 192.168.10.209
[C][wifi:399]:   BSSID: 78:45:58:E1:71:F6
[C][wifi:400]:   Hostname: 'matrixio-voice'
[C][wifi:402]:   Signal strength: -46 dB ▂▄▆█
[C][wifi:406]:   Channel: 11
[C][wifi:407]:   Subnet: 255.255.255.0
[C][wifi:408]:   Gateway: 192.168.10.1
[C][wifi:409]:   DNS1: 1.1.1.1
[C][wifi:410]:   DNS2: 8.8.8.8
[C][ota:097]: Over-The-Air Updates:
[C][ota:098]:   Address: matrixio-voice.local:3232
[W][ota:107]: Last Boot was an unhandled reset, will proceed to safe mode in 6 restarts
[C][api:025]: Setting up Home Assistant API server...
[C][voice_assistant:028]: Setting up Voice Assistant...
[I][app:062]: setup() finished successfully!
[I][app:102]: ESPHome version 2023.11.6 compiled on Feb 24 2024, 18:21:27
[C][wifi:559]: WiFi:
[C][wifi:391]:   Local MAC: 80:7D:3A:F7:C4:30
[C][wifi:396]:   SSID: 'ClusterHome_IoT'
[C][wifi:397]:   IP Address: 192.168.10.209
[C][wifi:399]:   BSSID: 78:45:58:E1:71:F6
[C][wifi:400]:   Hostname: 'matrixio-voice'
[C][wifi:402]:   Signal strength: -46 dB ▂▄▆█
[C][wifi:406]:   Channel: 11
[C][wifi:407]:   Subnet: 255.255.255.0
[C][wifi:408]:   Gateway: 192.168.10.1
[C][wifi:409]:   DNS1: 1.1.1.1
[C][wifi:410]:   DNS2: 8.8.8.8
[C][logger:416]: Logger:
[C][logger:417]:   Level: DEBUG
[C][logger:418]:   Log Baud Rate: 115200
[C][logger:420]:   Hardware UART: UART0
[C][spi:067]: SPI bus:
[C][spi:068]:   CLK Pin: GPIO32
[C][spi:069]:   SDI Pin: GPIO21
[C][spi:070]:   SDO Pin: GPIO33
[C][spi:072]:   Using HW SPI: SPI
[C][matrixio_everloop:031]: Matrixio Everloop:
[C][matrixio_everloop:032]:   LEDs: 18
[C][light:103]: Light 'everloop'
[C][light:105]:   Default Transition Length: 1.0s
[C][light:106]:   Gamma Correct: 2.80
[C][template.switch:068]: Template Switch 'Use wake word'
[C][template.switch:091]:   Restore Mode: restore defaults to ON
[C][template.switch:057]:   Optimistic: YES
[C][template.switch:068]: Template Switch 'Use Listen Light'
[C][template.switch:091]:   Restore Mode: restore defaults to ON
[C][template.switch:057]:   Optimistic: YES
[C][template.switch:068]: Template Switch 'Start Listening'
[C][template.switch:091]:   Restore Mode: always OFF
[C][template.switch:057]:   Optimistic: NO
[C][matrixio:026]: Matrixio:
[C][matrixio:027]:   Data rate: 8MHz
[C][matrixio:028]:   CS pin: GPIO23
[C][matrixio:036]:   Matrixio not found! (id: 3227808933, version: 131094)
[C][matrixio_microphone:041]: Matrixio Microphones:
[C][matrixio_speaker:020]: Matrixio Speaker:
[I][logger:326]: Log initialized
[C][ota:473]: There have been 5 suspected unsuccessful boot attempts.
[D][esp32.preferences:114]: Saving 1 preferences to flash...
[D][esp32.preferences:143]: Saving 1 preferences to flash: 0 cached, 1 written, 0 failed
[I][app:029]: Running through setup()...
[D][spi:039]: Setting up SPI bus...
[C][light:035]: Setting up light 'everloop'...
[D][light:036]: 'everloop' Setting:
[D][light:041]:   Color mode: RGBW
[D][light:085]:   Transition length: 1.0s
[D][template.switch:046]:   Restored state ON
[D][switch:012]: 'Use wake word' Turning ON.
[D][switch:055]: 'Use wake word': Sending state ON
[E][voice_assistant:468]: No API client connected
[D][voice_assistant:422]: State changed from IDLE to IDLE
[D][voice_assistant:428]: Desired state set to IDLE
[D][light:036]: 'everloop' Setting:
[D][light:085]:   Transition length: 1.0s
[D][template.switch:046]:   Restored state ON
[D][switch:012]: 'Use Listen Light' Turning ON.
[D][switch:055]: 'Use Listen Light': Sending state ON
[D][light:036]: 'everloop' Setting:
[D][light:047]:   State: ON
[D][light:051]:   Brightness: 60%
[D][light:059]:   Red: 100%, Green: 89%, Blue: 71%
[D][light:063]:   White: 0%
[D][light:085]:   Transition length: 1.0s
[D][template.switch:046]:   Restored state OFF
[D][switch:016]: 'Start Listening' Turning OFF.
[D][light:036]: 'everloop' Setting:
[D][light:051]:   Brightness: 60%
[D][light:059]:   Red: 100%, Green: 89%, Blue: 71%
[D][light:063]:   White: 0%
[D][light:085]:   Transition length: 1.0s
[D][matrixio:013]: Setting up Matrixio...
[D][spi_device:355]: mode 3, data_rate 8000kHz
[E][matrixio:020]: Didn't find any MatrixIO device. Check SPI setup.
[E][component:113]: Component matrixio was marked as failed.
[C][matrixio_speaker:010]: Setting up MatrixIO Speaker...
[C][wifi:038]: Setting up WiFi...
[C][wifi:051]: Starting WiFi...
[C][wifi:052]:   Local MAC: 80:7D:3A:F7:C4:30
[I][wifi:286]: WiFi Connecting to 'ClusterHome_IoT'...
[D][esp32.preferences:114]: Saving 2 preferences to flash...
[D][esp32.preferences:143]: Saving 2 preferences to flash: 2 cached, 0 written, 0 failed
[I][wifi:573]: WiFi Connected!
[C][wifi:391]:   Local MAC: 80:7D:3A:F7:C4:30
[C][wifi:396]:   SSID: 'ClusterHome_IoT'
[C][wifi:397]:   IP Address: 192.168.10.209
[C][wifi:399]:   BSSID: 78:45:58:E1:71:F6
[C][wifi:400]:   Hostname: 'matrixio-voice'
[C][wifi:402]:   Signal strength: -45 dB ▂▄▆█
[C][wifi:406]:   Channel: 11
[C][wifi:407]:   Subnet: 255.255.255.0
[C][wifi:408]:   Gateway: 192.168.10.1
[C][wifi:409]:   DNS1: 1.1.1.1
[C][wifi:410]:   DNS2: 8.8.8.8
[C][ota:097]: Over-The-Air Updates:
[C][ota:098]:   Address: matrixio-voice.local:3232
[W][ota:107]: Last Boot was an unhandled reset, will proceed to safe mode in 5 restarts
[C][api:025]: Setting up Home Assistant API server...
[C][voice_assistant:028]: Setting up Voice Assistant...
[I][app:062]: setup() finished successfully!
[I][app:102]: ESPHome version 2023.11.6 compiled on Feb 24 2024, 18:21:27
[C][wifi:559]: WiFi:
[C][wifi:391]:   Local MAC: 80:7D:3A:F7:C4:30
[C][wifi:396]:   SSID: 'ClusterHome_IoT'
[C][wifi:397]:   IP Address: 192.168.10.209
[C][wifi:399]:   BSSID: 78:45:58:E1:71:F6
[C][wifi:400]:   Hostname: 'matrixio-voice'
[C][wifi:402]:   Signal strength: -47 dB ▂▄▆█
[C][wifi:406]:   Channel: 11
[C][wifi:407]:   Subnet: 255.255.255.0
[C][wifi:408]:   Gateway: 192.168.10.1
[C][wifi:409]:   DNS1: 1.1.1.1
[C][wifi:410]:   DNS2: 8.8.8.8
[C][logger:416]: Logger:
[C][logger:417]:   Level: DEBUG
[C][logger:418]:   Log Baud Rate: 115200
[C][logger:420]:   Hardware UART: UART0
[C][spi:067]: SPI bus:
[C][spi:068]:   CLK Pin: GPIO32
[C][spi:069]:   SDI Pin: GPIO21
[C][spi:070]:   SDO Pin: GPIO33
[C][spi:072]:   Using HW SPI: SPI
[C][matrixio_everloop:031]: Matrixio Everloop:
[C][matrixio_everloop:032]:   LEDs: 18
[C][light:103]: Light 'everloop'
[C][light:105]:   Default Transition Length: 1.0s
[C][light:106]:   Gamma Correct: 2.80
[C][template.switch:068]: Template Switch 'Use wake word'
[C][template.switch:091]:   Restore Mode: restore defaults to ON
[C][template.switch:057]:   Optimistic: YES
[C][template.switch:068]: Template Switch 'Use Listen Light'
[C][template.switch:091]:   Restore Mode: restore defaults to ON
[C][template.switch:057]:   Optimistic: YES
[C][template.switch:068]: Template Switch 'Start Listening'
[C][template.switch:091]:   Restore Mode: always OFF
[C][template.switch:057]:   Optimistic: NO
[C][matrixio:026]: Matrixio:
[C][matrixio:027]:   Data rate: 8MHz
[C][matrixio:028]:   CS pin: GPIO23
[C][matrixio:036]:   Matrixio not found! (id: 3227808933, version: 131094)
[C][matrixio_microphone:041]: Matrixio Microphones:
[C][matrixio_speaker:020]: Matrixio Speaker:
[I][logger:326]: Log initialized
[C][ota:473]: There have been 6 suspected unsuccessful boot attempts.
[D][esp32.preferences:114]: Saving 1 preferences to flash...
[D][esp32.preferences:143]: Saving 1 preferences to flash: 0 cached, 1 written, 0 failed
[I][app:029]: Running through setup()...
[D][spi:039]: Setting up SPI bus...
[C][light:035]: Setting up light 'everloop'...
[D][light:036]: 'everloop' Setting:
[D][light:041]:   Color mode: RGBW
[D][light:085]:   Transition length: 1.0s
[D][template.switch:046]:   Restored state ON
[D][switch:012]: 'Use wake word' Turning ON.
[D][switch:055]: 'Use wake word': Sending state ON
[E][voice_assistant:468]: No API client connected
[D][voice_assistant:422]: State changed from IDLE to IDLE
[D][voice_assistant:428]: Desired state set to IDLE
[D][light:036]: 'everloop' Setting:
[D][light:085]:   Transition length: 1.0s
[D][template.switch:046]:   Restored state ON
[D][switch:012]: 'Use Listen Light' Turning ON.
[D][switch:055]: 'Use Listen Light': Sending state ON
[D][light:036]: 'everloop' Setting:
[D][light:047]:   State: ON
[D][light:051]:   Brightness: 60%
[D][light:059]:   Red: 100%, Green: 89%, Blue: 71%
[D][light:063]:   White: 0%
[D][light:085]:   Transition length: 1.0s
[D][template.switch:046]:   Restored state OFF
[D][switch:016]: 'Start Listening' Turning OFF.
[D][light:036]: 'everloop' Setting:
[D][light:051]:   Brightness: 60%
[D][light:059]:   Red: 100%, Green: 89%, Blue: 71%
[D][light:063]:   White: 0%
[D][light:085]:   Transition length: 1.0s
[D][matrixio:013]: Setting up Matrixio...
[D][spi_device:355]: mode 3, data_rate 8000kHz
[E][matrixio:020]: Didn't find any MatrixIO device. Check SPI setup.
[E][component:113]: Component matrixio was marked as failed.
[C][matrixio_speaker:010]: Setting up MatrixIO Speaker...
[C][wifi:038]: Setting up WiFi...
[C][wifi:051]: Starting WiFi...
[C][wifi:052]:   Local MAC: 80:7D:3A:F7:C4:30
[I][wifi:286]: WiFi Connecting to 'ClusterHome_IoT'...
[D][esp32.preferences:114]: Saving 2 preferences to flash...
[D][esp32.preferences:143]: Saving 2 preferences to flash: 2 cached, 0 written, 0 failed
[I][wifi:573]: WiFi Connected!
[C][wifi:391]:   Local MAC: 80:7D:3A:F7:C4:30
[C][wifi:396]:   SSID: 'ClusterHome_IoT'
[C][wifi:397]:   IP Address: 192.168.10.209
[C][wifi:399]:   BSSID: 78:45:58:E1:71:F6
[C][wifi:400]:   Hostname: 'matrixio-voice'
[C][wifi:402]:   Signal strength: -45 dB ▂▄▆█
[C][wifi:406]:   Channel: 11
[C][wifi:407]:   Subnet: 255.255.255.0
[C][wifi:408]:   Gateway: 192.168.10.1
[C][wifi:409]:   DNS1: 1.1.1.1
[C][wifi:410]:   DNS2: 8.8.8.8
[C][ota:097]: Over-The-Air Updates:
[C][ota:098]:   Address: matrixio-voice.local:3232
[W][ota:107]: Last Boot was an unhandled reset, will proceed to safe mode in 4 restarts
[C][api:025]: Setting up Home Assistant API server...
[C][voice_assistant:028]: Setting up Voice Assistant...
[I][app:062]: setup() finished successfully!
[I][app:102]: ESPHome version 2023.11.6 compiled on Feb 24 2024, 18:21:27
[C][wifi:559]: WiFi:
[C][wifi:391]:   Local MAC: 80:7D:3A:F7:C4:30
[C][wifi:396]:   SSID: 'ClusterHome_IoT'
[C][wifi:397]:   IP Address: 192.168.10.209
[C][wifi:399]:   BSSID: 78:45:58:E1:71:F6
[C][wifi:400]:   Hostname: 'matrixio-voice'
[C][wifi:402]:   Signal strength: -46 dB ▂▄▆█
[C][wifi:406]:   Channel: 11
[C][wifi:407]:   Subnet: 255.255.255.0
[C][wifi:408]:   Gateway: 192.168.10.1
[C][wifi:409]:   DNS1: 1.1.1.1
[C][wifi:410]:   DNS2: 8.8.8.8
[C][logger:416]: Logger:
[C][logger:417]:   Level: DEBUG
[C][logger:418]:   Log Baud Rate: 115200
[C][logger:420]:   Hardware UART: UART0
[C][spi:067]: SPI bus:
[C][spi:068]:   CLK Pin: GPIO32
[C][spi:069]:   SDI Pin: GPIO21
[C][spi:070]:   SDO Pin: GPIO33
[C][spi:072]:   Using HW SPI: SPI
[C][matrixio_everloop:031]: Matrixio Everloop:
[C][matrixio_everloop:032]:   LEDs: 18
[C][light:103]: Light 'everloop'
[C][light:105]:   Default Transition Length: 1.0s
[C][light:106]:   Gamma Correct: 2.80
[C][template.switch:068]: Template Switch 'Use wake word'
[C][template.switch:091]:   Restore Mode: restore defaults to ON
[C][template.switch:057]:   Optimistic: YES
[C][template.switch:068]: Template Switch 'Use Listen Light'
[C][template.switch:091]:   Restore Mode: restore defaults to ON
[C][template.switch:057]:   Optimistic: YES
[C][template.switch:068]: Template Switch 'Start Listening'
[C][template.switch:091]:   Restore Mode: always OFF
[C][template.switch:057]:   Optimistic: NO
[C][matrixio:026]: Matrixio:
[C][matrixio:027]:   Data rate: 8MHz
[C][matrixio:028]:   CS pin: GPIO23
[C][matrixio:036]:   Matrixio not found! (id: 3227808933, version: 131094)
[C][matrixio_microphone:041]: Matrixio Microphones:
[C][matrixio_speaker:020]: Matrixio Speaker:
[I][logger:326]: Log initialized
[C][ota:473]: There have been 7 suspected unsuccessful boot attempts.
[D][esp32.preferences:114]: Saving 1 preferences to flash...
[D][esp32.preferences:143]: Saving 1 preferences to flash: 0 cached, 1 written, 0 failed
[I][app:029]: Running through setup()...
[D][spi:039]: Setting up SPI bus...
[C][light:035]: Setting up light 'everloop'...
[D][light:036]: 'everloop' Setting:
[D][light:041]:   Color mode: RGBW
[D][light:085]:   Transition length: 1.0s
[D][template.switch:046]:   Restored state ON
[D][switch:012]: 'Use wake word' Turning ON.
[D][switch:055]: 'Use wake word': Sending state ON
[E][voice_assistant:468]: No API client connected
[D][voice_assistant:422]: State changed from IDLE to IDLE
[D][voice_assistant:428]: Desired state set to IDLE
[D][light:036]: 'everloop' Setting:
[D][light:085]:   Transition length: 1.0s
[D][template.switch:046]:   Restored state ON
[D][switch:012]: 'Use Listen Light' Turning ON.
[D][switch:055]: 'Use Listen Light': Sending state ON
[D][light:036]: 'everloop' Setting:
[D][light:047]:   State: ON
[D][light:051]:   Brightness: 60%
[D][light:059]:   Red: 100%, Green: 89%, Blue: 71%
[D][light:063]:   White: 0%
[D][light:085]:   Transition length: 1.0s
[D][template.switch:046]:   Restored state OFF
[D][switch:016]: 'Start Listening' Turning OFF.
[D][light:036]: 'everloop' Setting:
[D][light:051]:   Brightness: 60%
[D][light:059]:   Red: 100%, Green: 89%, Blue: 71%
[D][light:063]:   White: 0%
[D][light:085]:   Transition length: 1.0s
[D][matrixio:013]: Setting up Matrixio...
[D][spi_device:355]: mode 3, data_rate 8000kHz
[E][matrixio:020]: Didn't find any MatrixIO device. Check SPI setup.
[E][component:113]: Component matrixio was marked as failed.
[C][matrixio_speaker:010]: Setting up MatrixIO Speaker...
[C][wifi:038]: Setting up WiFi...
[C][wifi:051]: Starting WiFi...
[C][wifi:052]:   Local MAC: 80:7D:3A:F7:C4:30
[I][wifi:286]: WiFi Connecting to 'ClusterHome_IoT'...
[D][esp32.preferences:114]: Saving 2 preferences to flash...
[D][esp32.preferences:143]: Saving 2 preferences to flash: 2 cached, 0 written, 0 failed
[I][wifi:573]: WiFi Connected!
[C][wifi:391]:   Local MAC: 80:7D:3A:F7:C4:30
[C][wifi:396]:   SSID: 'ClusterHome_IoT'
[C][wifi:397]:   IP Address: 192.168.10.209
[C][wifi:399]:   BSSID: 78:45:58:E1:71:F6
[C][wifi:400]:   Hostname: 'matrixio-voice'
[C][wifi:402]:   Signal strength: -46 dB ▂▄▆█
[C][wifi:406]:   Channel: 11
[C][wifi:407]:   Subnet: 255.255.255.0
[C][wifi:408]:   Gateway: 192.168.10.1
[C][wifi:409]:   DNS1: 1.1.1.1
[C][wifi:410]:   DNS2: 8.8.8.8
[C][ota:097]: Over-The-Air Updates:
[C][ota:098]:   Address: matrixio-voice.local:3232
[W][ota:107]: Last Boot was an unhandled reset, will proceed to safe mode in 3 restarts
[C][api:025]: Setting up Home Assistant API server...
[C][voice_assistant:028]: Setting up Voice Assistant...
[I][app:062]: setup() finished successfully!
[I][app:102]: ESPHome version 2023.11.6 compiled on Feb 24 2024, 18:21:27
[C][wifi:559]: WiFi:
[C][wifi:391]:   Local MAC: 80:7D:3A:F7:C4:30
[C][wifi:396]:   SSID: 'ClusterHome_IoT'
[C][wifi:397]:   IP Address: 192.168.10.209
[C][wifi:399]:   BSSID: 78:45:58:E1:71:F6
[C][wifi:400]:   Hostname: 'matrixio-voice'
[C][wifi:402]:   Signal strength: -46 dB ▂▄▆█
[C][wifi:406]:   Channel: 11
[C][wifi:407]:   Subnet: 255.255.255.0
[C][wifi:408]:   Gateway: 192.168.10.1
[C][wifi:409]:   DNS1: 1.1.1.1
[C][wifi:410]:   DNS2: 8.8.8.8
[C][logger:416]: Logger:
[C][logger:417]:   Level: DEBUG
[C][logger:418]:   Log Baud Rate: 115200
[C][logger:420]:   Hardware UART: UART0
[C][spi:067]: SPI bus:
[C][spi:068]:   CLK Pin: GPIO32
[C][spi:069]:   SDI Pin: GPIO21
[C][spi:070]:   SDO Pin: GPIO33
[C][spi:072]:   Using HW SPI: SPI
[C][matrixio_everloop:031]: Matrixio Everloop:
[C][matrixio_everloop:032]:   LEDs: 18
[C][light:103]: Light 'everloop'
[C][light:105]:   Default Transition Length: 1.0s
[C][light:106]:   Gamma Correct: 2.80
[C][template.switch:068]: Template Switch 'Use wake word'
[C][template.switch:091]:   Restore Mode: restore defaults to ON
[C][template.switch:057]:   Optimistic: YES
[C][template.switch:068]: Template Switch 'Use Listen Light'
[C][template.switch:091]:   Restore Mode: restore defaults to ON
[C][template.switch:057]:   Optimistic: YES
[C][template.switch:068]: Template Switch 'Start Listening'
[C][template.switch:091]:   Restore Mode: always OFF
[C][template.switch:057]:   Optimistic: NO
[C][matrixio:026]: Matrixio:
[C][matrixio:027]:   Data rate: 8MHz
[C][matrixio:028]:   CS pin: GPIO23
[C][matrixio:036]:   Matrixio not found! (id: 3227808933, version: 131094)
[C][matrixio_microphone:041]: Matrixio Microphones:
[C][matrixio_speaker:020]: Matrixio Speaker:
[I][logger:326]: Log initialized
[C][ota:473]: There have been 8 suspected unsuccessful boot attempts.
[D][esp32.preferences:114]: Saving 1 preferences to flash...
[D][esp32.preferences:143]: Saving 1 preferences to flash: 0 cached, 1 written, 0 failed
[I][app:029]: Running through setup()...
[D][spi:039]: Setting up SPI bus...
[C][light:035]: Setting up light 'everloop'...
[D][light:036]: 'everloop' Setting:
[D][light:041]:   Color mode: RGBW
[D][light:085]:   Transition length: 1.0s
[D][template.switch:046]:   Restored state ON
[D][switch:012]: 'Use wake word' Turning ON.
[D][switch:055]: 'Use wake word': Sending state ON
[E][voice_assistant:468]: No API client connected
[D][voice_assistant:422]: State changed from IDLE to IDLE
[D][voice_assistant:428]: Desired state set to IDLE
[D][light:036]: 'everloop' Setting:
[D][light:085]:   Transition length: 1.0s
[D][template.switch:046]:   Restored state ON
[D][switch:012]: 'Use Listen Light' Turning ON.
[D][switch:055]: 'Use Listen Light': Sending state ON
[D][light:036]: 'everloop' Setting:
[D][light:047]:   State: ON
[D][light:051]:   Brightness: 60%
[D][light:059]:   Red: 100%, Green: 89%, Blue: 71%
[D][light:063]:   White: 0%
[D][light:085]:   Transition length: 1.0s
[D][template.switch:046]:   Restored state OFF
[D][switch:016]: 'Start Listening' Turning OFF.
[D][light:036]: 'everloop' Setting:
[D][light:051]:   Brightness: 60%
[D][light:059]:   Red: 100%, Green: 89%, Blue: 71%
[D][light:063]:   White: 0%
[D][light:085]:   Transition length: 1.0s
[D][matrixio:013]: Setting up Matrixio...
[D][spi_device:355]: mode 3, data_rate 8000kHz
[E][matrixio:020]: Didn't find any MatrixIO device. Check SPI setup.
[E][component:113]: Component matrixio was marked as failed.
[C][matrixio_speaker:010]: Setting up MatrixIO Speaker...
[C][wifi:038]: Setting up WiFi...
[C][wifi:051]: Starting WiFi...
[C][wifi:052]:   Local MAC: 80:7D:3A:F7:C4:30
[I][wifi:286]: WiFi Connecting to 'ClusterHome_IoT'...
[D][esp32.preferences:114]: Saving 2 preferences to flash...
[D][esp32.preferences:143]: Saving 2 preferences to flash: 2 cached, 0 written, 0 failed
[I][wifi:573]: WiFi Connected!
[C][wifi:391]:   Local MAC: 80:7D:3A:F7:C4:30
[C][wifi:396]:   SSID: 'ClusterHome_IoT'
[C][wifi:397]:   IP Address: 192.168.10.209
[C][wifi:399]:   BSSID: 78:45:58:E1:71:F6
[C][wifi:400]:   Hostname: 'matrixio-voice'
[C][wifi:402]:   Signal strength: -45 dB ▂▄▆█
[C][wifi:406]:   Channel: 11
[C][wifi:407]:   Subnet: 255.255.255.0
[C][wifi:408]:   Gateway: 192.168.10.1
[C][wifi:409]:   DNS1: 1.1.1.1
[C][wifi:410]:   DNS2: 8.8.8.8
[C][ota:097]: Over-The-Air Updates:
[C][ota:098]:   Address: matrixio-voice.local:3232
[W][ota:107]: Last Boot was an unhandled reset, will proceed to safe mode in 2 restarts
[C][api:025]: Setting up Home Assistant API server...
[C][voice_assistant:028]: Setting up Voice Assistant...
[I][app:062]: setup() finished successfully!
[I][app:102]: ESPHome version 2023.11.6 compiled on Feb 24 2024, 18:21:27
[C][wifi:559]: WiFi:
[C][wifi:391]:   Local MAC: 80:7D:3A:F7:C4:30
[C][wifi:396]:   SSID: 'ClusterHome_IoT'
[C][wifi:397]:   IP Address: 192.168.10.209
[C][wifi:399]:   BSSID: 78:45:58:E1:71:F6
[C][wifi:400]:   Hostname: 'matrixio-voice'
[C][wifi:402]:   Signal strength: -47 dB ▂▄▆█
[C][wifi:406]:   Channel: 11
[C][wifi:407]:   Subnet: 255.255.255.0
[C][wifi:408]:   Gateway: 192.168.10.1
[C][wifi:409]:   DNS1: 1.1.1.1
[C][wifi:410]:   DNS2: 8.8.8.8
[C][logger:416]: Logger:
[C][logger:417]:   Level: DEBUG
[C][logger:418]:   Log Baud Rate: 115200
[C][logger:420]:   Hardware UART: UART0
[C][spi:067]: SPI bus:
[C][spi:068]:   CLK Pin: GPIO32
[C][spi:069]:   SDI Pin: GPIO21
[C][spi:070]:   SDO Pin: GPIO33
[C][spi:072]:   Using HW SPI: SPI
[C][matrixio_everloop:031]: Matrixio Everloop:
[C][matrixio_everloop:032]:   LEDs: 18
[C][light:103]: Light 'everloop'
[C][light:105]:   Default Transition Length: 1.0s
[C][light:106]:   Gamma Correct: 2.80
[C][template.switch:068]: Template Switch 'Use wake word'
[C][template.switch:091]:   Restore Mode: restore defaults to ON
[C][template.switch:057]:   Optimistic: YES
[C][template.switch:068]: Template Switch 'Use Listen Light'
[C][template.switch:091]:   Restore Mode: restore defaults to ON
[C][template.switch:057]:   Optimistic: YES
[C][template.switch:068]: Template Switch 'Start Listening'
[C][template.switch:091]:   Restore Mode: always OFF
[C][template.switch:057]:   Optimistic: NO
[C][matrixio:026]: Matrixio:
[C][matrixio:027]:   Data rate: 8MHz
[C][matrixio:028]:   CS pin: GPIO23
[C][matrixio:036]:   Matrixio not found! (id: 3227808933, version: 131094)
[C][matrixio_microphone:041]: Matrixio Microphones:
[C][matrixio_speaker:020]: Matrixio Speaker:
[I][logger:326]: Log initialized
[C][ota:473]: There have been 9 suspected unsuccessful boot attempts.
[D][esp32.preferences:114]: Saving 1 preferences to flash...
[D][esp32.preferences:143]: Saving 1 preferences to flash: 0 cached, 1 written, 0 failed
[I][app:029]: Running through setup()...
[D][spi:039]: Setting up SPI bus...
[C][light:035]: Setting up light 'everloop'...
[D][light:036]: 'everloop' Setting:
[D][light:041]:   Color mode: RGBW
[D][light:085]:   Transition length: 1.0s
[D][template.switch:046]:   Restored state ON
[D][switch:012]: 'Use wake word' Turning ON.
[D][switch:055]: 'Use wake word': Sending state ON
[E][voice_assistant:468]: No API client connected
[D][voice_assistant:422]: State changed from IDLE to IDLE
[D][voice_assistant:428]: Desired state set to IDLE
[D][light:036]: 'everloop' Setting:
[D][light:085]:   Transition length: 1.0s
[D][template.switch:046]:   Restored state ON
[D][switch:012]: 'Use Listen Light' Turning ON.
[D][switch:055]: 'Use Listen Light': Sending state ON
[D][light:036]: 'everloop' Setting:
[D][light:047]:   State: ON
[D][light:051]:   Brightness: 60%
[D][light:059]:   Red: 100%, Green: 89%, Blue: 71%
[D][light:063]:   White: 0%
[D][light:085]:   Transition length: 1.0s
[D][template.switch:046]:   Restored state OFF
[D][switch:016]: 'Start Listening' Turning OFF.
[D][light:036]: 'everloop' Setting:
[D][light:051]:   Brightness: 60%
[D][light:059]:   Red: 100%, Green: 89%, Blue: 71%
[D][light:063]:   White: 0%
[D][light:085]:   Transition length: 1.0s
[D][matrixio:013]: Setting up Matrixio...
[D][spi_device:355]: mode 3, data_rate 8000kHz
[E][matrixio:020]: Didn't find any MatrixIO device. Check SPI setup.
[E][component:113]: Component matrixio was marked as failed.
[C][matrixio_speaker:010]: Setting up MatrixIO Speaker...
[C][wifi:038]: Setting up WiFi...
[C][wifi:051]: Starting WiFi...
[C][wifi:052]:   Local MAC: 80:7D:3A:F7:C4:30
[I][wifi:286]: WiFi Connecting to 'ClusterHome_IoT'...
[D][esp32.preferences:114]: Saving 2 preferences to flash...
[D][esp32.preferences:143]: Saving 2 preferences to flash: 2 cached, 0 written, 0 failed
[W][wifi:625]: WiFi Unknown connection status 0
[I][wifi:286]: WiFi Connecting to 'ClusterHome_IoT'...
[W][wifi_esp32:458]: Event: Disconnected ssid='ClusterHome_IoT' bssid=78:45:58:E1:71:F6 reason='Ass'
[I][wifi:286]: WiFi Connecting to 'ClusterHome_IoT'...
[W][wifi:568]: Incomplete connection.
[I][wifi:286]: WiFi Connecting to 'ClusterHome_IoT'...
[W][wifi:625]: WiFi Unknown connection status 0
[I][wifi:286]: WiFi Connecting to 'ClusterHome_IoT'...
[W][wifi:568]: Incomplete connection.
[I][wifi:286]: WiFi Connecting to 'ClusterHome_IoT'...
[I][wifi:573]: WiFi Connected!
[C][wifi:391]:   Local MAC: 80:7D:3A:F7:C4:30
[C][wifi:396]:   SSID: 'ClusterHome_IoT'
[C][wifi:397]:   IP Address: 192.168.10.209
[C][wifi:399]:   BSSID: 78:45:58:E1:71:F6
[C][wifi:400]:   Hostname: 'matrixio-voice'
[C][wifi:402]:   Signal strength: -47 dB ▂▄▆█
[C][wifi:406]:   Channel: 11
[C][wifi:407]:   Subnet: 255.255.255.0
[C][wifi:408]:   Gateway: 192.168.10.1
[C][wifi:409]:   DNS1: 1.1.1.1
[C][wifi:410]:   DNS2: 8.8.8.8
[C][ota:097]: Over-The-Air Updates:
[C][ota:098]:   Address: matrixio-voice.local:3232
[W][ota:107]: Last Boot was an unhandled reset, will proceed to safe mode in 1 restarts
[C][api:025]: Setting up Home Assistant API server...
[C][voice_assistant:028]: Setting up Voice Assistant...
[I][app:062]: setup() finished successfully!
[I][app:102]: ESPHome version 2023.11.6 compiled on Feb 24 2024, 18:21:27
[C][wifi:559]: WiFi:
[C][wifi:391]:   Local MAC: 80:7D:3A:F7:C4:30
[C][wifi:396]:   SSID: 'ClusterHome_IoT'
[C][wifi:397]:   IP Address: 192.168.10.209
[C][wifi:399]:   BSSID: 78:45:58:E1:71:F6
[C][wifi:400]:   Hostname: 'matrixio-voice'
[C][wifi:402]:   Signal strength: -46 dB ▂▄▆█
[C][wifi:406]:   Channel: 11
[C][wifi:407]:   Subnet: 255.255.255.0
[C][wifi:408]:   Gateway: 192.168.10.1
[C][wifi:409]:   DNS1: 1.1.1.1
[C][wifi:410]:   DNS2: 8.8.8.8
[C][logger:416]: Logger:
[C][logger:417]:   Level: DEBUG
[C][logger:418]:   Log Baud Rate: 115200
[C][logger:420]:   Hardware UART: UART0
[C][spi:067]: SPI bus:
[C][spi:068]:   CLK Pin: GPIO32
[C][spi:069]:   SDI Pin: GPIO21
[C][spi:070]:   SDO Pin: GPIO33
[C][spi:072]:   Using HW SPI: SPI
[C][matrixio_everloop:031]: Matrixio Everloop:
[C][matrixio_everloop:032]:   LEDs: 18
[C][light:103]: Light 'everloop'
[C][light:105]:   Default Transition Length: 1.0s
[C][light:106]:   Gamma Correct: 2.80
[C][template.switch:068]: Template Switch 'Use wake word'
[C][template.switch:091]:   Restore Mode: restore defaults to ON
[C][template.switch:057]:   Optimistic: YES
[C][template.switch:068]: Template Switch 'Use Listen Light'
[C][template.switch:091]:   Restore Mode: restore defaults to ON
[C][template.switch:057]:   Optimistic: YES
[C][template.switch:068]: Template Switch 'Start Listening'
[C][template.switch:091]:   Restore Mode: always OFF
[C][template.switch:057]:   Optimistic: NO
[C][matrixio:026]: Matrixio:
[C][matrixio:027]:   Data rate: 8MHz
[C][matrixio:028]:   CS pin: GPIO23
[C][matrixio:036]:   Matrixio not found! (id: 3227808933, version: 131094)
[C][matrixio_microphone:041]: Matrixio Microphones:
[C][matrixio_speaker:020]: Matrixio Speaker:
[I][logger:326]: Log initialized
[C][ota:473]: There have been 10 suspected unsuccessful boot attempts.
[D][esp32.preferences:114]: Saving 1 preferences to flash...
[D][esp32.preferences:143]: Saving 1 preferences to flash: 0 cached, 1 written, 0 failed
[E][ota:480]: Boot loop detected. Proceeding to safe mode.
[I][app:029]: Running through setup()...
[C][wifi:038]: Setting up WiFi...
[C][wifi:051]: Starting WiFi...
[C][wifi:052]:   Local MAC: 80:7D:3A:F7:C4:30
[I][wifi:286]: WiFi Connecting to 'ClusterHome_IoT'...
[I][wifi:573]: WiFi Connected!
[C][wifi:391]:   Local MAC: 80:7D:3A:F7:C4:30
[C][wifi:396]:   SSID: 'ClusterHome_IoT'
[C][wifi:397]:   IP Address: 192.168.10.209
[C][wifi:399]:   BSSID: 78:45:58:E1:71:F6
[C][wifi:400]:   Hostname: 'matrixio-voice'
[C][wifi:402]:   Signal strength: -46 dB ▂▄▆█
[C][wifi:406]:   Channel: 11
[C][wifi:407]:   Subnet: 255.255.255.0
[C][wifi:408]:   Gateway: 192.168.10.1
[C][wifi:409]:   DNS1: 1.1.1.1
[C][wifi:410]:   DNS2: 8.8.8.8
[C][ota:097]: Over-The-Air Updates:
[C][ota:098]:   Address: matrixio-voice.local:3232
[W][ota:107]: Last Boot was an unhandled reset, will proceed to safe mode in 0 restarts
[I][app:062]: setup() finished successfully!
[I][ota:493]: Waiting for OTA attempt.
[I][app:102]: ESPHome version 2023.11.6 compiled on Feb 24 2024, 18:21:27
[C][wifi:559]: WiFi:
[C][wifi:391]:   Local MAC: 80:7D:3A:F7:C4:30
[C][wifi:396]:   SSID: 'ClusterHome_IoT'
[C][wifi:397]:   IP Address: 192.168.10.209
[C][wifi:399]:   BSSID: 78:45:58:E1:71:F6
[C][wifi:400]:   Hostname: 'matrixio-voice'
[C][wifi:402]:   Signal strength: -45 dB ▂▄▆█
[C][wifi:406]:   Channel: 11
[C][wifi:407]:   Subnet: 255.255.255.0
[C][wifi:408]:   Gateway: 192.168.10.1
[C][wifi:409]:   DNS1: 1.1.1.1
[C][wifi:410]:   DNS2: 8.8.8.8
[C][logger:416]: Logger:
[C][logger:417]:   Level: DEBUG
[C][logger:418]:   Log Baud Rate: 115200
[C][logger:420]:   Hardware UART: UART0
[C][mdns:115]: mDNS:
[C][mdns:116]:   Hostname: matrixio-voice
[C][ota:097]: Over-The-Air Updates:
[C][ota:098]:   Address: matrixio-voice.local:3232
[W][ota:107]: Last Boot was an unhandled reset, will proceed to safe mode in 0 restarts

GPIO Debug:

loftsatellite@loftsatellite:~ $ sudo cat /sys/kernel/debug/gpio
gpiochip0: GPIOs 0-53, parent: platform/3f200000.gpio, pinctrl-bcm2835:
 gpio-0   (ID_SDA              )
 gpio-1   (ID_SCL              )
 gpio-2   (SDA1                )
 gpio-3   (SCL1                )
 gpio-4   (GPIO_GCLK           )
 gpio-5   (GPIO5               )
 gpio-6   (GPIO6               )
 gpio-7   (SPI_CE1_N           )
 gpio-8   (SPI_CE0_N           |spi0 CS0            ) out hi ACTIVE LOW
 gpio-9   (SPI_MISO            )
 gpio-10  (SPI_MOSI            )
 gpio-11  (SPI_SCLK            )
 gpio-12  (GPIO12              |spi0 CS1            ) out hi ACTIVE LOW
 gpio-13  (GPIO13              )
 gpio-14  (TXD1                )
 gpio-15  (RXD1                )
 gpio-16  (GPIO16              )
 gpio-17  (GPIO17              )
 gpio-18  (GPIO18              |sysfs               ) out hi
 gpio-19  (GPIO19              )
 gpio-20  (GPIO20              )
 gpio-21  (GPIO21              )
 gpio-22  (GPIO22              )
 gpio-23  (GPIO23              )
 gpio-24  (GPIO24              |sysfs               ) out hi
 gpio-25  (GPIO25              |sysfs               ) out hi
 gpio-26  (GPIO26              |sysfs               ) out hi
 gpio-27  (GPIO27              )
 gpio-28  (HDMI_HPD_N          |hpd                 ) in  hi ACTIVE LOW
 gpio-29  (STATUS_LED_N        |ACT                 ) out lo ACTIVE LOW
 gpio-30  (CTS0                )
 gpio-31  (RTS0                )
 gpio-32  (TXD0                )
 gpio-33  (RXD0                )
 gpio-34  (SD1_CLK             )
 gpio-35  (SD1_CMD             )
 gpio-36  (SD1_DATA0           )
 gpio-37  (SD1_DATA1           )
 gpio-38  (SD1_DATA2           )
 gpio-39  (SD1_DATA3           )
 gpio-40  (CAM_GPIO1           |cam1_regulator      ) out lo
 gpio-41  (WL_ON               )
 gpio-42  (BT_ON               |shutdown            ) out hi
 gpio-43  (WIFI_CLK            )
 gpio-44  (SDA0                )
 gpio-45  (SCL0                )
 gpio-46  (SMPS_SCL            )
 gpio-47  (SMPS_SDA            )
 gpio-48  (SD_CLK_R            )
 gpio-49  (SD_CMD_R            )
 gpio-50  (SD_DATA0_R          )
 gpio-51  (SD_DATA1_R          )
 gpio-52  (SD_DATA2_R          )
 gpio-53  (SD_DATA3_R          )

Checking the FPGA info:

loftsatellite@loftsatellite:~ $ sudo /usr/share/matrixlabs/matrixio-devices/fpga_info
INFO: [/dev/spidev0.0] was opened
FPGA IDENTIFY = 6032bad2
FPGA VERSION = 1000b

NOTE! I did remove the the following lines from the matrix_voice.yaml esp32 section so the build would succeed:

  framework:
      type: esp-idf
      version: latest
      platform_version: 6.5.0

Here is my entire matrix_voice.yaml:

external_components:
  #- source:
  #    type: git
  #    url: https://github.com/gnumpi/esphome_matrixio
  #    ref: main
  - source:
      type: local
      path: esphome/components/

esphome:
  name: matrixio-voice

esp32:
  board: esp32dev

wifi:
  ssid: xxxxxxxxx
  password: xxxxxxxxxxx
  fast_connect: true

logger:

ota:

api:

spi:
  clk_pin:  GPIO32
  mosi_pin: GPIO33
  miso_pin: GPIO21

matrixio:
  id: matrixio_dev
  cs_pin: GPIO23

light:
  - platform: matrixio
    name: everloop
    id: everloop

microphone:
  - platform: matrixio
    id: matrixio_mic

speaker:
  - platform: matrixio
    id: matrixio_speaker_hp
    # [headphone,speakers], default: headphone
    audio_out: headphone
    # 0..100, in percent, default: 80
    volume: 90

voice_assistant:
  id: va
  microphone: matrixio_mic
  speaker: matrixio_speaker_hp

  on_listening:
    - light.turn_on:
        id: everloop
        blue: 100%
        red: 0%
        green: 0%
        white: 0%
        brightness: 60%
  on_stt_vad_end:
    - light.turn_on:
        id: everloop
        blue: 50%
        red: 0%
        green: 100%
        white: 0%
        brightness: 60%
  on_tts_start:
    - light.turn_on:
        id: everloop
        blue: 100%
        red: 100%
        green: 0%
        white: 0%
        brightness: 60%
  on_end:
    - delay: 100ms
    - wait_until:
        not:
          speaker.is_playing:
    - script.execute: reset_led
  on_error:
    - light.turn_on:
        id: everloop
        red: 100%
        green: 0%
        blue: 0%
        white: 0%
        brightness: 60%
    - delay: 1s
    - script.execute: reset_led
  on_client_connected:
    - if:
        condition:
          switch.is_on: use_wake_word
        then:
          - voice_assistant.start_continuous:
          - script.execute: reset_led
  on_client_disconnected:
    - if:
        condition:
          switch.is_on: use_wake_word
        then:
          - voice_assistant.stop:
          - light.turn_off: everloop

script:
  - id: reset_led
    then:
      - if:
          condition:
            - switch.is_on: use_wake_word
            - switch.is_on: use_listen_light
          then:
            - light.turn_on:
                id: everloop
                red: 100%
                green: 89%
                blue: 71%
                white: 0%
                brightness: 60%
          else:
            - light.turn_off: everloop

switch:
  - platform: template
    name: 'Use wake word'
    id: use_wake_word
    optimistic: true
    restore_mode: RESTORE_DEFAULT_ON
    entity_category: config
    on_turn_on:
      - lambda: id(va).set_use_wake_word(true);
      - if:
          condition:
            not:
              - voice_assistant.is_running
          then:
            - voice_assistant.start_continuous
      - script.execute: reset_led
    on_turn_off:
      - voice_assistant.stop
      - lambda: id(va).set_use_wake_word(false);
      - script.execute: reset_led
  - platform: template
    name: 'Use Listen Light'
    id: use_listen_light
    optimistic: true
    restore_mode: RESTORE_DEFAULT_ON
    entity_category: config
    on_turn_on:
      - script.execute: reset_led
    on_turn_off:
      - script.execute: reset_led

  - platform: template
    name: "Start Listening"
    turn_on_action:
      - voice_assistant.start:
          silence_detection: false

    turn_off_action:
      - voice_assistant.stop:
      - script.execute: reset_led
gnumpi commented 6 months ago

Somehow the id and firmware are not read correctly from the FPGA on esphome setup. But your fpga_info run shows the correct ones. It should not be related to the issue of the RPi Kernel as this seems to be a problem within the esphome firmware running on the ESP32.

Could you try using this in your config, instead of removing the complete framework section?

esp32:
  board: esp32dev
  framework:
    type: esp-idf
    version: recommended
FutureProofHomes commented 6 months ago

Changing my config to:

esp32:
  board: esp32dev
  framework:
    type: esp-idf
    version: recommended

Gives error: ModuleNotFoundError: No module named 'chardet'

(.venv) braddavis@BradBookPro esphome_matrixio % esphome compile matrix_voice.yaml
INFO ESPHome 2023.11.6
INFO Reading configuration matrix_voice.yaml...
INFO Generating C++ source...
INFO Core config or version changed, cleaning build files...
INFO Compiling app...
*********************************************************************************************************************************************************
Obsolete PIO Core v6.1.11 is used (previous was 6.1.13)
Please remove multiple PIO Cores from a system:
https://docs.platformio.org/en/latest/core/installation/troubleshooting.html
*********************************************************************************************************************************************************
Processing matrixio-voice (board: esp32dev; framework: espidf; platform: platformio/espressif32@5.4.0)
---------------------------------------------------------------------------------------------------------------------------------------------------------
Tool Manager: Installing espressif/toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5
INFO Installing espressif/toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5
Unpacking  [####################################]  100%          
Tool Manager: toolchain-xtensa-esp32@8.4.0+2021r2-patch5 has been installed!
INFO toolchain-xtensa-esp32@8.4.0+2021r2-patch5 has been installed!
Tool Manager: Installing platformio/tool-scons @ ~4.40502.0
INFO Installing platformio/tool-scons @ ~4.40502.0
Unpacking  [####################################]  100%
Tool Manager: tool-scons@4.40502.0 has been installed!
INFO tool-scons@4.40502.0 has been installed!
Tool Manager: Removing tool-scons @ 4.40600.0
INFO Removing tool-scons @ 4.40600.0
Tool Manager: tool-scons@4.40600.0 has been removed!
INFO tool-scons@4.40600.0 has been removed!
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
 - framework-espidf @ 3.40405.230623 (4.4.5) 
 - tool-cmake @ 3.16.4 
 - tool-ninja @ 1.9.0 
 - toolchain-esp32ulp @ 2.35.0-20220830 
 - toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5
Reading CMake configuration...
-- Found Git: /usr/bin/git (found version "2.39.3 (Apple Git-145)") 
-- The C compiler identification is GNU 8.4.0
-- The CXX compiler identification is GNU 8.4.0
-- The ASM compiler identification is GNU
-- Found assembler: /Users/braddavis/.platformio/packages/toolchain-xtensa-esp32@8.4.0+2021r2-patch5/bin/xtensa-esp32-elf-gcc
-- Check for working C compiler: /Users/braddavis/.platformio/packages/toolchain-xtensa-esp32@8.4.0+2021r2-patch5/bin/xtensa-esp32-elf-gcc
-- Check for working C compiler: /Users/braddavis/.platformio/packages/toolchain-xtensa-esp32@8.4.0+2021r2-patch5/bin/xtensa-esp32-elf-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Users/braddavis/.platformio/packages/toolchain-xtensa-esp32@8.4.0+2021r2-patch5/bin/xtensa-esp32-elf-g++
-- Check for working CXX compiler: /Users/braddavis/.platformio/packages/toolchain-xtensa-esp32@8.4.0+2021r2-patch5/bin/xtensa-esp32-elf-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32
-- Configuring incomplete, errors occurred!
See also "/Users/braddavis/Developer/esphome_matrixio/.esphome/build/matrixio-voice/.pioenvs/matrixio-voice/CMakeFiles/CMakeOutput.log".

fatal: not a git repository (or any of the parent directories): .git
CMake Error at /Users/braddavis/.platformio/packages/framework-espidf@3.40405.230623/tools/cmake/build.cmake:463 (message):
  Traceback (most recent call last):

    File "/Users/braddavis/.platformio/penv/.espidf-4.4.5/lib/python3.11/site-packages/requests/compat.py", line 11, in <module>
      import chardet

  ModuleNotFoundError: No module named 'chardet'

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):

    File "<frozen runpy>", line 198, in _run_module_as_main
    File "<frozen runpy>", line 88, in _run_code
    File "/Users/braddavis/.platformio/penv/.espidf-4.4.5/lib/python3.11/site-packages/idf_component_manager/prepare_components/__main__.py", line 4, in <module>
      from .prepare import main
    File "/Users/braddavis/.platformio/penv/.espidf-4.4.5/lib/python3.11/site-packages/idf_component_manager/prepare_components/prepare.py", line 18, in <module>
      from ..core import ComponentManager
    File "/Users/braddavis/.platformio/penv/.espidf-4.4.5/lib/python3.11/site-packages/idf_component_manager/core.py", line 18, in <module>
      import requests
    File "/Users/braddavis/.platformio/penv/.espidf-4.4.5/lib/python3.11/site-packages/requests/__init__.py", line 45, in <module>
      from .exceptions import RequestsDependencyWarning
    File "/Users/braddavis/.platformio/penv/.espidf-4.4.5/lib/python3.11/site-packages/requests/exceptions.py", line 9, in <module>
      from .compat import JSONDecodeError as CompatJSONDecodeError
    File "/Users/braddavis/.platformio/penv/.espidf-4.4.5/lib/python3.11/site-packages/requests/compat.py", line 13, in <module>
      import charset_normalizer as chardet
    File "/Users/braddavis/.platformio/penv/.espidf-4.4.5/lib/python3.11/site-packages/charset_normalizer/__init__.py", line 24, in <module>
      from .api import from_bytes, from_fp, from_path, is_binary
    File "/Users/braddavis/.platformio/penv/.espidf-4.4.5/lib/python3.11/site-packages/charset_normalizer/api.py", line 5, in <module>
      from .cd import (
    File "/Users/braddavis/.platformio/penv/.espidf-4.4.5/lib/python3.11/site-packages/charset_normalizer/cd.py", line 14, in <module>
      from .md import is_suspiciously_successive_range

  ImportError:
  dlopen(/Users/braddavis/.platformio/penv/.espidf-4.4.5/lib/python3.11/site-packages/charset_normalizer/md.cpython-311-darwin.so,
  0x0002): tried:
  '/Users/braddavis/.platformio/penv/.espidf-4.4.5/lib/python3.11/site-packages/charset_normalizer/md.cpython-311-darwin.so'
  (mach-o file, but is an incompatible architecture (have 'arm64', need
  'x86_64')),
  '/System/Volumes/Preboot/Cryptexes/OS/Users/braddavis/.platformio/penv/.espidf-4.4.5/lib/python3.11/site-packages/charset_normalizer/md.cpython-311-darwin.so'
  (no such file),
  '/Users/braddavis/.platformio/penv/.espidf-4.4.5/lib/python3.11/site-packages/charset_normalizer/md.cpython-311-darwin.so'
  (mach-o file, but is an incompatible architecture (have 'arm64', need
  'x86_64'))

Call Stack (most recent call first):
  /Users/braddavis/.platformio/packages/framework-espidf@3.40405.230623/tools/cmake/project.cmake:393 (idf_build_process)
  CMakeLists.txt:3 (project)

============================================================== [FAILED] Took 5.78 seconds ==============================================================

I'm working on solving this now.

FutureProofHomes commented 6 months ago

This might be a Mac M1 issue. I solved my build issue by:

Enter venv: source scripts/setup_esphome.sh

Then: (.venv) braddavis@BradBookPro esphome_matrixio % pip install chardet

Then after some googling I learned I needed to copy the chardet package that pip installed to the correct path. Python venvs confuse me. :) (.venv) braddavis@BradBookPro esphome_matrixio % cp -R /Users/braddavis/Developer/esphome_matrixio/.venv/lib/python3.11/site-packages/chardet /Users/braddavis/.platformio/penv/.espidf-4.4.5/lib/python3.11/site-packages