zibous / ha-watermeter

Data provider for smartmeter watermeter.
GNU General Public License v3.0
157 stars 27 forks source link

Blank web page with "200 OK" return #31

Closed mickaelBert closed 6 months ago

mickaelBert commented 6 months ago

HI,

I'm not very familiar with ESPhome deployement. I have trie a lot of yaml (wm-esp32-simple, wm-esp32-test, ...) from your gihtub and i cannot get the webserver page to see the value or log information. I must be forgetting something :s

here is the url form the esp after deployment : Capture d’écran 2023-12-12 à 10 24 35

here is the yaml used (but i have the same result after a lot of yaml test configuration) test.yaml.txt i tried some configuration on webserver : local = true or false, etc. nothing help me. In all the case, i get the webserver with a blanck page and OK 200 text.

here is the last deployment on esp32 logs_test_run.txt

Thanks for your help.

zibous commented 6 months ago

hi,

You use webserver version 2 but the js_url is version 1 :

## ---------------------------------------------------
## COMPONENT WEBSERVER
## ---------------------------------------------------
web_server:
  port: 80
  version: 2
  js_url: https://esphome.io/_static/webserver-v1.min.js

see: https://esphome.io/components/web_server.html?highlight=webserver https://github.com/zibous/ha-watermeter/tree/master/esphome/webserver

Try this for a simple test:

## ---------------------------------------------------
## COMPONENT WEBSERVER
## ---------------------------------------------------
web_server:
  port: 80
  version: 1
mickaelBert commented 6 months ago

Thanks for your fast answer. I think i have already tried, but here is a new test (with same result) :

web_server:
  port: 80
  version: 1

Capture d’écran 2023-12-12 à 12 42 20 testv1.yaml.txt logs_test1_run_v1.txt

mickaelBert commented 6 months ago

I made a new deployement (same configuration) to another wifi SSID (same vlan) and it's working now. sorry for the inconvenience and thanks for your fast answer.

mickaelBert commented 6 months ago

network segmentation error with vlan rules

zibous commented 6 months ago

I made a new deployement (same configuration) to another wifi SSID (same vlan) and it's working now. sorry for the inconvenience and thanks for your fast answer.

o.k. if it works, you can close the issues.