Bonjour,
J'utilise smartphoton qui fonctionne très bien avec mes batteries connectées en série.
Je tente en vain d'utiliser la nouvelle version jk-bms, mais je n'ai rien qui remonte.
Dans les appareil, je n'ai aucun bms qui s'affiche.
Les 3 batteries sont connectées sur le bus can qui va au WKS.
Le raspberry Pi 4 est connecté à la batterie maitre sur le port rs232 avec une passerelle Aten USB-Rs232.
Pouvez-vous m'aider ? Merci.
Voici la configuration :
jkbms_path: >-
/dev/serial/by-id/usb-Prolific_Technology_Inc._ATEN_USB_to_Serial_Bridge_CEAVb13AL19-if00-port0
jkbms_count: 3
use_gateway: false
gateway_ip_port: 192.168.1.100:5000
communication_debug: true
bms_broadcasting: true
non_broadcasting_data_interval_s: 3
CAN_bus_usage: false
mqttadresse_port: 192.168.2.23:1883
mqttuser: zzzzzzzzzzz
mqttpass: xxxxxxxxxxxxx
Send_bip: true
premium_section: ────────── PREMIUM ──────────
premium_key: ''
dashboard_section: ────────── DASHBOARD ──────────
dashboard_custom_cards_installed: true
dashboard_language: fr
dashboard_mode: legacy
Voici le journal :
> 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
4 Oct 14:01:27 - [info]
Welcome to Node-RED
===================
4 Oct 14:01:27 - [info] Node-RED version: v5.0.7
4 Oct 14:01:27 - [info] Node.js version: v24.18.1
4 Oct 14:01:27 - [info] Linux 6.18.34-haos-raspi arm64 LE
4 Oct 14:01:29 - [info] Loading palette nodes
4 Oct 14:01:34 - [info] Settings file : /etc/node-red/config.js
4 Oct 14:01:35 - [info] Context store : 'default' [module=localfilesystem]
4 Oct 14:01:35 - [info] User directory : /config/smartphoton_jkbms/
4 Oct 14:01:35 - [warn] Projects disabled : editorTheme.projects.enabled=false
4 Oct 14:01:35 - [info] Flows file : /config/smartphoton_jkbms/flows.json
4 Oct 14:01:35 - [info] Server now running at http://127.0.0.1:1891/
4 Oct 14:01:35 - [warn] Encrypted credentials not found
4 Oct 14:01:35 - [info] Starting flows
4 Oct 14:01:35 - [info] [ui-base:Setup BMS 1] Node-RED Dashboard 2.0 (v1.32.0) started at /dashboard
4 Oct 14:01:35 - [info] [ui-base:Setup BMS 1] Created socket.io server bound to Node-RED port at path /endpoint/dashboard/socket.io
4 Oct 14:01:37 - [info] Started flows
4 Oct 14:01:37 - [error] [serialconfig:6e1abcbcc6ebb714] serial port /dev/JKBMS-Fake error: Error: Error: No such file or directory, cannot open /dev/JKBMS-Fake
4 Oct 14:01:37 - [warn] [function:MQTT status to HAOS log] ⚠️ MQTT broker reconnecting [MQTT Broker]
4 Oct 14:01:37 - [info] serial port /dev/JKBMS-Fake closed
4 Oct 14:01:38 - [info] [mqtt-broker:56f7b2737cce493b] Connection failed to broker: mqtt://core-mosquitto.local.hass.io:1883
4 Oct 14:01:38 - [info] [function:traitement des variables] Champ 'gateway_ip_port' traité: 192.168.1.100:5000
4 Oct 14:01:38 - [info] [function:traitement des variables] Champ 'mqttadresse_port' traité: 192.168.2.23:1883
4 Oct 14:01:38 - [info] [function:traitement des variables] Variable globale 'path' = /dev/serial/by-id/usb-Prolific_Technology_Inc._ATEN_USB_to_Serial_Bridge_CEAVb13AL19-if00-port0
4 Oct 14:01:38 - [info] [function:traitement des variables] Variable globale 'nb_jkbms' = 3
4 Oct 14:01:38 - [info] [function:traitement des variables] Variable globale 'use_gateway' = false
4 Oct 14:01:38 - [info] [function:traitement des variables] Variable globale 'gateway_ip' = 192.168.1.100
4 Oct 14:01:38 - [info] [function:traitement des variables] Variable globale 'gateway_port' = 5000
4 Oct 14:01:38 - [info] [function:traitement des variables] Variable globale 'communication_debug' = true
4 Oct 14:01:38 - [info] [function:traitement des variables] Variable globale 'bms_broadcasting' = true
4 Oct 14:01:38 - [info] [function:traitement des variables] Variable globale 'non_broadcasting_data_interval_s' = 3
4 Oct 14:01:38 - [info] [function:traitement des variables] Variable globale 'CAN_bus_usage' = false
4 Oct 14:01:38 - [info] [function:traitement des variables] Variable globale 'mqttadresse' = 192.168.2.23
4 Oct 14:01:38 - [info] [function:traitement des variables] Variable globale 'mqttport' = 1883
4 Oct 14:01:38 - [info] [function:traitement des variables] Variable globale 'mqttuser' = xxxxxxxxxxxx
4 Oct 14:01:38 - [info] [function:traitement des variables] Variable globale 'mqttpass' = •••••••••
4 Oct 14:01:38 - [info] [function:traitement des variables] Variable globale 'Send_bip' = true
4 Oct 14:01:38 - [info] [function:traitement des variables] Variable globale 'config.dashboardLanguage' = fr
4 Oct 14:01:38 - [info] [function:traitement des variables] Variable globale 'config.dashboardCustomCardsInstalled' = true
4 Oct 14:01:38 - [info] [function:traitement des variables] Variable globale 'premium.key_configured' = false
4 Oct 14:01:38 - [info] [function:traitement des variables] Variable globale 'premium.dashboard_mode' = legacy
4 Oct 14:01:38 - [info] [function:traitement des variables] Variable globale 'premium.instance_id' = null
4 Oct 14:01:38 - [warn] [function:premium init] JK PREMIUM STATE SPV2 -> {"install_id":"b434fe0b-2a55-4cd5-a8f2-64dcc1db11f3","active":false,"status":"missing_key","validation_status":"missing_key","tier":null,"key_id":null,"features":{"mqtt_core":true,"ha_discovery":true,"multi_bms":false,"dashboard_premium":false,"csv_export":false,"cycles_soh":false,"cell_details":false,"advanced_info":false}}
4 Oct 14:01:38 - [info] [serialconfig:6e1abcbcc6ebb714] serial port /dev/serial/by-id/usb-Prolific_Technology_Inc._ATEN_USB_to_Serial_Bridge_CEAVb13AL19-if00-port0 opened at 115200 baud 8N1
4 Oct 14:01:38 - [warn] [function:MQTT status to HAOS log] ❌ MQTT broker disconnected [MQTT Broker]
4 Oct 14:01:41 - [warn] [function:MQTT status to HAOS log] ⚠️ MQTT broker reconnecting [MQTT Broker]
4 Oct 14:01:42 - [info] [mqtt-broker:56f7b2737cce493b] Connected to broker: mqtt://192.168.2.23:1883
4 Oct 14:01:42 - [warn] [function:MQTT status to HAOS log] ✅ MQTT broker connected [MQTT Broker]
4 Oct 14:01:43 - [warn] [function:URL standalone] ⏩ Interface detected: end0
4 Oct 14:01:43 - [warn] [function:URL standalone] ⏩ Dashboard URL for Standalone version: http://192.168.2.23:1891/endpoint/dashboard/
4 Oct 14:01:43 - [warn] [function:URL standalone] ⏩ Please do not use with HAOS, only in standalone mode (executable for Windows or Linux)
4 Oct 14:01:43 - [warn] [function:URL standalone] ⏩ If you still wish to use it in HAOS, use the "iFrame" card with the above address
4 Oct 14:01:46 - [warn] [function:function 5] ⊘ Authorize_Modify_Settings already exists (value: false) - no modification
4 Oct 14:01:47 - [warn] [function:Reset discovery flags (auto nb_jkbms)] Setup flags reset: Master + BMS_1, BMS_2, BMS_3 (fallback conservateur). Le prochain setup republiera les entités.
4 Oct 14:01:51 - [warn] [function:Init flags for discovery] Discovery reset done for DATA + ALARMS + GLOBAL on Master + BMS_1, BMS_2, BMS_3 (fallback conservateur).
4 Oct 14:06:47 - [warn] [function:Reset discovery flags (auto nb_jkbms)] Setup flags reset: Master + BMS_1, BMS_2, BMS_3 (fallback conservateur). Le prochain setup republiera les entités.
4 Oct 14:11:47 - [warn] [function:Reset discovery flags (auto nb_jkbms)] Setup flags reset: Master + BMS_1, BMS_2, BMS_3 (fallback conservateur). Le prochain setup republiera les entités.
4 Oct 14:16:47 - [warn] [function:Reset discovery flags (auto nb_jkbms)] Setup flags reset: Master + BMS_1, BMS_2, BMS_3 (fallback conservateur). Le prochain setup republiera les entités.
4 Oct 14:21:47 - [warn] [function:Reset discovery flags (auto nb_jkbms)] Setup flags reset: Master + BMS_1, BMS_2, BMS_3 (fallback conservateur). Le prochain setup republiera les entités.
J'utilise smartphoton qui fonctionne très bien avec mes batteries connectées en série.
Je tente en vain d'utiliser la nouvelle version jk-bms, mais je n'ai rien qui remonte.
Dans les appareil, je n'ai aucun bms qui s'affiche.
Les 3 batteries sont connectées sur le bus can qui va au WKS.
Le raspberry Pi 4 est connecté à la batterie maitre sur le port rs232 avec une passerelle Aten USB-Rs232.
Pouvez-vous m'aider ? Merci.
Voici la configuration :
jkbms_path: >-
/dev/serial/by-id/usb-Prolific_Technology_Inc._ATEN_USB_to_Serial_Bridge_CEAVb13AL19-if00-port0
jkbms_count: 3
use_gateway: false
gateway_ip_port: 192.168.1.100:5000
communication_debug: true
bms_broadcasting: true
non_broadcasting_data_interval_s: 3
CAN_bus_usage: false
mqttadresse_port: 192.168.2.23:1883
mqttuser: zzzzzzzzzzz
mqttpass: xxxxxxxxxxxxx
Send_bip: true
premium_section: ────────── PREMIUM ──────────
premium_key: ''
dashboard_section: ────────── DASHBOARD ──────────
dashboard_custom_cards_installed: true
dashboard_language: fr
dashboard_mode: legacy
Voici le journal :
> 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
4 Oct 14:01:27 - [info]
Welcome to Node-RED
===================
4 Oct 14:01:27 - [info] Node-RED version: v5.0.7
4 Oct 14:01:27 - [info] Node.js version: v24.18.1
4 Oct 14:01:27 - [info] Linux 6.18.34-haos-raspi arm64 LE
4 Oct 14:01:29 - [info] Loading palette nodes
4 Oct 14:01:34 - [info] Settings file : /etc/node-red/config.js
4 Oct 14:01:35 - [info] Context store : 'default' [module=localfilesystem]
4 Oct 14:01:35 - [info] User directory : /config/smartphoton_jkbms/
4 Oct 14:01:35 - [warn] Projects disabled : editorTheme.projects.enabled=false
4 Oct 14:01:35 - [info] Flows file : /config/smartphoton_jkbms/flows.json
4 Oct 14:01:35 - [info] Server now running at http://127.0.0.1:1891/
4 Oct 14:01:35 - [warn] Encrypted credentials not found
4 Oct 14:01:35 - [info] Starting flows
4 Oct 14:01:35 - [info] [ui-base:Setup BMS 1] Node-RED Dashboard 2.0 (v1.32.0) started at /dashboard
4 Oct 14:01:35 - [info] [ui-base:Setup BMS 1] Created socket.io server bound to Node-RED port at path /endpoint/dashboard/socket.io
4 Oct 14:01:37 - [info] Started flows
4 Oct 14:01:37 - [error] [serialconfig:6e1abcbcc6ebb714] serial port /dev/JKBMS-Fake error: Error: Error: No such file or directory, cannot open /dev/JKBMS-Fake
4 Oct 14:01:37 - [warn] [function:MQTT status to HAOS log] ⚠️ MQTT broker reconnecting [MQTT Broker]
4 Oct 14:01:37 - [info] serial port /dev/JKBMS-Fake closed
4 Oct 14:01:38 - [info] [mqtt-broker:56f7b2737cce493b] Connection failed to broker: mqtt://core-mosquitto.local.hass.io:1883
4 Oct 14:01:38 - [info] [function:traitement des variables] Champ 'gateway_ip_port' traité: 192.168.1.100:5000
4 Oct 14:01:38 - [info] [function:traitement des variables] Champ 'mqttadresse_port' traité: 192.168.2.23:1883
4 Oct 14:01:38 - [info] [function:traitement des variables] Variable globale 'path' = /dev/serial/by-id/usb-Prolific_Technology_Inc._ATEN_USB_to_Serial_Bridge_CEAVb13AL19-if00-port0
4 Oct 14:01:38 - [info] [function:traitement des variables] Variable globale 'nb_jkbms' = 3
4 Oct 14:01:38 - [info] [function:traitement des variables] Variable globale 'use_gateway' = false
4 Oct 14:01:38 - [info] [function:traitement des variables] Variable globale 'gateway_ip' = 192.168.1.100
4 Oct 14:01:38 - [info] [function:traitement des variables] Variable globale 'gateway_port' = 5000
4 Oct 14:01:38 - [info] [function:traitement des variables] Variable globale 'communication_debug' = true
4 Oct 14:01:38 - [info] [function:traitement des variables] Variable globale 'bms_broadcasting' = true
4 Oct 14:01:38 - [info] [function:traitement des variables] Variable globale 'non_broadcasting_data_interval_s' = 3
4 Oct 14:01:38 - [info] [function:traitement des variables] Variable globale 'CAN_bus_usage' = false
4 Oct 14:01:38 - [info] [function:traitement des variables] Variable globale 'mqttadresse' = 192.168.2.23
4 Oct 14:01:38 - [info] [function:traitement des variables] Variable globale 'mqttport' = 1883
4 Oct 14:01:38 - [info] [function:traitement des variables] Variable globale 'mqttuser' = xxxxxxxxxxxx
4 Oct 14:01:38 - [info] [function:traitement des variables] Variable globale 'mqttpass' = •••••••••
4 Oct 14:01:38 - [info] [function:traitement des variables] Variable globale 'Send_bip' = true
4 Oct 14:01:38 - [info] [function:traitement des variables] Variable globale 'config.dashboardLanguage' = fr
4 Oct 14:01:38 - [info] [function:traitement des variables] Variable globale 'config.dashboardCustomCardsInstalled' = true
4 Oct 14:01:38 - [info] [function:traitement des variables] Variable globale 'premium.key_configured' = false
4 Oct 14:01:38 - [info] [function:traitement des variables] Variable globale 'premium.dashboard_mode' = legacy
4 Oct 14:01:38 - [info] [function:traitement des variables] Variable globale 'premium.instance_id' = null
4 Oct 14:01:38 - [warn] [function:premium init] JK PREMIUM STATE SPV2 -> {"install_id":"b434fe0b-2a55-4cd5-a8f2-64dcc1db11f3","active":false,"status":"missing_key","validation_status":"missing_key","tier":null,"key_id":null,"features":{"mqtt_core":true,"ha_discovery":true,"multi_bms":false,"dashboard_premium":false,"csv_export":false,"cycles_soh":false,"cell_details":false,"advanced_info":false}}
4 Oct 14:01:38 - [info] [serialconfig:6e1abcbcc6ebb714] serial port /dev/serial/by-id/usb-Prolific_Technology_Inc._ATEN_USB_to_Serial_Bridge_CEAVb13AL19-if00-port0 opened at 115200 baud 8N1
4 Oct 14:01:38 - [warn] [function:MQTT status to HAOS log] ❌ MQTT broker disconnected [MQTT Broker]
4 Oct 14:01:41 - [warn] [function:MQTT status to HAOS log] ⚠️ MQTT broker reconnecting [MQTT Broker]
4 Oct 14:01:42 - [info] [mqtt-broker:56f7b2737cce493b] Connected to broker: mqtt://192.168.2.23:1883
4 Oct 14:01:42 - [warn] [function:MQTT status to HAOS log] ✅ MQTT broker connected [MQTT Broker]
4 Oct 14:01:43 - [warn] [function:URL standalone] ⏩ Interface detected: end0
4 Oct 14:01:43 - [warn] [function:URL standalone] ⏩ Dashboard URL for Standalone version: http://192.168.2.23:1891/endpoint/dashboard/
4 Oct 14:01:43 - [warn] [function:URL standalone] ⏩ Please do not use with HAOS, only in standalone mode (executable for Windows or Linux)
4 Oct 14:01:43 - [warn] [function:URL standalone] ⏩ If you still wish to use it in HAOS, use the "iFrame" card with the above address
4 Oct 14:01:46 - [warn] [function:function 5] ⊘ Authorize_Modify_Settings already exists (value: false) - no modification
4 Oct 14:01:47 - [warn] [function:Reset discovery flags (auto nb_jkbms)] Setup flags reset: Master + BMS_1, BMS_2, BMS_3 (fallback conservateur). Le prochain setup republiera les entités.
4 Oct 14:01:51 - [warn] [function:Init flags for discovery] Discovery reset done for DATA + ALARMS + GLOBAL on Master + BMS_1, BMS_2, BMS_3 (fallback conservateur).
4 Oct 14:06:47 - [warn] [function:Reset discovery flags (auto nb_jkbms)] Setup flags reset: Master + BMS_1, BMS_2, BMS_3 (fallback conservateur). Le prochain setup republiera les entités.
4 Oct 14:11:47 - [warn] [function:Reset discovery flags (auto nb_jkbms)] Setup flags reset: Master + BMS_1, BMS_2, BMS_3 (fallback conservateur). Le prochain setup republiera les entités.
4 Oct 14:16:47 - [warn] [function:Reset discovery flags (auto nb_jkbms)] Setup flags reset: Master + BMS_1, BMS_2, BMS_3 (fallback conservateur). Le prochain setup republiera les entités.
4 Oct 14:21:47 - [warn] [function:Reset discovery flags (auto nb_jkbms)] Setup flags reset: Master + BMS_1, BMS_2, BMS_3 (fallback conservateur). Le prochain setup republiera les entités.




