Cover component appears in ESPHome Web Server UI but doesn't work correctly

I am using the cover component in ESPHome along with the built-in web_server:.
The cover entity does appear in the ESPHome Web UI (via browser), but it does not function properly:

The open, close, and stop buttons are visible, but pressing them has no effect.

The cover position and state are not updated.

Everything works fine in Home Assistant, so the configuration and hardware setup are correct.

So nothing in logs?

this in Chrome console:
www.js:3 Uncaught (in promise) Error: invalid template strings array
at Ho (www.js:3:339)
at na (www.js:3:1075)
at new we (www.js:3:1240)
at De.$AC (www.js:3:4781)
at De.g (www.js:3:4482)
at De.
$AI (www.js:3:4136)
at ha (www.js:3:7488)
at Ro.update (www.js:3:7893)
at Ro.performUpdate (www.js:1:6258)
at Ro.scheduleUpdate (www.js:1:5910)
www.js:3
Response {type: ‘basic’, url: ‘http://192.168.2.178/cover/right_cover?detail=all’, redirected: false, status: 200, ok: true, …}
www.js:3
{id: ‘cover-right_cover’, name: ‘Right Cover’, icon: ‘’, entity_category: 0, value: 0, …}

Esphome logs.
image

The log appears normal when I control it from Home Assistant (HA), but when I control it from the web, no logs appear at all.

Then you have logger disabled or you use webserver version 3 and you have logs turned off.

Feel free to post your yaml here.

assumed_state works correctly in Home Assistant (HA), but it doesn’t work properly on the web server.

I think the issue might be related to what I mentioned above.

It works correctly in Web Server version 2, but it doesn’t work properly in version 3.