ESPHome Device: Reading Sensor Values from Home Assistant

I’m working on an ESPHome project and I’m curious if anyone has experience with reading sensor values from Home Assistant. Here’s my setup: I have an ESP32 with an RG-9 rain sensor, and I want it to interact with a Shelly Plus 2pm cover device that controls an electric rooflight. The goal is for the rain sensor to check if the rooflight is open and, if so, monitor for rain and close the rooflight when it detects rain.

I’ve managed to set up most of the ESPHome configuration, but I’m stuck on how to read the status of the Shelly cover in HA. I created a text sensor in ESPHome linked to the cover entity, but I’m not sure how to trigger a read operation. I’ve looked through the documentation, but I might be missing something obvious.

If anyone has successfully integrated ESPHome devices with HA sensors or covers, I’d love to hear about your approach or any tips you have for making this work. Thanks in advance for any help!