Merci pour ton retour.
J’ai créé l’utilisateur, j’ai modifié les paramètres mqtt dans config.yaml.
Quand je relance mqtt mosquitto, j’obtiens cela :
[17:02:44] INFO: Service restart after closing
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
cont-init: info: running /etc/cont-init.d/mosquitto.sh
[19:03:15] INFO: Setting up user mqqt
[19:03:15] INFO: SSL is not enabled
cont-init: info: /etc/cont-init.d/mosquitto.sh exited 0
cont-init: info: running /etc/cont-init.d/nginx.sh
cont-init: info: /etc/cont-init.d/nginx.sh exited 0
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun mosquitto (no readiness notification)
services-up: info: copying legacy longrun nginx (no readiness notification)
[19:03:15] INFO: Starting NGINX for authentication handling...
s6-rc: info: service legacy-services successfully started
[19:03:16] INFO: Starting mosquitto MQTT broker...
2024-07-26 19:03:16: Warning: Mosquitto should not be run as root/administrator.
2024-07-26 19:03:16: mosquitto version 2.0.18 starting
2024-07-26 19:03:16: Config loaded from /etc/mosquitto/mosquitto.conf.
2024-07-26 19:03:16: Loading plugin: /usr/share/mosquitto/go-auth.so
2024-07-26 19:03:16: ├── Username/password checking enabled.
2024-07-26 19:03:16: ├── TLS-PSK checking enabled.
2024-07-26 19:03:16: └── Extended authentication not enabled.
2024-07-26 19:03:16: Opening ipv4 listen socket on port 1883.
2024-07-26 19:03:16: Opening ipv6 listen socket on port 1883.
2024-07-26 19:03:16: Opening websockets listen socket on port 1884.
2024-07-26 19:03:16: mosquitto version 2.0.18 running
2024-07-26 19:03:16: New connection from ::1:41414 on port 1883.
2024-07-26 19:03:16: Client <unknown> disconnected due to protocol error.
[19:03:16] INFO: Successfully send discovery information to Home Assistant.
[19:03:16] INFO: Successfully send service information to the Supervisor.
2024-07-26 19:03:17: Expiring client 6c74da46-tydom2mqtt2024-07-13 18:35:47.991341 due to timeout.
2024-07-26 19:03:17: Expiring client 9afc8f77-tydom2mqtt2024-07-14 18:47:18.523714 due to timeout.
2024-07-26 19:03:20: New connection from 172.30.32.1:44318 on port 1883.
2024-07-26 19:03:20: New client connected from 172.30.32.1:44318 as 9afc8f77-tydom2mqtt2024-07-14 18:47:18.523714 (p5, c0, k60, u'mqtt').
2024-07-26 19:03:20: New connection from 172.30.32.1:44324 on port 1883.
2024-07-26 19:03:20: New client connected from 172.30.32.1:44324 as 6c74da46-tydom2mqtt2024-07-13 18:35:47.991341 (p5, c0, k60, u'mqtt').
2024-07-26 19:03:22: New connection from 172.30.32.1:41959 on port 1883.
2024-07-26 19:03:22: New client connected from 172.30.32.1:41959 as 3BYNjyziCA1F9eykwFTaXZ (p2, c1, k60, u'homeassistant').
2024-07-26 19:03:29: New connection from 172.30.33.6:60403 on port 1883.
2024-07-26 19:03:29: Client myelectricaldata disconnected, not authorised.
J’ai fait ce que tu m’as indiqué.
Créer un utilisateur myelectricaldata. (administrateur)
Dans le config.yaml je mets ta partie mqtt ajoutant les données de l’utilisateur « myelectricaldata ».
Quand je relance HA, j’obtiens ceci :
L’adons « tydom2mqtt » se connecte et remonte les données Tydom (deltadore) mais bloque sur « myelectricaldata ».
Je ne trouve pas d’issue à ce problème.
[08:08:13] INFO: Service restart after closing
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
cont-init: info: running /etc/cont-init.d/mosquitto.sh
[10:08:18] INFO: Setting up user mqqt
[10:08:18] INFO: SSL is not enabled
cont-init: info: /etc/cont-init.d/mosquitto.sh exited 0
cont-init: info: running /etc/cont-init.d/nginx.sh
cont-init: info: /etc/cont-init.d/nginx.sh exited 0
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun mosquitto (no readiness notification)
services-up: info: copying legacy longrun nginx (no readiness notification)
[10:08:18] INFO: Starting NGINX for authentication handling...
s6-rc: info: service legacy-services successfully started
[10:08:19] INFO: Starting mosquitto MQTT broker...
2024-07-27 10:08:19: Warning: Mosquitto should not be run as root/administrator.
2024-07-27 10:08:19: mosquitto version 2.0.18 starting
2024-07-27 10:08:19: Config loaded from /etc/mosquitto/mosquitto.conf.
2024-07-27 10:08:19: Loading plugin: /usr/share/mosquitto/go-auth.so
2024-07-27 10:08:19: ├── Username/password checking enabled.
2024-07-27 10:08:19: ├── TLS-PSK checking enabled.
2024-07-27 10:08:19: └── Extended authentication not enabled.
2024-07-27 10:08:19: Opening ipv4 listen socket on port 1883.
2024-07-27 10:08:19: Opening ipv6 listen socket on port 1883.
2024-07-27 10:08:19: Opening websockets listen socket on port 1884.
2024-07-27 10:08:19: mosquitto version 2.0.18 running
2024-07-27 10:08:19: New connection from ::1:34368 on port 1883.
2024-07-27 10:08:19: Client <unknown> disconnected due to protocol error.
2024-07-27 10:08:19: New connection from 172.30.32.1:46096 on port 1883.
2024-07-27 10:08:19: New client connected from 172.30.32.1:46096 as 6c74da46-tydom2mqtt2024-07-13 18:35:47.991341 (p5, c0, k60, u'mqtt').
2024-07-27 10:08:19: New connection from 172.30.32.1:46112 on port 1883.
2024-07-27 10:08:19: New client connected from 172.30.32.1:46112 as 9afc8f77-tydom2mqtt2024-07-14 18:47:18.523714 (p5, c0, k60, u'mqtt').
[10:08:19] INFO: Successfully send discovery information to Home Assistant.
[10:08:20] INFO: Successfully send service information to the Supervisor.
2024-07-27 10:08:21: New connection from 172.30.33.6:49073 on port 1883.
2024-07-27 10:08:21: Client myelectricaldata disconnected, not authorised.
2024-07-27 10:08:23: New connection from 172.30.32.1:52223 on port 1883.
2024-07-27 10:08:23: New client connected from 172.30.32.1:52223 as 3BYNjyziCA1F9eykwFTaXZ (p2, c1, k60, u'homeassistant').
2024-07-27 10:10:21: New connection from 172.30.33.6:60661 on port 1883.
2024-07-27 10:10:21: Client myelectricaldata disconnected, not authorised.
2024-07-27 10:12:21: New connection from 172.30.33.6:54899 on port 1883.
2024-07-27 10:12:21: Client myelectricaldata disconnected, not authorised.
2024-07-27 10:14:21: New connection from 172.30.33.6:37905 on port 1883.
2024-07-27 10:14:21: Client myelectricaldata disconnected, not authorised.
2024-07-27 10:16:22: New connection from 172.30.33.6:37325 on port 1883.
2024-07-27 10:16:22: Client myelectricaldata disconnected, not authorised.
Difficile de continuer sans savoir où est l’erreur et quoi fournir pour être aider correctement.
Merci pour ta patience.
je n’ai pas mes entités dans Outils de développement/Etats/ → « myelectricaldata_yesterday » ou « Hier »
du coup ca ne marche pas quand je crée mes cartes … quelqu’un a une idée ?
Bonjour,
les entités son nommé sensor.linky_xxxxxxxxxxxxxxxx_consumption, ou xxxxxxxxxxxxxxxx est le numéro de PDL de ton compteur. Elle sont plus nommer myelectricaldata, ca changer il y a quelques mois.
Pour ceux template sensor, la source est l’entité sensor.linky_XXX_consumption, et le sensor template se nommera sensor.myelectricaldata_daily_cost.
Dans ta carte, il faut utiliser le sensor template, donc sensor.myelectricaldata_daily_cost.
Vérifie que l’entité sensor.linky_XXX_consumption remontent bien les informations.
Vérifie que le template donne bien un résultat, dans l’outil de dev et modèle
Bonjour @idefix24,
utilise la balise texte préformaté quand tu colles du code dans un message. Ça permet une meilleure visibilité du code et respecte les espaces.
J’ai corrigé ton message.
Il me semble avoir aperçu dans une capture plus récente que tu avais récupéré l’icone…
Te souviens tu de la solution? Car je rencontre le même problème