[APP][Pro] Esphome Controller App

Hi Uğur, thanks for looking into this!

I tried adding the device again and generated a diagnostic report after the error occurred. The diagnostic report ID is: 211b98bc-903a-483e-a350-5711adf3f5d9

For the YAML: this is the template from the manufacturer (Svenar), not exported from my own device, but it’s the exact config the controller is based on. The key parts:

The full file is here so you can see the entire config:

The device connects for a fraction of a second and then drops immediately with “Reading failed CONNECTION_CLOSED errno=128”.

Thanks,
Erik

Thanks for the YAML and discovery log.

I checked the log and the device is being discovered correctly, but it is not exposed by ESPHome as a Fan entity. The main ComfoAir entity is exposed as a Climate entity:

ComfoAir - type: climate

So please add this device using the “ESPHome Climate” driver instead of “ESPHome Fan”.

That did it — adding it as ESPHome Climate worked perfectly. The device connects and stays connected, all entities are showing up. Thanks so much for your quick and accurate help!

Test V1.3.3

Changelog:

  • Fixed an issue where factory reset/default ESPHome controls could be added as Homey switches.
  • Prevented auxiliary switches on Climate devices from being mapped as the main power control.
  • Fixed a settings update timing issue during reconnect/refresh.

I recently came across this YT video describing a Voice Assistant using a SpotPear AI device: https://www.youtube.com/watch?v=sxskrSSSaBA

Because I am interested in getting away from Alexa voice assistants, I bought one. It connects using your app, and shows temperature etc, but:

  1. the RGB led is white only (minor issue, purely cosmetic)
  2. I don’t know if the homeassistant.xxx commands will work for the micro_wake_word etc.
    I know I have to add Whisper and Piper plus?? to my Homey-SHS. But it would help to know if ESPHome Controller passes the required commands.
    The full config yaml file is here: home-assistant-va/spotpear-voice.yaml at main · derekmcauley7/home-assistant-va

Thanks for the detailed information and the YAML link.

I checked the configuration. The device exposes normal ESPHome entities such as sensors and lights, so ESPHome Controller can show temperature and similar values.

However, the voice assistant part is different. The YAML uses ESPHome voice_assistant, micro_wake_word, microphone and speaker components. These require the Home Assistant ESPHome integration / Assist pipeline to handle the audio stream, wake word flow, STT and TTS responses.

At the moment ESPHome Controller does not proxy or implement the ESPHome Voice Assistant protocol, and it does not handle Home Assistant service commands such as homeassistant.xxx. So installing Whisper/Piper on Homey-SHS alone will not make this work through the app yet.

The RGB LED issue is probably separate and may be fixable as normal ESPHome light/color support, but the full voice assistant feature would require a much larger new integration layer.

Bummer.

Thank you for taking the time to check this out for me.
I have a Plan B using MQTT and WebHooks. But still ESPHome based. (thanks to ChatGPT)

Thank you so much for your donation. I really wanted to help you, but I’m sorry I couldn’t provide direct support to your device through my app. I hope it helped at least a little.

It helped a lot. I flashed a different ESPHome config on it (RealDeco/xiaozhi-esphome: Alternative code to use xiaozhi ai devices in esphome/home assistant.) , now your app picks up all of this: as well as a whole variety of config items such as Clock Face etc. A few steps closer to retiring my Alexa Echo’s

Hi All. For the last 3 days i was struggeling for trying to communicate homey with mine Bluetti AC180P, through EPN32 board, because I found a topic about something related to that. With the help of AI I managed to filter a lot of (old) problems with the provided code from Diapolon (How to advanced virtual device for Bluetti devices). Sadly, at the end everything went wrong and even AI gave up :smiley: :smiley: . So, the question is, can someone help me with this project, or is it impossible to combine the Bluetti with Homey? The target is to use the state of the battery. I use also removable solar panels. The Bluetti is in “off grid” modus (there’s another word for it which I’m lost at the moment) but when the solar panels do not provide enough power for charging the Bluetti, it should automaticly connected to the normal powersupply (230V). Using a HomeWizard powerplug for that. Thanks for any help.

Hi, if I understand correctly, your main goal is to read the battery state of your Bluetti AC180P in Homey and use that value in a Flow.

Do you already have the ESP32 reading data from the Bluetti successfully? For example battery percentage, charging power or input/output power? If yes, the easiest route may be to expose those values from the ESP32 through ESPHome sensors, and then add the ESPHome device to Homey with ESPHome Controller.

If the ESP32 cannot yet read the Bluetti data, then the problem is on the Bluetti communication side first, before Homey can use it.

AFAIK Bluetti uses their own app/server, not ESP Home. There’s no Homey app for it yet, you can request one here:

Hi, you understand me correctly. And no, at this moment I cannot extract the values from the Bluetti, that’s the whole problem at the moment. I cannot establish a good connection between the ESP32 and the Bluetti. If I can make that work, the flows will not be the problem :wink::wink:

EDIT: I started with this topic [HOW TO] Advanced Virtual Device for Bluetti devices (need an ESP32) - #6 by Peter_Kawa and with the use of AI I managed to get this code working to write it to the ESP32 board. However, no data was extracting from the Bluetti (or no connection was made). AI rewrote a lot of the code but at the end I even couldn’t write the code to the ESP32. According to AI the code was too old for the Bluetti. I did manage to extract some data from the Bluetti with another code, but that data was not useful, at least not at the moment. I got 10 packages of data, there where 5 packages stable, and 5 packages have values which where very fluctuating every second. So what I need first (if this is possible), is a good working code to flash into the ESP32. Or maybe there’s a complete other way to extract the data from the Bluetti AC180P :smiley::smiley:

@smarthomesven I already did that a couple of months ago. No reaction so far. Thanks :+1:

Hi, the app cannot connect to my esp32. Baldhor’s app connects fine but with this one I get a “device not responding, check IPv6 reachability and ESPHome API settings. It is a generic ESP32 device. Not using encryption to try the bare minimum. I can ping and telnet the ESP32 device ok. Any clue?

Hello, after you try to add the device, please send me a diagnostic log so I can figure out what’s causing the problem.

Where can I find the log?

This is what I get e1ffcb30-3885-4d5d-8d43-61c010cb44c2

After installing the test version, please try adding the device again. If your device still won’t be added, could you please send me the YAML file installed on your device and the diagnostic log?