No audio on Muse Lux in Home Assistant

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:
  • source:
    url: https://github.com/esphome/esphome.git
    ref: pull/3552/head
    type: git
    components:
    • es8388
      refresh: 0s
      media_player:
  • 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
  • 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
  • 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:
  • 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 :
image

I hear this sentence full of truth :wink:

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? :sweat_smile:

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