Control items disappearing from an ESPHome device (esp32-wroom-32)

I am using YAML code from github to control my Deye Solar Inverter.

The code generates Control items and Sensors in Home Assistant under Settings > Devices > ESPHome > Deye 8K

I have sensor data 24 x 7 and I use the data in a dashboard and I look at History too.

The problem I have is with Control Items - to change values on the Deye. The list of Control Items disappears regularly, and then, out of the blue, returns.

The problem I have is that I have an automation which changes one value in the Deye. Of course, if it does not exist to change, then it cannot do it.

I have no idea as to how or why it disappears. Would it help to poll something once per hour to keep it ?

I found last night that in HA I can only see 30 Control items, and it EXCLUDES Work Mode

But when I browse to the ESP32, I can see my Deye Work Mode

So it is 100% a problem of the ESP32 sending the Control Items to HA

No yaml, no logs.

You’re gonna have to post the full YAML before anyone will be able to begin to help.

1 Like

Here’s a link to the code

https://github.com/slipx06/Sunsynk-Home-Assistant-Dash/blob/af7c21cd87ef517465fdbfc99eb34a9c21c51989/ESPHome%20Configs/ESPHome-1P-Sunsynk-Deye.yaml

I found last night that the Control items are in the ESP32 when I browse to it, but the Control Items are missing from HA. So the problem is definitely with Control Items not finding their way AT TIMES from the ESP32 into HA

You’ve been asked for logs here and on GitHub. You haven’t responded.

I am really struggling to get a log. I tried using Find Wirelessly and it can’t find it. I tried directly connected, but the USBTTY port is not shown as an option (I think because it is a docker container).

If I unplug it and connect it into my laptop, then of course I am resetting the device :frowning:

Perhaps focusing on what appears to be a failure to communicate should be the first step. It might even “fix” the original issue, since lack of communication tends to make things not work.