| 18 Feb 2025 |
oddlama | Maybe I can recompile the firmware with some added debug prints | 16:01:31 |
oddlama | But I'm not sure how it is supposed to be compiled | 16:01:50 |
@hexa:lossy.network | isn't it just an esphome build? | 16:02:15 |
@hexa:lossy.network | check their CI | 16:02:24 |
oddlama | A good call | 16:02:40 |
oddlama | * Ah good call | 16:02:43 |
oddlama | I only knew about single yaml file esphome builds until today | 16:03:01 |
oddlama | they seem to add some custom components | 16:03:07 |
oddlama | Okay seems pretty simple | 16:15:09 |
oddlama | I'll let the compile running for now and see where I can get some debugging in | 16:15:35 |
oddlama | Hmm | 17:06:48 |
oddlama | [18:05:25][D][main:1644]: XXX on_tts_start
[18:05:25][D][light:036]: 'voice_assistant_leds' Setting:
[18:05:25][D][light:051]: Brightness: 66%
[18:05:25][D][light:109]: Effect: 'Replying'
[18:05:25][D][main:1644]: XXX on_tts_end
[18:05:25][D][media_player:080]: 'Media Player' - Setting
[18:05:25][D][media_player:087]: Media URL: https://home.my.domain/api/esphome/ffmpeg_proxy/6b5d67d3a0931ee401f33c2fe15fb882/al2smrp_JoH9Y6RPRENfhw.flac
[18:05:25][D][media_player:093]: Announcement: yes
[18:05:25][D][voice_assistant:515]: State changed from IDLE to STREAMING_RESPONSE
[18:05:25][D][voice_assistant:522]: Desired state set to STREAMING_RESPONSE
[18:05:25][D][main:1649]: XXX on_end_start
[18:05:25][D][ring_buffer:034]: Created ring buffer with size 48000
[18:05:25][D][ring_buffer:034]: Created ring buffer with size 48000
[18:05:25][D][ring_buffer:034]: Created ring buffer with size 65536
[18:05:25][D][ring_buffer:034]: Created ring buffer with size 65536
[18:05:26][D][esp-idf:000][ann_read]: I (69353) esp-x509-crt-bundle: Certificate validated
[18:05:26]
[18:05:27][D][nabu_media_player.pipeline:173]: Reading FLAC file type
[18:05:27][D][voice_assistant:515]: State changed from STREAMING_RESPONSE to IDLE
[18:05:27][D][voice_assistant:522]: Desired state set to IDLE
[18:05:27][D][light:036]: 'voice_assistant_leds' Setting:
[18:05:27][D][light:051]: Brightness: 66%
[18:05:27][D][light:109]: Effect: 'Muted or Silent'
[18:05:27][D][main:1672]: XXX on_end_end
| 17:06:58 |
oddlama | looks like everything went fine, it read the flac | 17:07:24 |
oddlama | but apparently playing it took 0 seconds | 17:08:10 |
oddlama | Wait this doesn't look fine | 17:19:21 |
oddlama | does it never get to the decoder stage? | 17:19:32 |
oddlama | maybe the flac file is empty | 17:19:41 |
oddlama | content length header is 0 | 18:41:08 |
oddlama | 🤔 | 18:41:12 |
oddlama | Let's check whether this file is also 0 bytes in size when I curl it | 19:22:42 |
oddlama | Well dang | 19:25:45 |
oddlama | it's 0 bytes | 19:25:53 |
oddlama | that would explain why there is no sound | 19:26:01 |
oddlama | I might have a lead | 19:37:07 |
oddlama | Okay works now | 19:51:14 |
oddlama | Apparently when there is an error in ffmpeg it will be silently ignored and a 0 byte file is served | 19:51:37 |
oddlama | the error in this case being: The esphome integration it tries to convert a file by downloading it via https from the local home assistant instance. Not sure why it can't just use a file path, but the issue is that my hass wasn't allowed to access itself via its own url. | 19:53:12 |
oddlama | * the error in this case being: The esphome integration tried to convert a file by downloading it via https from the local home assistant instance. Not sure why it can't just use a file path, but the issue is that my hass wasn't allowed to access itself via its own url. | 19:53:24 |
| 19 Feb 2025 |
j-k | I've got this custom integration, just testing it before putting the PR in
https://github.com/06kellyjac/nixpkgs/commit/3db1ad93fe366eb75cf9dbe687c456d4552ba85a
I was able to load it fine to services.home-assistant.customComponents I then threw octopus_energy = { }; into config but I also had to manually put pydantic into services.home-assistant.extraPackages Is it not meant to pull that in automatically from dependencies in buildHomeAssistantComponent?
(after doing the manual steps it seems to be running fine. Got some data coming in, some other data I'm hoping will show up soon.
| 12:13:16 |
j-k | * I've got this custom integration, just testing it before putting the PR in
https://github.com/06kellyjac/nixpkgs/commit/3db1ad93fe366eb75cf9dbe687c456d4552ba85a
I was able to load it fine to services.home-assistant.customComponents I then threw octopus_energy = { }; into config but I also had to manually put pydantic into services.home-assistant.extraPackages Is it not meant to pull that in automatically from dependencies in buildHomeAssistantComponent?
(after doing the manual steps it seems to be running fine. Got some data coming in, some other data I'm hoping will show up soon.)
| 12:13:22 |