Hi, just got my Muse Lux, flashed it with ESP Home Media Player, adopted it first in Home Assistant and then in ESP Home (in Home Assistant). I can control the LED, see if it is active or not in HA etc, but I can not get anything but a nasty loud noice one second under the ESP Home adoption process. I get no sound from TTS nor from a local mp3 that I downloaded to HA Media library. Ideas?
I tried to reinstall it, this time I just flashed it with the ESP Home Media Player from https://esphome.github.io/media-players/ and adopted it to Home Assistant. I did not adopt it to ESP Home in Home assistant yet. It is the same except from a tiny short noice when I try to play local media or a TTS message. The log says it changes to Inactive the very same second that it changes to Playing, so it seems it just shuts off instantly. I will wait with adopting it to ESP Home a while
I went on and adopted it into ESPHome in Home Assistant. Some script runs that ends with those lines:
[10:15:33][I][i2c.arduino:054]: Results from i2c bus scan:
[10:15:33][I][i2c.arduino:060]: Found i2c device at address 0x10
[10:15:33][C][gpio.binary_sensor:015]: GPIO Binary Sensor âRaspiAudio Muse Luxe Volume Upâ
[10:15:33][C][gpio.binary_sensor:016]: Pin: GPIO19
[10:15:33][C][gpio.binary_sensor:015]: GPIO Binary Sensor âRaspiAudio Muse Luxe Volume Downâ
[10:15:33][C][gpio.binary_sensor:016]: Pin: GPIO32
[10:15:33][C][gpio.binary_sensor:015]: GPIO Binary Sensor âRaspiAudio Muse Luxe Play Buttonâ
[10:15:33][C][gpio.binary_sensor:016]: Pin: GPIO12
[10:15:33][C][fastled:021]: FastLED light:
[10:15:33][C][fastled:022]: Num LEDs: 1
[10:15:33][C][fastled:023]: Max refresh rate: 400
[10:15:33][C][light:104]: Light âRaspiAudio Muse Luxeâ
[10:15:33][C][light:106]: Default Transition Length: 1.0s
[10:15:33][C][light:107]: Gamma Correct: 2.80
[10:15:33][C][captive_portal:088]: Captive Portal:
[10:15:33][C][mdns:100]: mDNS:
[10:15:33][C][mdns:101]: Hostname: raspiaudio-muse-luxe-392570
[10:15:33][C][ota:089]: Over-The-Air Updates:
[10:15:33][C][ota:090]: Address: raspiaudio-muse-luxe-392570.local:3232
[10:15:33][C][api:138]: API Server:
[10:15:33][C][api:139]: Address: raspiaudio-muse-luxe-392570.local:6053
[10:15:33][C][api:143]: Using noise encryption: NO
[10:15:33][C][improv_serial:032]: Improv Serial:
[10:15:33][C][audio:135]: Audio:
[10:20:28][I][ota:109]: Boot seems successful, resetting boot loop counter.
[10:20:28][D][esp32.preferences:113]: Saving 1 preferences to flashâŚ
[10:20:28][D][esp32.preferences:142]: Saving 1 preferences to flash: 0 cached, 1 written, 0 failed
I dont think that I let it finish last time. It is five minutes between those two lines:
[10:15:33][C][audio:135]: Audio:
[10:20:28][I][ota:109]: Boot seems successful, resetting boot loop counter.
Now it has been sitting at:
[10:20:28][I][ota:109]: Boot seems successful, resetting boot loop counter.
[10:20:28][D][esp32.preferences:113]: Saving 1 preferences to flashâŚ
[10:20:28][D][esp32.preferences:142]: Saving 1 preferences to flash: 0 cached, 1 written, 0 failed
⌠for half an hour. Is the script finished for me to go on?
Well I went on and saved the config. Same result as last time, no audio except short noices during installation.
Hi,
I have just tried again and it working here, from a fresh SDcard, and a RPi4 using the 64bit image and with Luxe flashed with ESPHome Media Players
Just to be sure, when your Luxe arrived with the existing Bluetooth image, was the sound working fine?
Could it be related to a specific local area network with firewall? or maybe you are running HA in a virtual machine or Docker?
Hi. You tested with a Home Assistant installed on a RPi4, 64bit? Exactly what I have, but on SSD. Runs very stable for a long time. Latest patches.
When I got it and plugged it to my laptop with a USB power/signal cable it said âBLUETOOTHâ I think. Did not test anything more before flashing it with the first MUSE image, with the black box on picture.
The MUSE is on the same network and subnet as the RPi64, no firewalls there.
I can redo the process if you like? Or shall I do some other test?
Testing again with local mp3 and TTS. The logs (last first) say:
RaspiAudio Muse Lux changed to Inactive trigged by service media_player.play_media 18:21:48
RaspiAudio Muse Lux changed to Playing trigged by service media_player.play_media 18:21:48
Looks like it goes Inactive same second it starts playing
PS. All the controls work and responds in Hope Assistant logs. Volume Up, Play, Volume Down and the LED control
Here is the Diagnostics / Config Entrys from Home Assistant:
{
âhome_assistantâ: {
âinstallation_typeâ: âHome Assistant OSâ,
âversionâ: â2022.10.2â,
âdevâ: false,
âhassioâ: true,
âvirtualenvâ: false,
âpython_versionâ: â3.10.5â,
âdockerâ: true,
âarchâ: âaarch64â,
âtimezoneâ: âEurope/Stockholmâ,
âos_nameâ: âLinuxâ,
âos_versionâ: â5.15.61-v8â,
âsupervisorâ: â2022.10.0â,
âhost_osâ: âHome Assistant OS 9.0â,
âdocker_versionâ: â20.10.17â,
âchassisâ: âembeddedâ,
ârun_as_rootâ: true
},
âcustom_componentsâ: {
âalexa_mediaâ: {
âversionâ: â4.1.2â,
ârequirementsâ: [
âalexapy==1.26.3â,
âpackaging>=20.3â,
âwrapt>=1.12.1â
]
},
âhacsâ: {
âversionâ: â1.28.0â,
ârequirementsâ: [
âaiogithubapi>=22.2.4â
]
}
},
âintegration_manifestâ: {
âdomainâ: âesphomeâ,
ânameâ: âESPHomeâ,
âconfig_flowâ: true,
âdocumentationâ: âhttps://www.home-assistant.io/integrations/esphomeâ,
ârequirementsâ: [
âaioesphomeapi==11.1.0â
],
âzeroconfâ: [
â_esphomelib._tcp.local.â
],
âdhcpâ: [
{
âregistered_devicesâ: true
}
],
âcodeownersâ: [
â@OttoWinterâ,
â@jesserockzâ
],
âafter_dependenciesâ: [
âbluetoothâ,
âzeroconfâ,
âtagâ
],
âiot_classâ: âlocal_pushâ,
âloggersâ: [
âaioesphomeapiâ,
ânoiseprotocolâ
],
âis_built_inâ: true
},
âdataâ: {
âconfigâ: {
âentry_idâ: â587629825588d5633346b7954f470d17â,
âversionâ: 1,
âdomainâ: âesphomeâ,
âtitleâ: âraspiaudio-muse-luxe-392570â,
âdataâ: {
âhostâ: â192.168.1.80â,
âportâ: 6053,
âpasswordâ: ââ,
ânoise_pskâ: ââ
},
âoptionsâ: {},
âpref_disable_new_entitiesâ: false,
âpref_disable_pollingâ: false,
âsourceâ: âzeroconfâ,
âunique_idâ: âraspiaudio-muse-luxe-392570â,
âdisabled_byâ: null
},
âstorage_dataâ: {
âdevice_infoâ: {
âuses_passwordâ: false,
ânameâ: âraspiaudio-muse-luxe-392570â,
âmac_addressâ: âREDACTEDâ,
âcompilation_timeâ: âOct 8 2022, 21:38:37â,
âmodelâ: âesp-wrover-kitâ,
âhas_deep_sleepâ: false,
âesphome_versionâ: â2022.9.4â,
âproject_nameâ: âraspiaudio.muse-luxeâ,
âproject_versionâ: â1.0â,
âwebserver_portâ: 0,
âbluetooth_proxy_versionâ: 0
},
âservicesâ: [],
âapi_versionâ: {
âmajorâ: 1,
âminorâ: 7
},
âlightâ: [
{
âobject_idâ: âraspiaudio_muse_luxeâ,
âkeyâ: 1434200530,
ânameâ: âRaspiAudio Muse Luxeâ,
âunique_idâ: âraspiaudio-muse-luxe-392570lightraspiaudio_muse_luxeâ,
âdisabled_by_defaultâ: false,
âiconâ: ââ,
âentity_categoryâ: 0,
âsupported_color_modesâ: [
35
],
âmin_miredsâ: 0.0,
âmax_miredsâ: 0.0,
âeffectsâ: [],
âlegacy_supports_brightnessâ: true,
âlegacy_supports_rgbâ: true,
âlegacy_supports_white_valueâ: false,
âlegacy_supports_color_temperatureâ: false
}
],
âmedia_playerâ: [
{
âobject_idâ: âraspiaudio_muse_luxeâ,
âkeyâ: 1434200530,
ânameâ: âRaspiAudio Muse Luxeâ,
âunique_idâ: âraspiaudio-muse-luxe-392570media_playerraspiaudio_muse_luxeâ,
âdisabled_by_defaultâ: false,
âiconâ: ââ,
âentity_categoryâ: 0,
âsupports_pauseâ: true
}
],
âbinary_sensorâ: [
{
âobject_idâ: âraspiaudio_muse_luxe_volume_upâ,
âkeyâ: 3165250273,
ânameâ: âRaspiAudio Muse Luxe Volume Upâ,
âunique_idâ: âraspiaudio-muse-luxe-392570binary_sensorraspiaudio_muse_luxe_volume_upâ,
âdisabled_by_defaultâ: false,
âiconâ: ââ,
âentity_categoryâ: 0,
âdevice_classâ: ââ,
âis_status_binary_sensorâ: false
},
{
âobject_idâ: âraspiaudio_muse_luxe_volume_downâ,
âkeyâ: 4118566082,
ânameâ: âRaspiAudio Muse Luxe Volume Downâ,
âunique_idâ: âraspiaudio-muse-luxe-392570binary_sensorraspiaudio_muse_luxe_volume_downâ,
âdisabled_by_defaultâ: false,
âiconâ: ââ,
âentity_categoryâ: 0,
âdevice_classâ: ââ,
âis_status_binary_sensorâ: false
},
{
âobject_idâ: âraspiaudio_muse_luxe_play_buttonâ,
âkeyâ: 1343665654,
ânameâ: âRaspiAudio Muse Luxe Play Buttonâ,
âunique_idâ: âraspiaudio-muse-luxe-392570binary_sensorraspiaudio_muse_luxe_play_buttonâ,
âdisabled_by_defaultâ: false,
âiconâ: ââ,
âentity_categoryâ: 0,
âdevice_classâ: ââ,
âis_status_binary_sensorâ: false
}
]
}
}
}
If you have heard a female voice saying âBluetoothâ with the default firmware when you first plugged it, then it is very unlikely to be a hardware issue.
RaspiAudio Muse Lux changed to Inactive trigged by service media_player.play_media 18:21:48
RaspiAudio Muse Lux changed to Playing trigged by service media_player.play_media 18:21:48
let me check if I have the same behavior on my working setup, tomorrow.
Thanks. Adding some info from Validate in ESP Home if that can help you debug. xxx:ed my wifi credentials:
INFO Reading configuration /config/esphome/raspiaudio-muse-luxe-392570.yamlâŚ
INFO Updating https://github.com/esphome/esphome.git@pull/3552/head
WARNING GPIO12 is a Strapping PIN and should be avoided.
Attaching external pullup/down resistors to strapping pins can cause unexpected failures.
See https://esphome.io/guides/faq.html#why-am-i-getting-a-warning-about-strapping-pins
INFO Configuration is valid!
substitutions:
name: raspiaudio-muse-luxe-392570
friendly_name: RaspiAudio Muse Luxe
wifi_ap_password: ââ
esphome:
name: raspiaudio-muse-luxe-392570
name_add_mac_suffix: false
project:
name: raspiaudio.muse-luxe
version: â1.0â
build_path: .esphome/build/raspiaudio-muse-luxe-392570
platformio_options: {}
includes: []
libraries: []
esp32:
board: esp-wrover-kit
framework:
version: 1.0.6
source: ~3.10006.0
platform_version: platformio/espressif32 @ 3.5.0
type: arduino
variant: ESP32
logger:
baud_rate: 115200
tx_buffer_size: 512
deassert_rts_dtr: false
hardware_uart: UART0
level: DEBUG
logs: {}
api:
port: 6053
password: ââ
reboot_timeout: 15min
ota:
safe_mode: true
port: 3232
reboot_timeout: 5min
num_attempts: 10
i2c:
- sda: 18
scl: 23
frequency: 50000.0
scan: true
dashboard_import:
package_import_url: github://esphome/media-players/raspiaudio-muse-luxe.yaml@main
wifi:
ap:
password: ââ
ap_timeout: 1min
domain: .local
reboot_timeout: 15min
power_save_mode: LIGHT
fast_connect: false
networks:- ssid: xxxxxx
password: xxxxxx
priority: 0.0
use_address: raspiaudio-muse-luxe-392570.local
captive_portal: {}
improv_serial: {}
external_components:
- ssid: xxxxxx
- source:
url: https://github.com/esphome/esphome.git
ref: pull/3552/head
type: git
components:- es8388
refresh: 0s
media_player:
- es8388
- platform: i2s_audio
name: RaspiAudio Muse Luxe
i2s_lrclk_pin: 25
i2s_dout_pin: 26
i2s_bclk_pin: 5
mode: stereo
mute_pin:
number: 21
inverted: true
mode:
output: true
input: false
open_drain: false
pullup: false
pulldown: false
disabled_by_default: false
dac_type: external
es8388:
address: 0x10
binary_sensor: - platform: gpio
pin:
number: 19
inverted: true
mode:
input: true
pullup: true
output: false
open_drain: false
pulldown: false
name: RaspiAudio Muse Luxe Volume Up
on_click:- then:
- media_player.volume_up: {}
min_length: 50ms
max_length: 350ms
disabled_by_default: false
- media_player.volume_up: {}
- then:
- platform: gpio
pin:
number: 32
inverted: true
mode:
input: true
pullup: true
output: false
open_drain: false
pulldown: false
name: RaspiAudio Muse Luxe Volume Down
on_click:- then:
- media_player.volume_down: {}
min_length: 50ms
max_length: 350ms
disabled_by_default: false
- media_player.volume_down: {}
- then:
- platform: gpio
pin:
number: 12
inverted: true
mode:
input: true
pullup: true
output: false
open_drain: false
pulldown: false
name: RaspiAudio Muse Luxe Play Button
on_click:- then:
- media_player.toggle: {}
min_length: 50ms
max_length: 350ms
disabled_by_default: false
light:
- media_player.toggle: {}
- then:
- platform: fastled_clockless
name: RaspiAudio Muse Luxe
pin: 22
chipset: SK6812
num_leds: 1
rgb_order: GRB
disabled_by_default: false
restore_mode: RESTORE_DEFAULT_OFF
gamma_correct: 2.8
default_transition_length: 1s
flash_transition_length: 0s
And logs from ESP Home. Wifi credentials xxxx:ed again.
INFO Reading configuration /config/esphome/raspiaudio-muse-luxe-392570.yamlâŚ
INFO Updating https://github.com/esphome/esphome.git@pull/3552/head
WARNING GPIO12 is a Strapping PIN and should be avoided.
Attaching external pullup/down resistors to strapping pins can cause unexpected failures.
See https://esphome.io/guides/faq.html#why-am-i-getting-a-warning-about-strapping-pins
INFO Starting log output from raspiaudio-muse-luxe-392570.local using esphome API
INFO Successfully connected to raspiaudio-muse-luxe-392570.local
[20:43:18][I][app:102]: ESPHome version 2022.9.4 compiled on Oct 8 2022, 21:38:37
[20:43:18][I][app:104]: Project raspiaudio.muse-luxe version 1.0
[20:43:18][C][wifi:502]: WiFi:
[20:43:18][C][wifi:360]: Local MAC: 94:B5:55:39:25:70
[20:43:18][C][wifi:361]: SSID: âxxxxâ[redacted]
[20:43:18][C][wifi:362]: IP Address: 192.168.1.80
[20:43:18][C][wifi:364]: BSSID: FC:EC:DA:3B:BE:05[redacted]
[20:43:18][C][wifi:365]: Hostname: âraspiaudio-muse-luxe-392570â
[20:43:18][C][wifi:367]: Signal strength: -51 dB ââââ
[20:43:18][C][wifi:371]: Channel: 11
[20:43:18][C][wifi:372]: Subnet: 255.255.255.0
[20:43:18][C][wifi:373]: Gateway: 192.168.1.1
[20:43:18][C][wifi:374]: DNS1: 192.168.1.1
[20:43:18][C][wifi:375]: DNS2: 0.0.0.0
[20:43:18][C][logger:275]: Logger:
[20:43:18][C][logger:276]: Level: DEBUG
[20:43:18][C][logger:277]: Log Baud Rate: 115200
[20:43:18][C][logger:278]: Hardware UART: UART0
[20:43:18][C][i2c.arduino:038]: I2C Bus:
[20:43:18][C][i2c.arduino:039]: SDA Pin: GPIO18
[20:43:18][C][i2c.arduino:040]: SCL Pin: GPIO23
[20:43:18][C][i2c.arduino:041]: Frequency: 50000 Hz
[20:43:18][C][i2c.arduino:044]: Recovery: bus successfully recovered
[20:43:18][I][i2c.arduino:054]: Results from i2c bus scan:
[20:43:18][I][i2c.arduino:060]: Found i2c device at address 0x10
[20:43:18][C][gpio.binary_sensor:015]: GPIO Binary Sensor âRaspiAudio Muse Luxe Volume Upâ
[20:43:18][C][gpio.binary_sensor:016]: Pin: GPIO19
[20:43:18][C][gpio.binary_sensor:015]: GPIO Binary Sensor âRaspiAudio Muse Luxe Volume Downâ
[20:43:18][C][gpio.binary_sensor:016]: Pin: GPIO32
[20:43:18][C][gpio.binary_sensor:015]: GPIO Binary Sensor âRaspiAudio Muse Luxe Play Buttonâ
[20:43:18][C][gpio.binary_sensor:016]: Pin: GPIO12
[20:43:18][C][fastled:021]: FastLED light:
[20:43:18][C][fastled:022]: Num LEDs: 1
[20:43:18][C][fastled:023]: Max refresh rate: 400
[20:43:18][C][light:104]: Light âRaspiAudio Muse Luxeâ
[20:43:18][C][light:106]: Default Transition Length: 1.0s
[20:43:18][C][light:107]: Gamma Correct: 2.80
[20:43:18][C][captive_portal:088]: Captive Portal:
[20:43:18][C][mdns:100]: mDNS:
[20:43:18][C][mdns:101]: Hostname: raspiaudio-muse-luxe-392570
[20:43:18][C][ota:089]: Over-The-Air Updates:
[20:43:18][C][ota:090]: Address: raspiaudio-muse-luxe-392570.local:3232
[20:43:18][C][api:138]: API Server:
[20:43:18][C][api:139]: Address: raspiaudio-muse-luxe-392570.local:6053
[20:43:18][C][api:143]: Using noise encryption: NO
[20:43:18][C][improv_serial:032]: Improv Serial:
[20:43:18][C][audio:135]: Audio:
Here what I do :
I hear this sentence full of truth
then I look in the log :
and I notice with the time stamps that the stream took 2 seconds to play
Do you have the same? because looking at your logs it seems that it start and stop immediately just like if the stream was empty or not received.
I do the same, and I have no sound coming from the Muse, and it goes to idle at the very same time as it goes to play, always the same second
Have you compared logs above, found any anomalies?
it looks like a network issue
Look at this post it looks like your issue :
Could you tell me again how do I get the same logs as you?
The first log requires that you have ESP Home Addon in Home Assistant. Then in ESP Home Addon the three dots -> Validate on your application.
The second one, select the three dots on your raspiaudio integration -> Download diagnostics.
I will check the linked thread
So, NielsNL68 is mentioning how his yaml file looks like in post Aug 25. My yaml file in ESP Home only contains this:
substitutions:
name: raspiaudio-muse-luxe-392570
packages:
raspiaudio.muse-luxe: github://esphome/media-players/raspiaudio-muse-luxe.yaml@main
esphome:
name: ${name}
name_add_mac_suffix: false
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
Maybe I should add something like this to mine?
esp32:
board: esp-wrover-kit
framework:
type: arduino
media_player:
- platform: i2s_audio
id: media_out
name: ${name} player
dac_type: external
i2s_lrclk_pin: GPIO25
i2s_dout_pin: GPIO26
i2s_bclk_pin: GPIO5
mode: mono
mute_pin:
number: GPIO21
inverted: true
Its the first time I fiddle with ESPHome
my humble thought is that you probably have nothing to change in the config, as we both have the exact same setup, this likely to be something else.
What you can try is what Niels describes in his table to check if you are in the same case, it seems to work with DLNA. So try to install a DLNA server on an android phone or compute, then install the DLNA service, and check if you can play this media source on the Luxe.
You could also try if you still have the issue on a different LAN.
So the yaml config is as it shall be?
substitutions:
name: raspiaudio-muse-luxe-392570
packages:
raspiaudio.muse-luxe: github://esphome/media-players/raspiaudio-muse-luxe.yaml@main
esphome:
name: ${name}
name_add_mac_suffix: false
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password