fl4p / batmon-ha

Add-on for Home Assistant to connect JK, JBD, Daly, ANT, SOK and Supervolt BMS via Bluetooth
MIT License
314 stars 60 forks source link

No entities or how to make a card in HA #250

Closed Pleeriezer closed 3 months ago

Pleeriezer commented 3 months ago

Hello,

I ahve installed the Batmon in my HA. It seems to work, the JK BMS is found but I also get a lot errors :

How do I made a card for the Batmon?

I can not find enities to plae in a card of helper? BEGIN 19:56:42 INFO [install_bleak] bleak 0.13.1a1 installed, want 0.20.2, running pip3 install bleak==0.20.2 19:56:42 INFO [install_bleak] influxdb installed=False need=False Looking in indexes: https://pypi.org/simple, https://wheels.home-assistant.io/musllinux-index/ Collecting bleak==0.20.2 Downloading https://wheels.home-assistant.io/musllinux-index/bleak-0.20.2-py3-none-any.whl (135 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 135.6/135.6 kB 12.2 MB/s eta 0:00:00 Collecting dbus-fast<2.0.0,>=1.83.0 (from bleak==0.20.2) Downloading dbus_fast-1.95.2-cp312-cp312-musllinux_1_1_x86_64.whl.metadata (10 kB) Downloading dbus_fast-1.95.2-cp312-cp312-musllinux_1_1_x86_64.whl (4.7 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.7/4.7 MB 25.8 MB/s eta 0:00:00 Installing collected packages: dbus-fast, bleak Attempting uninstall: bleak Found existing installation: bleak 0.13.1a1 Uninstalling bleak-0.13.1a1: Successfully uninstalled bleak-0.13.1a1 Successfully installed bleak-0.20.2 dbus-fast-1.95.2 19:56:50 INFO [main] Power cycle bluetooth hardware Unable to open mgmt_socket Unable to open mgmt_socket 19:56:54 INFO [bt] BT Discovery: 19:56:59 INFO [bt] BT 51:CA:F8:87:A2:31 51-CA-F8-87-A2-31 19:56:59 INFO [bt] BT 54:D2:72:E5:37:74 Nuki_39E53774 19:56:59 INFO [bt] BT 58:3D:B6:98:FE:E6 58-3D-B6-98-FE-E6 19:56:59 INFO [bt] BT 04:A9:8A:63:35:90 04-A9-8A-63-35-90 19:56:59 INFO [bt] BT 47:47:12:6F:34:ED 47-47-12-6F-34-ED 19:56:59 INFO [bt] BT 69:83:DC:3A:27:7C ESS 19:56:59 INFO [bt] BT 84:32:B0:2F:EF:4F MOTION_EF4F 19:56:59 INFO [bt] BT 43:43:43:E0:36:39 43-43-43-E0-36-39 19:56:59 INFO [bt] BT 84:32:8F:C7:DB:27 MOTION_DB27 19:56:59 INFO [bt] BT 4A:0A:0A:65:4A:99 4A-0A-0A-65-4A-99 19:56:59 INFO [bt] BT 6A:B8:48:22:42:81 6A-B8-48-22-42-81 19:56:59 INFO [bt] BT E2:99:9F:81:4A:4E E2-99-9F-81-4A-4E 19:56:59 INFO [bt] BT 02:4F:8B:4F:8E:40 02-4F-8B-4F-8E-40 19:56:59 INFO [bt] BT 7C:7C:7C:3B:1E:DF 7C-7C-7C-3B-1E-DF 19:56:59 INFO [bt] BT 0B:15:A8:86:76:24 0B-15-A8-86-76-24 19:56:59 INFO [bt] BT B0:22:7A:A4:97:C0 B0-22-7A-A4-97-C0 19:56:59 INFO [bt] BT 74:AC:B9:36:3B:E4 UCK 19:56:59 INFO [bt] BT C8:47:80:13:B2:A7 JK_B2A24S20P 19:56:59 INFO [bt] BT 35:06:C3:4E:B7:3D 35-06-C3-4E-B7-3D 19:56:59 INFO [bt] BT C0:97:27:66:1E:0F C0-97-27-66-1E-0F 19:56:59 INFO [bt] BT 62:52:1C:32:C4:87 62-52-1C-32-C4-87 19:56:59 INFO [bt] BT 69:49:3C:C5:FC:93 69-49-3C-C5-FC-93 19:56:59 INFO [bt] BT 93:82:49:66:F6:7D TY 19:56:59 INFO [bt] BT A0:D7:F3:BD:2F:D5 A0-D7-F3-BD-2F-D5 19:56:59 INFO [bt] BT 50:41:6B:47:51:03 50-41-6B-47-51-03 19:56:59 INFO [bt] BT 84:32:A0:27:D4:D1 MOTION_D4D1 19:56:59 INFO [bt] BT 46:C1:A2:47:C7:A8 46-C1-A2-47-C7-A8 19:56:59 INFO [bt] BT 54:52:51:9C:93:05 54-52-51-9C-93-05 19:56:59 INFO [main] Bleak version 0.20.2, BtBackend version bluez-v5.76 19:56:59 INFO [main] connecting mqtt addons@core-mosquitto /app/main.py:196: DeprecationWarning: Callback API version 1 is deprecated, update to latest version mqtt_client = paho.Client(paho.CallbackAPIVersion.VERSION1) 19:56:59 INFO [main] Fetching 1 BMS + 0 virtual + 0 others serially, period=3.00s, keep_alive=True 19:56:59 INFO [sampling] connecting bms JKBt(C8:47:80:13:B2:A7,battery1) 19:56:59 INFO [main] mqtt watchdog loop started with timeout 300.0s 19:57:06 INFO [sampling] connected bms JKBt(C8:47:80:13:B2:A7,battery1)! 19:57:07 INFO [sampling] battery1 subscribing for {'charge': True, 'discharge': True, 'balance': True} switch change 19:57:07 INFO [sampling] battery1: BmsSampl(97.3%,U=60.2V,I=-2.16A,P=-130W,Q=306/314Ah,mos=nan°C) 19:57:07 INFO [sampling] battery1 volt=[3346,3346,3344,3346,3344,3346,3344,3344,3346,3346,3346,3347,3346,3344,3344,3346,3343,3343] temp=[nan, nan, nan, nan] 19:57:07 INFO [sampling] Sending HA discovery for battery1 (num_samples=0) s6-rc: info: service legacy-services: stopping 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 19:57:08 INFO [main] exit signal handler... (15, <frame at 0x7f89c0338c40, file '/usr/lib/python3.12/selectors.py', line 468, code select>), {}, shutdown was False 19:57:08 INFO [main] fetch_loop <function main..fn at 0x7f89c032a5c0> ends 19:57:08 INFO [main] All fetch loops ended. shutdown is already 1 19:57:08 INFO [main] Disconnecting JKBt(C8:47:80:13:B2:A7,battery1) 19:57:10 WARNING [bt] BMS JKBt(C8:47:80:13:B2:A7,battery1) disconnected after 5.6s! 19:57:10 INFO [main] exit signal handler... (), {}, shutdown was True 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 s6-rc: info: service legacy-cont-init successfully started s6-rc: info: service legacy-services: starting s6-rc: info: service legacy-services successfully started 19:57:13 INFO [install_bleak] bleak 0.13.1a1 installed, want 0.20.2, running pip3 install bleak==0.20.2 19:57:13 INFO [install_bleak] influxdb installed=False need=False Looking in indexes: https://pypi.org/simple, https://wheels.home-assistant.io/musllinux-index/ Collecting bleak==0.20.2 Downloading https://wheels.home-assistant.io/musllinux-index/bleak-0.20.2-py3-none-any.whl (135 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 135.6/135.6 kB 7.8 MB/s eta 0:00:00 Collecting dbus-fast<2.0.0,>=1.83.0 (from bleak==0.20.2) Downloading dbus_fast-1.95.2-cp312-cp312-musllinux_1_1_x86_64.whl.metadata (10 kB) Downloading dbus_fast-1.95.2-cp312-cp312-musllinux_1_1_x86_64.whl (4.7 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.7/4.7 MB 21.6 MB/s eta 0:00:00 Installing collected packages: dbus-fast, bleak Attempting uninstall: bleak Found existing installation: bleak 0.13.1a1 Uninstalling bleak-0.13.1a1: Successfully uninstalled bleak-0.13.1a1 Successfully installed bleak-0.20.2 dbus-fast-1.95.2 19:57:21 INFO [main] Power cycle bluetooth hardware Unable to open mgmt_socket Unable to open mgmt_socket END