Hello guest, if you read this it means you are not registered. Click here to register in a few simple steps, you will enjoy all features of our Forum.
Hi Guest this is an announcement for guests !!!

Note de ce sujet :
  • Moyenne : 0 (0 vote(s))
  • 1
  • 2
  • 3
  • 4
  • 5
Lancement du module complémentaire JK-BMS RS485 pour Home Assistant
#19
EDIT: j'ai trouve mon erreur, comme mon BMS est en ID1 je n'avias pas change le bms_broadcasting a false.


Bonjour et cool pour le module, merci.
par contre etant une bille (histoire d'etre poli) avec MQTT je pense que je me suis plante quelque part car mon BMS n'apparait pas.

j'utilise un dongle usb vers RS485-RJ45 qui fonctionne tres bien avec le soft de JK.


je n'avais pas installe ni configure MQTT avant, mon zigbee et le growatt faisant l'affaire parfaitement.

Bref je vais essayer de lister tout ce que j'ai fait en esperant ne rien oublier.

1- j'ai installer le mosquitto broker, cocher lancer au demarrage, rien touche d'autre a la configuration.
2- j'ai cree un utilisateur "hamqtt" password "toto1234", acces local uniquement
3- j'ai teste a l'aide de mqtt explorer que j'arrive bien a me connecter au mqtt://192.168.1.123:1883 avec l'utilisateur hamqtt/toto1234
je vois bien une entree dans le journall de mosquitto broker
4- j'ai installe le module "JKL-BMS wired management"
 au niveau configuration j'ai mis ceci:

jkbms_path: /dev/ttyUSB0
jkbms_count: 1
use_gateway: false
gateway_ip: 192.168.1.100
gateway_port: 5000
bms_broadcasting: true
CAN_bus_usage: false

mqttadresse: 192.168.1.123
mqttport: 1883
mqttuser: hamqtt
mqttpass: toto1234

mon tty j'ai mis celui ca car il correspond au lien symbolique /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A955AQ84-if00-port0

dnas le journal j'ai ceci:
Code :
-----------------------------------------------------------
Add-on: JK-BMS wired management
JK-BMS management via RS485 & Ip Gateway
-----------------------------------------------------------
Add-on version: 2.0.1
You are running the latest version of this add-on.
System: Home Assistant OS 16.0  (amd64 / qemux86-64)
Home Assistant Core: 2025.7.1
Home Assistant Supervisor: 2025.07.1
-----------------------------------------------------------
Please, share the above information when looking for help
or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
s6-rc: info: service base-addon-banner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service base-addon-log-level: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service base-addon-log-level successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service init-customizations: starting
s6-rc: info: service init-customizations successfully started
s6-rc: info: service init-nodered: starting
[17:04:49] WARNING:
[17:04:49] WARNING: Direct access mode is disabled, Node-RED Dashboard
[17:04:49] WARNING: will not work!
[17:04:49] WARNING:
[17:04:49] WARNING: Please assign a port in the Network section of this
[17:04:49] WARNING: add-on configuration.
[17:04:49] WARNING:
s6-rc: info: service init-nodered successfully started
s6-rc: info: service nodered: starting
s6-rc: info: service nodered successfully started
s6-rc: info: service legacy-services: starting
[17:04:49] INFO: Starting Node-RED...
s6-rc: info: service legacy-services successfully started
npm warn Unknown builtin config "globalignorefile". This will stop working in the next major version of npm.
npm warn Unknown builtin config "python". This will stop working in the next major version of npm.
> start
> node $NODE_OPTIONS node_modules/node-red/red.js --settings /etc/node-red/config.js
✅ config.js is being loaded
✅ Node-RED is using userDir = /config/smartphoton_jkbms/
✅ Node-RED is using uiPort = 1891
12 Jul 17:04:50 - [info]
Welcome to Node-RED
===================
12 Jul 17:04:50 - [info] Node-RED version: v4.0.9
12 Jul 17:04:50 - [info] Node.js  version: v22.16.0
12 Jul 17:04:50 - [info] Linux 6.12.35-haos x64 LE
12 Jul 17:04:50 - [info] Loading palette nodes
12 Jul 17:04:50 - [info] Node-RED Contrib Theme Collection version: v4.0.11
12 Jul 17:04:51 - [info] Dashboard version 3.6.5 started at /endpoint/ui
12 Jul 17:04:52 - [info] node-red-contrib-home-assistant-websocket v0.77.1 nodes initialized
12 Jul 17:04:52 - [info] Settings file  : /etc/node-red/config.js
12 Jul 17:04:52 - [info] Context store  : 'default' [module=localfilesystem]
12 Jul 17:04:52 - [info] User directory : /config/smartphoton_jkbms/
12 Jul 17:04:52 - [warn] Projects disabled : editorTheme.projects.enabled=false
12 Jul 17:04:52 - [info] Flows file     : /config/smartphoton_jkbms/flows.json
12 Jul 17:04:52 - [warn] Encrypted credentials not found
12 Jul 17:04:52 - [info] Server now running at http://127.0.0.1:1891/
12 Jul 17:04:52 - [info] Starting flows
12 Jul 17:04:52 - [info] [ui-base:Setup] Node-RED Dashboard 2.0 (v1.25.0) started at /dashboard
12 Jul 17:04:52 - [info] [ui-base:Setup] Created socket.io server bound to Node-RED port at path /endpoint/dashboard/socket.io
12 Jul 17:04:52 - [info] Started flows
12 Jul 17:04:52 - [error] [serialconfig:6e1abcbcc6ebb714] serial port /dev/JKBMS error: Error: Error: No such file or directory, cannot open /dev/JKBMS
12 Jul 17:04:52 - [info] [mqtt-broker:56f7b2737cce493b] Connection failed to broker: mqtt://core-mosquitto.local.hass.io:1883
12 Jul 17:04:53 - [info] [mqtt-broker:56f7b2737cce493b] Connected to broker: mqtt://192.168.1.123:1883
12 Jul 17:04:53 - [info] [function:Définir global variables] Variable globale 'path' définie: /dev/ttyUSB0
12 Jul 17:04:53 - [info] [function:Définir global variables] Variable globale 'nb_jkbms' définie: 1
12 Jul 17:04:53 - [info] [function:Définir global variables] Variable globale 'use_gateway' définie: false
12 Jul 17:04:53 - [info] [function:Définir global variables] Variable globale 'gateway_ip' définie: 192.168.1.100
12 Jul 17:04:53 - [info] [function:Définir global variables] Variable globale 'gateway_port' définie: 5000
12 Jul 17:04:53 - [info] [function:Définir global variables] Variable globale 'bms_broadcasting' définie: true
12 Jul 17:04:53 - [info] [function:Définir global variables] Variable globale 'mqttadresse' définie: 192.168.1.123
12 Jul 17:04:53 - [info] [function:Définir global variables] Variable globale 'mqttport' définie: 1883
12 Jul 17:04:53 - [info] [function:Définir global variables] Variable globale 'mqttuser' définie: hamqtt
12 Jul 17:04:53 - [info] [function:Définir global variables] Variable globale 'mqttpass' définie: toto1234
12 Jul 17:04:53 - [info] [function:Définir global variables] Variable globale 'ssl' définie: false
12 Jul 17:04:53 - [info] [function:Définir global variables] Variable globale 'certfile' définie: fullchain.pem
12 Jul 17:04:53 - [info] [function:Définir global variables] Variable globale 'keyfile' définie: privkey.pem
12 Jul 17:04:53 - [info] serial port /dev/JKBMS closed
12 Jul 17:04:53 - [info] [serialconfig:6e1abcbcc6ebb714] serial port /dev/ttyUSB0 opened at 115800 baud 8N1

du cote log MQTT j'ai ceci
Code :
2025-07-12 17:03:13: Client <unknown> closed its connection.
2025-07-12 17:04:46: Client nodered_c1344544e2fa8d62 disconnected.
2025-07-12 17:04:52: New connection from 172.30.32.1:40238 on port 1883.
error: received null username or password for unpwd check
2025-07-12 17:04:52: Client nodered_be0ace75a96afb22 disconnected, not authorised.
2025-07-12 17:04:53: New connection from 192.168.1.123:55008 on port 1883.
2025-07-12 17:04:53: New client connected from 192.168.1.123:55008 as nodered_0e35953e4b4b41a9 (p2, c1, k60, u'hamqtt').
2025-07-12 17:05:13: New connection from 172.30.32.2:40258 on port 1883.
2025-07-12 17:05:13: Client <unknown> closed its connection.
2025-07-12 17:07:13: New connection from 172.30.32.2:38284 on port 1883.
2025-07-12 17:07:13: Client <unknown> closed its connection.

mais quand je vais dans appareil aucun appareil n'apparait dans l'integration mqtt, j'ai une seule entree: mosquitto broker.

donc toujours dans MQTT j'ai clique sur les 3 point de l'entree mosquitto broker  et sur reconfigurer j'ai change
les infos (courtier =>192.168.1.123, user=>hamqtt, password=>toto1234) 
enregistrer essaye de redemarrer le jk-bms wired management attendu quelque minutes et retour sur mqtt... toujorus zero appareils.

donc ma question est: qu'est ce que je fais de travers ?
merci
Like Répondre


Messages dans ce sujet
RE: Lancement du module complémentaire JK-BMS RS485 pour Home Assistant - par psychotik2k3 - 12-07-2025, 05:20 PM

Sujets apparemment similaires…
Sujet Auteur Réponses Affichages Dernier message
  Launch of the JK-BMS RS485 add-on for Home Assistant jlm 52 70,197 19-08-2026, 01:58 PM
Dernier message: jlm
  Annonces sur les mises à jour de versions du module jkbms-rs485-addon jlm 4 8,419 16-09-2025, 01:01 PM
Dernier message: jlm

Atteindre :


Utilisateur(s) parcourant ce sujet : 3 visiteur(s)
[-]
discussions récentes
EA FC 27 Career Mode Realistic...
EA FC 27 Career Mode can feel ...jiaolix — 09:44 AM
Install Deye Pylontech chez u...
Hello, Il faudrait que tu j...jlm — 06:24 PM
Install Deye Pylontech chez un...
Salut, Jeudi dernier j'étai...Angelos — 03:15 PM
Intégration SynSynk/DEYE avec...
Mieux ce n'est pas possible.Anna202 — 10:57 AM
Entertainment online platform ...
I was having a chat with my br...ramsaybolt — 01:01 AM
MapleStory Classic World: Plan...
Building a reliable character ...ZeonLau — 09:23 AM
Build a Better NBA 2K27 MyTEAM...
Building a competitive MyTEAM ...ZeonLau — 08:58 AM
MapleStory Classic World Progr...
Progress in MapleStory Classic...ZeonLau — 08:50 AM
Aion 2 Budget Tips Spend Smart...
In Aion 2, steady character de...ZeonLau — 08:36 AM
Online platform with cool bonu...
I was waiting for a friend who...ramsaybolt — 01:47 PM
How Movie for Windows Supports...
Windows computers are used for...rodeoneerer — 08:13 AM

[-]
Rechercher








(Advanced Search)

[-]
Who's Online
There are currently no members online.

[-]
goals
79.6% of the way to our goal of 10,000 posts!
Only 2,043 posts left to go!

[-]
Statistics
» Members: 1,112
» Latest member: gestaltenselbstdiy
» Forum threads: 902
» Forum posts: 7,956

Full Statistics

[-]
Latest Threads
EA FC 27 Career Mode Realistic Sliders: ...
Last Post: jiaolix
Aujourd’hui 09:44 AM
» Replies: 0
» Views: 21
Install Deye Pylontech chez un client, e...
Last Post: jlm
Hier 06:24 PM
» Replies: 1
» Views: 56
Intégration SynSynk/DEYE avec HA ou ...
Last Post: Anna202
20-10-2026 10:57 AM
» Replies: 15
» Views: 23307
Entertainment online platform in your fr...
Last Post: ramsaybolt
19-10-2026 01:01 AM
» Replies: 0
» Views: 214
MapleStory Classic World: Plan Gear Upgr...
Last Post: ZeonLau
17-10-2026 09:23 AM
» Replies: 0
» Views: 296
Build a Better NBA 2K27 MyTEAM With U4GM
Last Post: ZeonLau
17-10-2026 08:58 AM
» Replies: 0
» Views: 247
MapleStory Classic World Progress Tips F...
Last Post: ZeonLau
17-10-2026 08:50 AM
» Replies: 0
» Views: 243
Aion 2 Budget Tips Spend Smarter With U4...
Last Post: ZeonLau
17-10-2026 08:36 AM
» Replies: 0
» Views: 247
Online platform with cool bonuses
Last Post: ramsaybolt
16-10-2026 01:47 PM
» Replies: 0
» Views: 257
How Movie for Windows Supports Everyday ...
Last Post: rodeoneerer
15-10-2026 08:13 AM
» Replies: 0
» Views: 273

>