esphome / issues

Issue Tracker for ESPHome
https://esphome.io/
292 stars 36 forks source link

Textbox of text input component does not show up on webserver v2 #5188

Open stleusc opened 11 months ago

stleusc commented 11 months ago

The problem

In reference to PR #3638...

I added a text input to my config and it all works great. I usually have the js code on my own server since the devices have no internet acces. So I copied the js file and put it onto my local server.

Compiled, and I can see it is pulling from the server and all is working as expected.

web_server:
  port: 80
  js_url: http://192.168.1.200/esphome/webserver-v2.min.js

THEN I decided to make the js file LOCAL to the device with this config:

web_server:
  port: 80
  local: true
  js_url: http://192.168.1.200/esphome/webserver-v2.min.js

And suddenly the textbox is gone and the 'table' shows nothing in that spot.

So to be clear, the feature works just fine as soon as I remove local:true from the webserver config! That means, I know that the self-hosted js file is working. I can see the browser download it from my local server and rendering is ok.

Which version of ESPHome has the issue?

2023.11.4

What type of installation are you using?

Home Assistant Add-on

Which version of Home Assistant has the issue?

unrelated

What platform are you using?

ESP32

Board

No response

Component causing the issue

No response

Example YAML snippet

Broken


web_server:
  port: 80
  local: true
  js_url: http://192.168.1.200/esphome/webserver-v2.min.js

Working

web_server:
  port: 80
  js_url: http://192.168.1.200/esphome/webserver-v2.min.js

Anything in the logs that might be useful for us?

No response

Additional information

No response

digaus commented 11 months ago

And here I thought I was too stupid. But yeah I have the same issue.

Using local: true results in text input not being shown

github-actions[bot] commented 7 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stleusc commented 7 months ago

Keep it open