Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] - config.example.yaml format url exemple web service incorrect #569

Open
1 of 2 tasks
typhoe opened this issue Aug 3, 2024 · 1 comment
Open
1 of 2 tasks
Assignees
Labels
bug Something isn't working

Comments

@typhoe
Copy link

typhoe commented Aug 3, 2024

Description du bug
L'exemple fourni pour l'url du websocket homeassistant dans le fichier de configuration prête a confusion

url: ws://localhost:8123

En effet, l'exemple semble indiquer de mettre ws:// mais dans ce cas, la connexion échoue (le ws:// est rajouté dans le code de l'appli, non ?)

2024-08-03 17:18:25.952 -     INFO : [MON_PDL] IMPORT DES DONNÉES VERS L'ONGLET ENERGY DE HOME ASSISTANT (WEBSOCKET)
2024-08-03 17:18:25.952 -     INFO : ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◦ ❖ ◦ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2024-08-03 17:18:25.953 -     INFO : Connexion au WebSocket Home Assistant ws://ws://homeassistant:8123/api/websocket
2024-08-03 17:18:29.708 -    ERROR : 
2024-08-03 17:18:29.708 -    ERROR :     Impossible de se connecter au WebSocket Home Assistant.
2024-08-03 17:18:29.708 -    ERROR : 
2024-08-03 17:18:29.708 -    ERROR :     Vous pouvez récupérer un exemple ici :
2024-08-03 17:18:29.708 -    ERROR : https://github.com/MyElectricalData/myelectricaldata_import/blob/main/config.example.yaml
2024-08-03 17:18:29.708 -    ERROR : 
2024-08-03 17:18:29.708 - CRITICAL : La configuration Home Assistant WebSocket est erronée
Configuration (config.yaml)

Fonctionnel (sans ws://)

home_assistant_ws:
  enable: true
  ssl: false
  token: ''
  url: homeassistant:8123

Non Fonctionnel (avec ws://)

home_assistant_ws:
  enable: true
  ssl: false
  token: ''
  url: ws://homeassistant:8123

Type d'installation

  • Docker
  • HassIO

Version : 1.0.0rc14

@typhoe typhoe added the bug Something isn't working label Aug 3, 2024
@cvalentin-dkt
Copy link
Contributor

Je viens de fix en local et ce sera update dans la prochaine release :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants