Komunikacja SEPLOS 3.0
Jako, że stałem się posiadaczem nowego BMS postanowiłem zintegrować go nie tylko z Deye ale też z HA. Co nam to daje? Mamy podgląd online na to co dzieje się aktualnie na baterii z dokładnością do poszczególnych ogniw.
Większość wiadomości w wpisie pochodzi z bardzo ciekawego repo na githubie – syssi.
Co potrzebujemy ? Oczywiście znany już Nam zestaw czyli esp32 z RS485 ( całość była już omawiana na blogu, ale może warto to przypomnieć). Poniżej schemat połączenia:

Dodajemy nasze nowe urządzenie do ESPHOME i wgrywamy poniższy kod:
- Urządzenie ALL-IN-ONE
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 |
substitutions: name: seplos-bms device_description: "Monitor a Seplos BMS via RS485" external_components_source: github://syssi/esphome-seplos-bms@main tx_pin: GPIO22 rx_pin: GPIO21 esphome: name: ${name} comment: ${device_description} project: name: "syssi.esphome-seplos-bms" version: 1.1.0 esp32: board: wemos_d1_mini32 external_components: - source: ${external_components_source} refresh: 0s wifi: ssid: TWOJA NAZWA SIECI WIFI password: TWOJE HASŁO WIFI ota: platform: esphome password: "TWOJE OTA" logger: level: DEBUG api: encryption: key: "TWOJE API" web_server: port: 80 output: - platform: gpio id: ENABLE_PIN # Enable the chip pin: number: GPIO19 inverted: true - platform: gpio id: SE_PIN # Enable autodirection pin: number: GPIO17 inverted: true - platform: gpio id: ENABLE_5V_PIN # Enable 5V pin for RS485 chip pin: number: GPIO16 inverted: true # api: uart: - id: uart_0 baud_rate: 19200 tx_pin: ${tx_pin} rx_pin: ${rx_pin} debug: direction: BOTH dummy_receiver: false modbus: - id: modbus0 uart_id: uart_0 send_wait_time: 200ms modbus_controller: - id: bms0 address: 0x00 modbus_id: modbus0 command_throttle: 200ms update_interval: 10s sensor: # 1000 Pack Voltage R UINT16 2 10mV - platform: modbus_controller modbus_controller_id: bms0 id: total_voltage name: "${name} total voltage" address: 0x1000 register_type: read value_type: U_WORD unit_of_measurement: "V" device_class: voltage state_class: measurement accuracy_decimals: 2 filters: - multiply: 0.01 # 1001 Current R INT16 2 10mA - platform: modbus_controller modbus_controller_id: bms0 id: BMS_current name: "${name} current" address: 0x1001 register_type: read value_type: S_WORD unit_of_measurement: "A" device_class: current state_class: measurement accuracy_decimals: 2 filters: - multiply: 0.01 # 1002 Remaining capacity R UINT16 2 10mAH - platform: modbus_controller modbus_controller_id: bms0 name: "${name} remaining capacity" address: 0x1002 register_type: read value_type: U_WORD unit_of_measurement: "Ah" state_class: measurement accuracy_decimals: 2 filters: - multiply: 0.01 # 1003 Total Capacity R UINT16 2 10mAH - platform: modbus_controller modbus_controller_id: bms0 name: "${name} total capacity" address: 0x1003 register_type: read value_type: U_WORD unit_of_measurement: "Ah" state_class: measurement accuracy_decimals: 2 filters: - multiply: 0.01 # 1004 Total Discharge Capacity R UINT16 2 10AH - platform: modbus_controller modbus_controller_id: bms0 name: "${name} total discharge capacity" address: 0x1004 register_type: read value_type: U_WORD unit_of_measurement: "Ah" state_class: measurement accuracy_decimals: 2 filters: - multiply: 0.01 # 1005 SOC R UINT16 2 0.1% - platform: modbus_controller modbus_controller_id: bms0 name: "${name} state of charge" address: 0x1005 register_type: read value_type: U_WORD unit_of_measurement: "%" device_class: battery state_class: measurement accuracy_decimals: 0 filters: - multiply: 0.1 # 1006 SOH R UINT16 2 0.1% - platform: modbus_controller modbus_controller_id: bms0 name: "${name} state of health" address: 0x1006 register_type: read value_type: U_WORD unit_of_measurement: "%" state_class: measurement accuracy_decimals: 0 filters: - multiply: 0.1 # 1007 Cycle R UINT16 2 1 - platform: modbus_controller modbus_controller_id: bms0 name: "${name} cycle" address: 0x1007 register_type: read value_type: U_WORD unit_of_measurement: "" state_class: measurement accuracy_decimals: 0 # 1008 Averag of Cell Votage R UINT16 2 1mV - platform: modbus_controller modbus_controller_id: bms0 name: "${name} average cell voltage" address: 0x1008 register_type: read value_type: U_WORD unit_of_measurement: "V" device_class: voltage state_class: measurement accuracy_decimals: 3 filters: - multiply: 0.001 # 1009 Averag of Cell Temperature R UINT16 2 0.1K - platform: modbus_controller modbus_controller_id: bms0 name: "${name} average cell temperature" address: 0x1009 register_type: read value_type: S_WORD unit_of_measurement: "°C" device_class: temperature state_class: measurement accuracy_decimals: 1 filters: - offset: -2731.5 - multiply: 0.1 # 100A Max Cell Voltage R UINT16 2 1mV - platform: modbus_controller modbus_controller_id: bms0 name: "${name} max cell voltage" id: max_cell_voltage address: 0x100A register_type: read value_type: U_WORD unit_of_measurement: "V" device_class: voltage state_class: measurement accuracy_decimals: 3 filters: - multiply: 0.001 # 100B Min Cell Voltage R UINT16 2 1mV - platform: modbus_controller modbus_controller_id: bms0 name: "${name} min cell voltage" id: min_cell_voltage address: 0x100B register_type: read value_type: U_WORD unit_of_measurement: "V" device_class: voltage state_class: measurement accuracy_decimals: 3 filters: - multiply: 0.001 # 100C Max Cell Temperature R UINT16 2 0.1K - platform: modbus_controller modbus_controller_id: bms0 name: "${name} max cell temperature" address: 0x100C register_type: read value_type: S_WORD unit_of_measurement: "°C" device_class: temperature state_class: measurement accuracy_decimals: 1 filters: - offset: -2731.5 - multiply: 0.1 # 100D Min Cell Temperature R UINT16 2 0.1K - platform: modbus_controller modbus_controller_id: bms0 name: "${name} min cell temperature" address: 0x100D register_type: read value_type: S_WORD unit_of_measurement: "°C" device_class: temperature state_class: measurement accuracy_decimals: 1 filters: - offset: -2731.5 - multiply: 0.1 # 100F MaxDisCurt R UINT16 2 1A # Max Discharging Current # 1010 MaxChgCurt R UINT16 2 1A # Max Charging Current # 1100 Cell1 Voltage R UINT16 2 1mV - platform: modbus_controller modbus_controller_id: bms0 name: "${name} cell voltage 1" address: 0x1100 register_type: read value_type: U_WORD unit_of_measurement: "V" device_class: voltage state_class: measurement accuracy_decimals: 3 filters: - multiply: 0.001 # 1101 Cell2 Voltage R UINT16 2 1mV - platform: modbus_controller modbus_controller_id: bms0 name: "${name} cell voltage 2" address: 0x1101 register_type: read value_type: U_WORD unit_of_measurement: "V" device_class: voltage state_class: measurement accuracy_decimals: 3 filters: - multiply: 0.001 # 1102 Cell3 Voltage R UINT16 2 1mV - platform: modbus_controller modbus_controller_id: bms0 name: "${name} cell voltage 3" address: 0x1102 register_type: read value_type: U_WORD unit_of_measurement: "V" device_class: voltage state_class: measurement accuracy_decimals: 3 filters: - multiply: 0.001 # 1103 Cell4 Voltage R UINT16 2 1mV - platform: modbus_controller modbus_controller_id: bms0 name: "${name} cell voltage 4" address: 0x1103 register_type: read value_type: U_WORD unit_of_measurement: "V" device_class: voltage state_class: measurement accuracy_decimals: 3 filters: - multiply: 0.001 # 1104 Cell5 Voltage R UINT16 2 1mV - platform: modbus_controller modbus_controller_id: bms0 name: "${name} cell voltage 5" address: 0x1104 register_type: read value_type: U_WORD unit_of_measurement: "V" device_class: voltage state_class: measurement accuracy_decimals: 3 filters: - multiply: 0.001 # 1105 Cell6 Voltage R UINT16 2 1mV - platform: modbus_controller modbus_controller_id: bms0 name: "${name} cell voltage 6" address: 0x1105 register_type: read value_type: U_WORD unit_of_measurement: "V" device_class: voltage state_class: measurement accuracy_decimals: 3 filters: - multiply: 0.001 # 1106 Cell7 Voltage R UINT16 2 1mV - platform: modbus_controller modbus_controller_id: bms0 name: "${name} cell voltage 7" address: 0x1106 register_type: read value_type: U_WORD unit_of_measurement: "V" device_class: voltage state_class: measurement accuracy_decimals: 3 filters: - multiply: 0.001 # 1107 Cell8 Voltage R UINT16 2 1mV - platform: modbus_controller modbus_controller_id: bms0 name: "${name} cell voltage 8" address: 0x1107 register_type: read value_type: U_WORD unit_of_measurement: "V" device_class: voltage state_class: measurement accuracy_decimals: 3 filters: - multiply: 0.001 # 1108 Cell9 Voltage R UINT16 2 1mV - platform: modbus_controller modbus_controller_id: bms0 name: "${name} cell voltage 9" address: 0x1108 register_type: read value_type: U_WORD unit_of_measurement: "V" device_class: voltage state_class: measurement accuracy_decimals: 3 filters: - multiply: 0.001 # 1109 Cell10 Voltage R UINT16 2 1mV - platform: modbus_controller modbus_controller_id: bms0 name: "${name} cell voltage 10" address: 0x1109 register_type: read value_type: U_WORD unit_of_measurement: "V" device_class: voltage state_class: measurement accuracy_decimals: 3 filters: - multiply: 0.001 # 110A Cell11 Voltage R UINT16 2 1mV - platform: modbus_controller modbus_controller_id: bms0 name: "${name} cell voltage 11" address: 0x110A register_type: read value_type: U_WORD unit_of_measurement: "V" device_class: voltage state_class: measurement accuracy_decimals: 3 filters: - multiply: 0.001 # 110B Cell12 Voltage R UINT16 2 1mV - platform: modbus_controller modbus_controller_id: bms0 name: "${name} cell voltage 12" address: 0x110B register_type: read value_type: U_WORD unit_of_measurement: "V" device_class: voltage state_class: measurement accuracy_decimals: 3 filters: - multiply: 0.001 # 110C Cell13 Voltage R UINT16 2 1mV - platform: modbus_controller modbus_controller_id: bms0 name: "${name} cell voltage 13" address: 0x110C register_type: read value_type: U_WORD unit_of_measurement: "V" device_class: voltage state_class: measurement accuracy_decimals: 3 filters: - multiply: 0.001 # 110D Cell14 Voltage R UINT16 2 1mV - platform: modbus_controller modbus_controller_id: bms0 name: "${name} cell voltage 14" address: 0x110D register_type: read value_type: U_WORD unit_of_measurement: "V" device_class: voltage state_class: measurement accuracy_decimals: 3 filters: - multiply: 0.001 # 110E Cell15 Voltage R UINT16 2 1mV - platform: modbus_controller modbus_controller_id: bms0 name: "${name} cell voltage 15" address: 0x110E register_type: read value_type: U_WORD unit_of_measurement: "V" device_class: voltage state_class: measurement accuracy_decimals: 3 filters: - multiply: 0.001 # 110F Cell16 Voltage R UINT16 2 1mV - platform: modbus_controller modbus_controller_id: bms0 name: "${name} cell voltage 16" address: 0x110F register_type: read value_type: U_WORD unit_of_measurement: "V" device_class: voltage state_class: measurement accuracy_decimals: 3 filters: - multiply: 0.001 # 1110 Cell temperature 1 R UINT16 2 0.1K - platform: modbus_controller modbus_controller_id: bms0 name: "${name} cell temperature 1" address: 0x1110 register_type: read value_type: S_WORD unit_of_measurement: "°C" device_class: temperature state_class: measurement accuracy_decimals: 1 filters: - offset: -2731.5 - multiply: 0.1 # 1111 Cell temperature 2 R UINT16 2 0.1K - platform: modbus_controller modbus_controller_id: bms0 name: "${name} cell temperature 2" address: 0x1111 register_type: read value_type: S_WORD unit_of_measurement: "°C" device_class: temperature state_class: measurement accuracy_decimals: 1 filters: - offset: -2731.5 - multiply: 0.1 # 1112 Cell temperature 3 R UINT16 2 0.1K - platform: modbus_controller modbus_controller_id: bms0 name: "${name} cell temperature 3" address: 0x1112 register_type: read value_type: S_WORD unit_of_measurement: "°C" device_class: temperature state_class: measurement accuracy_decimals: 1 filters: - offset: -2731.5 - multiply: 0.1 # 1113 Cell temperature 4 R UINT16 2 0.1K - platform: modbus_controller modbus_controller_id: bms0 name: "${name} cell temperature 4" address: 0x1113 register_type: read value_type: S_WORD unit_of_measurement: "°C" device_class: temperature state_class: measurement accuracy_decimals: 1 filters: - offset: -2731.5 - multiply: 0.1 # 1118 Environment Temperature R UINT16 2 0.1K - platform: modbus_controller modbus_controller_id: bms0 name: "${name} environment temperature" address: 0x1118 register_type: read value_type: S_WORD unit_of_measurement: "°C" device_class: temperature state_class: measurement accuracy_decimals: 1 filters: - offset: -2731.5 - multiply: 0.1 # 1119 Power temperature R UINT16 2 0.1K - platform: modbus_controller modbus_controller_id: bms0 name: "${name} mosfet temperature" address: 0x1119 register_type: read value_type: S_WORD unit_of_measurement: "°C" device_class: temperature state_class: measurement accuracy_decimals: 1 filters: - offset: -273.15 - multiply: 0.01 # Pack Info C # # 1200 Cells voltage 08-01low alarm state R HEX 1 1:alarm # 1208 Cells voltage 16-09low alarm state R HEX 1 1:alarm # 1210 Cells voltage 08-01high alarm state R HEX 1 1:alarm # 1218 Cells voltage 16-09high alarm state R HEX 1 1:alarm # 1220 Cell 08-01 temperature Tlow alarm state R HEX 1 1:alarm # 1228 Cell 08-01 temperature high alarm state R HEX 1 1:alarm # 1230 Cell 08-01 equalization event code R HEX 1 1:on 0:off # 1238 Cell 16-09 equalization event code R HEX 1 1:on 0:off # 1240 System state code R HEX 1 See TB09 # 1248 Voltage event code R HEX 1 See TB02 # 1250 Cells Temperature event code R HEX 1 See TB03 # 1258 Environment and power Temperature event code R HEX 1 See TB04 # 1260 Current event code1 R HEX 1 See TB05 # 1268 Current event code2 R HEX 1 See TB16 # 1270 The residual capacity code R HEX 1 See TB06 # System Parameter reg. 1300...1367 # System Function reg. 1400...1448 # System Control reg. 1500...1519 # History Info reg. 1600...1627 # Version Info reg. 1700...1724 # PCS Control reg. 1800...1823 # EMS Info A reg. 2000...2019 # EMS Info B reg. 2100...2115 # EMS Info C reg. 2200...2248 # # See docs/XZH BMS Modbus-RTU Protocol.pdf ############################################### DELTA ########################################### - platform: template # Obliczanie różnicy name: "${name} delta V cell" unit_of_measurement: "V" accuracy_decimals: 3 device_class: power state_class: "measurement" lambda: |- return (id(max_cell_voltage).state - id(min_cell_voltage).state); update_interval: 5s filters: - multiply: 1 - platform: template # Obliczanie mocy name: "${name} power BMS" unit_of_measurement: "W" accuracy_decimals: 0 device_class: power state_class: "measurement" lambda: |- return (id(total_voltage).state * id(BMS_current).state); update_interval: 5s ############################################ SETTINGS ################################################ - platform: modbus_controller modbus_controller_id: bms0 id: Battery_high_voltage_recover name: "${name} Battery high voltage recover" address: 0x1302 register_type: read value_type: U_WORD unit_of_measurement: "V" entity_category: diagnostic state_class: measurement accuracy_decimals: 2 filters: - multiply: 0.01 - platform: modbus_controller modbus_controller_id: bms0 id: Battery_high_voltage_alarm name: "${name} Battery High voltage alarm" address: 0x1303 register_type: read value_type: U_WORD unit_of_measurement: "V" entity_category: diagnostic state_class: measurement accuracy_decimals: 2 filters: - multiply: 0.01 - platform: modbus_controller modbus_controller_id: bms0 id: Battery_over_voltage_recover name: "${name} Battery over voltage recover" address: 0x1304 register_type: read value_type: U_WORD unit_of_measurement: "V" entity_category: diagnostic state_class: measurement accuracy_decimals: 2 filters: - multiply: 0.01 - platform: modbus_controller modbus_controller_id: bms0 id: Battery_over_voltage_protection name: "${name} Battery over voltage protection" address: 0x1305 register_type: read value_type: U_WORD unit_of_measurement: "V" entity_category: diagnostic state_class: measurement accuracy_decimals: 2 filters: - multiply: 0.01 - platform: modbus_controller modbus_controller_id: bms0 id: Battery_low_voltage_recover name: "${name} Battery low voltage recover" address: 0x1306 register_type: read value_type: U_WORD unit_of_measurement: "V" entity_category: diagnostic state_class: measurement accuracy_decimals: 2 filters: - multiply: 0.01 - platform: modbus_controller modbus_controller_id: bms0 id: Battery_low_voltage_alarm name: "${name} Battery low voltage alarm" address: 0x1307 register_type: read value_type: U_WORD unit_of_measurement: "V" entity_category: diagnostic state_class: measurement accuracy_decimals: 2 filters: - multiply: 0.01 - platform: modbus_controller modbus_controller_id: bms0 id: Battery_under_voltage_recover name: "${name} Battery under voltage recover" address: 0x1308 register_type: read value_type: U_WORD unit_of_measurement: "V" entity_category: diagnostic state_class: measurement accuracy_decimals: 2 filters: - multiply: 0.01 - platform: modbus_controller modbus_controller_id: bms0 id: Battery_under_voltage_protection name: "${name} Battery under voltage protection" address: 0x1309 register_type: read value_type: U_WORD unit_of_measurement: "V" entity_category: diagnostic state_class: measurement accuracy_decimals: 2 filters: - multiply: 0.01 - platform: modbus_controller modbus_controller_id: bms0 id: Cell_high_voltage_recover name: "${name} Cell high voltage recover" address: 0x130A register_type: read value_type: U_WORD unit_of_measurement: "V" entity_category: diagnostic state_class: measurement accuracy_decimals: 2 filters: - multiply: 0.001 - platform: modbus_controller modbus_controller_id: bms0 id: Cell_high_voltage_alarm name: "${name} Cell high voltage alarm" address: 0x130B register_type: read value_type: U_WORD unit_of_measurement: "V" entity_category: diagnostic state_class: measurement accuracy_decimals: 2 filters: - multiply: 0.001 - platform: modbus_controller modbus_controller_id: bms0 id: Cell_over_voltage_recover name: "${name} Cell over voltage recover" address: 0x130C register_type: read value_type: U_WORD unit_of_measurement: "V" entity_category: diagnostic state_class: measurement accuracy_decimals: 2 filters: - multiply: 0.001 - platform: modbus_controller modbus_controller_id: bms0 id: Cell_over_voltage_protection name: "${name} Cell over voltage protection" address: 0x130D register_type: read value_type: U_WORD unit_of_measurement: "V" entity_category: diagnostic state_class: measurement accuracy_decimals: 2 filters: - multiply: 0.001 - platform: modbus_controller modbus_controller_id: bms0 id: Cell_low_voltage_recover name: "${name} Cell low voltage recover" address: 0x130E register_type: read value_type: U_WORD unit_of_measurement: "V" entity_category: diagnostic state_class: measurement accuracy_decimals: 2 filters: - multiply: 0.001 - platform: modbus_controller modbus_controller_id: bms0 id: Cell_low_voltage_alarm name: "${name} Cell low voltage alarm" address: 0x130F register_type: read value_type: U_WORD unit_of_measurement: "V" entity_category: diagnostic state_class: measurement accuracy_decimals: 2 filters: - multiply: 0.001 - platform: modbus_controller modbus_controller_id: bms0 id: Cell_under_voltage_recover name: "${name} Cell under voltage recover" address: 0x1310 register_type: read value_type: U_WORD unit_of_measurement: "V" entity_category: diagnostic state_class: measurement accuracy_decimals: 2 filters: - multiply: 0.001 - platform: modbus_controller modbus_controller_id: bms0 id: Cell_under_voltage_protection name: "${name} Cell under voltage protection" address: 0x1311 register_type: read value_type: U_WORD unit_of_measurement: "V" entity_category: diagnostic state_class: measurement accuracy_decimals: 2 filters: - multiply: 0.001 - platform: modbus_controller modbus_controller_id: bms0 id: Cell_under_voltage_fault name: "${name} Cell under voltage fault" address: 0x1312 register_type: read value_type: U_WORD unit_of_measurement: "V" entity_category: diagnostic state_class: measurement accuracy_decimals: 2 filters: - multiply: 0.001 - platform: modbus_controller modbus_controller_id: bms0 id: Cell_diff_protection name: "${name} Cell diff protection" address: 0x1313 register_type: read value_type: U_WORD unit_of_measurement: "V" entity_category: diagnostic state_class: measurement accuracy_decimals: 2 filters: - multiply: 0.001 - platform: modbus_controller modbus_controller_id: bms0 id: Secondary_charge_current_protection_cell name: "${name} Secondary charge current protection" address: 0x1314 register_type: read value_type: S_WORD unit_of_measurement: "mA" entity_category: diagnostic state_class: measurement accuracy_decimals: 2 filters: - multiply: 0.001 - platform: modbus_controller modbus_controller_id: bms0 id: Charge_high_current_recover name: "${name} Charge high current recover" address: 0x1315 register_type: read value_type: U_WORD unit_of_measurement: "A" entity_category: diagnostic state_class: measurement accuracy_decimals: 2 - platform: modbus_controller modbus_controller_id: bms0 id: Charge_high_current_alarm name: "${name} Charge high current alarm" address: 0x1316 register_type: read value_type: S_WORD unit_of_measurement: "A" entity_category: diagnostic state_class: measurement accuracy_decimals: 2 - platform: modbus_controller modbus_controller_id: bms0 id: Charge_over_current_protection name: "${name} Charge over current protection" address: 0x1317 register_type: read value_type: U_WORD unit_of_measurement: "A" entity_category: diagnostic state_class: measurement accuracy_decimals: 2 - platform: modbus_controller modbus_controller_id: bms0 id: Charge_over_current_time_delay name: "${name} Charge over current time delay" address: 0x1318 register_type: read value_type: S_WORD unit_of_measurement: "s" entity_category: diagnostic state_class: measurement accuracy_decimals: 0 filters: - multiply: 0.1 - platform: modbus_controller modbus_controller_id: bms0 id: Secondary_charge_current_protection name: "${name} Secondary charge current protection" address: 0x1319 register_type: read value_type: S_WORD unit_of_measurement: "A" entity_category: diagnostic state_class: measurement accuracy_decimals: 2 - platform: modbus_controller modbus_controller_id: bms0 id: Secondary_charge_current_time_delay name: "${name} Secondary charge current time delay" address: 0x131A register_type: read value_type: S_WORD unit_of_measurement: "ms" entity_category: diagnostic state_class: measurement accuracy_decimals: 0 - platform: modbus_controller modbus_controller_id: bms0 id: Discharge_low_current_recover name: "${name} Discharge low current recover" address: 0x131B register_type: read value_type: S_WORD unit_of_measurement: "A" entity_category: diagnostic state_class: measurement accuracy_decimals: 2 - platform: modbus_controller modbus_controller_id: bms0 id: Discharge_low_current_alarm name: "${name} Discharge low current alarm" address: 0x131C register_type: read value_type: S_WORD unit_of_measurement: "A" entity_category: diagnostic state_class: measurement accuracy_decimals: 2 - platform: modbus_controller modbus_controller_id: bms0 id: Discharge_over_current_protection name: "${name} Discharge over current protection" address: 0x131D register_type: read value_type: U_WORD unit_of_measurement: "A" entity_category: diagnostic state_class: measurement accuracy_decimals: 2 - platform: modbus_controller modbus_controller_id: bms0 id: Discharge_over_current_time_delay name: "${name} Discharge over current time delay" address: 0x131E register_type: read value_type: S_WORD unit_of_measurement: "s" entity_category: diagnostic state_class: measurement accuracy_decimals: 0 filters: - multiply: 0.1 - platform: modbus_controller modbus_controller_id: bms0 id: Secondary_discharge_current_protection name: "${name} Secondary discharge current protection" address: 0x131F register_type: read value_type: U_WORD unit_of_measurement: "A" entity_category: diagnostic state_class: measurement accuracy_decimals: 2 - platform: modbus_controller modbus_controller_id: bms0 id: Secondary_discharge_current_time name: "${name} Secondary discharge current time" address: 0x1320 register_type: read value_type: S_WORD unit_of_measurement: "ms" entity_category: diagnostic state_class: measurement accuracy_decimals: 0 |
2. ESP32 + RS485
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 |
substitutions: name: seplos-bms device_description: "Monitor a Seplos BMS via RS485" external_components_source: github://syssi/esphome-seplos-bms@main tx_pin: GPIO17 rx_pin: GPIO16 esphome: name: ${name} comment: ${device_description} project: name: "syssi.esphome-seplos-bms" version: 1.1.0 esp32: board: wemos_d1_mini32 external_components: - source: ${external_components_source} refresh: 0s wifi: ssid: TWOJA NAZWA SIECI WIFI password: TWOJE HASŁO WIFI ota: password: "TWOJE OTA" logger: level: DEBUG api: encryption: key: "TWOJE API" web_server: port: 80 uart: - id: uart_0 baud_rate: 19200 tx_pin: ${tx_pin} rx_pin: ${rx_pin} debug: direction: BOTH dummy_receiver: false modbus: - id: modbus0 uart_id: uart_0 send_wait_time: 200ms modbus_controller: - id: bms0 address: 0x00 modbus_id: modbus0 command_throttle: 200ms update_interval: 10s sensor: # 1000 Pack Voltage R UINT16 2 10mV - platform: modbus_controller modbus_controller_id: bms0 id: total_voltage name: "${name} total voltage" address: 0x1000 register_type: read value_type: U_WORD unit_of_measurement: "V" device_class: voltage state_class: measurement accuracy_decimals: 2 filters: - multiply: 0.01 # 1001 Current R INT16 2 10mA - platform: modbus_controller modbus_controller_id: bms0 id: BMS_current name: "${name} current" address: 0x1001 register_type: read value_type: S_WORD unit_of_measurement: "A" device_class: current state_class: measurement accuracy_decimals: 2 filters: - multiply: 0.01 # 1002 Remaining capacity R UINT16 2 10mAH - platform: modbus_controller modbus_controller_id: bms0 name: "${name} remaining capacity" address: 0x1002 register_type: read value_type: U_WORD unit_of_measurement: "Ah" state_class: measurement accuracy_decimals: 2 filters: - multiply: 0.01 # 1003 Total Capacity R UINT16 2 10mAH - platform: modbus_controller modbus_controller_id: bms0 name: "${name} total capacity" address: 0x1003 register_type: read value_type: U_WORD unit_of_measurement: "Ah" state_class: measurement accuracy_decimals: 2 filters: - multiply: 0.01 # 1004 Total Discharge Capacity R UINT16 2 10AH - platform: modbus_controller modbus_controller_id: bms0 name: "${name} total discharge capacity" address: 0x1004 register_type: read value_type: U_WORD unit_of_measurement: "Ah" state_class: measurement accuracy_decimals: 2 filters: - multiply: 0.01 # 1005 SOC R UINT16 2 0.1% - platform: modbus_controller modbus_controller_id: bms0 name: "${name} state of charge" address: 0x1005 register_type: read value_type: U_WORD unit_of_measurement: "%" device_class: battery state_class: measurement accuracy_decimals: 0 filters: - multiply: 0.1 # 1006 SOH R UINT16 2 0.1% - platform: modbus_controller modbus_controller_id: bms0 name: "${name} state of health" address: 0x1006 register_type: read value_type: U_WORD unit_of_measurement: "%" state_class: measurement accuracy_decimals: 0 filters: - multiply: 0.1 # 1007 Cycle R UINT16 2 1 - platform: modbus_controller modbus_controller_id: bms0 name: "${name} cycle" address: 0x1007 register_type: read value_type: U_WORD unit_of_measurement: "" state_class: measurement accuracy_decimals: 0 # 1008 Averag of Cell Votage R UINT16 2 1mV - platform: modbus_controller modbus_controller_id: bms0 name: "${name} average cell voltage" address: 0x1008 register_type: read value_type: U_WORD unit_of_measurement: "V" device_class: voltage state_class: measurement accuracy_decimals: 3 filters: - multiply: 0.001 # 1009 Averag of Cell Temperature R UINT16 2 0.1K - platform: modbus_controller modbus_controller_id: bms0 name: "${name} average cell temperature" address: 0x1009 register_type: read value_type: S_WORD unit_of_measurement: "°C" device_class: temperature state_class: measurement accuracy_decimals: 1 filters: - offset: -2731.5 - multiply: 0.1 # 100A Max Cell Voltage R UINT16 2 1mV - platform: modbus_controller modbus_controller_id: bms0 name: "${name} max cell voltage" id: max_cell_voltage address: 0x100A register_type: read value_type: U_WORD unit_of_measurement: "V" device_class: voltage state_class: measurement accuracy_decimals: 3 filters: - multiply: 0.001 # 100B Min Cell Voltage R UINT16 2 1mV - platform: modbus_controller modbus_controller_id: bms0 name: "${name} min cell voltage" id: min_cell_voltage address: 0x100B register_type: read value_type: U_WORD unit_of_measurement: "V" device_class: voltage state_class: measurement accuracy_decimals: 3 filters: - multiply: 0.001 # 100C Max Cell Temperature R UINT16 2 0.1K - platform: modbus_controller modbus_controller_id: bms0 name: "${name} max cell temperature" address: 0x100C register_type: read value_type: S_WORD unit_of_measurement: "°C" device_class: temperature state_class: measurement accuracy_decimals: 1 filters: - offset: -2731.5 - multiply: 0.1 # 100D Min Cell Temperature R UINT16 2 0.1K - platform: modbus_controller modbus_controller_id: bms0 name: "${name} min cell temperature" address: 0x100D register_type: read value_type: S_WORD unit_of_measurement: "°C" device_class: temperature state_class: measurement accuracy_decimals: 1 filters: - offset: -2731.5 - multiply: 0.1 # 100F MaxDisCurt R UINT16 2 1A # Max Discharging Current # 1010 MaxChgCurt R UINT16 2 1A # Max Charging Current # 1100 Cell1 Voltage R UINT16 2 1mV - platform: modbus_controller modbus_controller_id: bms0 name: "${name} cell voltage 1" address: 0x1100 register_type: read value_type: U_WORD unit_of_measurement: "V" device_class: voltage state_class: measurement accuracy_decimals: 3 filters: - multiply: 0.001 # 1101 Cell2 Voltage R UINT16 2 1mV - platform: modbus_controller modbus_controller_id: bms0 name: "${name} cell voltage 2" address: 0x1101 register_type: read value_type: U_WORD unit_of_measurement: "V" device_class: voltage state_class: measurement accuracy_decimals: 3 filters: - multiply: 0.001 # 1102 Cell3 Voltage R UINT16 2 1mV - platform: modbus_controller modbus_controller_id: bms0 name: "${name} cell voltage 3" address: 0x1102 register_type: read value_type: U_WORD unit_of_measurement: "V" device_class: voltage state_class: measurement accuracy_decimals: 3 filters: - multiply: 0.001 # 1103 Cell4 Voltage R UINT16 2 1mV - platform: modbus_controller modbus_controller_id: bms0 name: "${name} cell voltage 4" address: 0x1103 register_type: read value_type: U_WORD unit_of_measurement: "V" device_class: voltage state_class: measurement accuracy_decimals: 3 filters: - multiply: 0.001 # 1104 Cell5 Voltage R UINT16 2 1mV - platform: modbus_controller modbus_controller_id: bms0 name: "${name} cell voltage 5" address: 0x1104 register_type: read value_type: U_WORD unit_of_measurement: "V" device_class: voltage state_class: measurement accuracy_decimals: 3 filters: - multiply: 0.001 # 1105 Cell6 Voltage R UINT16 2 1mV - platform: modbus_controller modbus_controller_id: bms0 name: "${name} cell voltage 6" address: 0x1105 register_type: read value_type: U_WORD unit_of_measurement: "V" device_class: voltage state_class: measurement accuracy_decimals: 3 filters: - multiply: 0.001 # 1106 Cell7 Voltage R UINT16 2 1mV - platform: modbus_controller modbus_controller_id: bms0 name: "${name} cell voltage 7" address: 0x1106 register_type: read value_type: U_WORD unit_of_measurement: "V" device_class: voltage state_class: measurement accuracy_decimals: 3 filters: - multiply: 0.001 # 1107 Cell8 Voltage R UINT16 2 1mV - platform: modbus_controller modbus_controller_id: bms0 name: "${name} cell voltage 8" address: 0x1107 register_type: read value_type: U_WORD unit_of_measurement: "V" device_class: voltage state_class: measurement accuracy_decimals: 3 filters: - multiply: 0.001 # 1108 Cell9 Voltage R UINT16 2 1mV - platform: modbus_controller modbus_controller_id: bms0 name: "${name} cell voltage 9" address: 0x1108 register_type: read value_type: U_WORD unit_of_measurement: "V" device_class: voltage state_class: measurement accuracy_decimals: 3 filters: - multiply: 0.001 # 1109 Cell10 Voltage R UINT16 2 1mV - platform: modbus_controller modbus_controller_id: bms0 name: "${name} cell voltage 10" address: 0x1109 register_type: read value_type: U_WORD unit_of_measurement: "V" device_class: voltage state_class: measurement accuracy_decimals: 3 filters: - multiply: 0.001 # 110A Cell11 Voltage R UINT16 2 1mV - platform: modbus_controller modbus_controller_id: bms0 name: "${name} cell voltage 11" address: 0x110A register_type: read value_type: U_WORD unit_of_measurement: "V" device_class: voltage state_class: measurement accuracy_decimals: 3 filters: - multiply: 0.001 # 110B Cell12 Voltage R UINT16 2 1mV - platform: modbus_controller modbus_controller_id: bms0 name: "${name} cell voltage 12" address: 0x110B register_type: read value_type: U_WORD unit_of_measurement: "V" device_class: voltage state_class: measurement accuracy_decimals: 3 filters: - multiply: 0.001 # 110C Cell13 Voltage R UINT16 2 1mV - platform: modbus_controller modbus_controller_id: bms0 name: "${name} cell voltage 13" address: 0x110C register_type: read value_type: U_WORD unit_of_measurement: "V" device_class: voltage state_class: measurement accuracy_decimals: 3 filters: - multiply: 0.001 # 110D Cell14 Voltage R UINT16 2 1mV - platform: modbus_controller modbus_controller_id: bms0 name: "${name} cell voltage 14" address: 0x110D register_type: read value_type: U_WORD unit_of_measurement: "V" device_class: voltage state_class: measurement accuracy_decimals: 3 filters: - multiply: 0.001 # 110E Cell15 Voltage R UINT16 2 1mV - platform: modbus_controller modbus_controller_id: bms0 name: "${name} cell voltage 15" address: 0x110E register_type: read value_type: U_WORD unit_of_measurement: "V" device_class: voltage state_class: measurement accuracy_decimals: 3 filters: - multiply: 0.001 # 110F Cell16 Voltage R UINT16 2 1mV - platform: modbus_controller modbus_controller_id: bms0 name: "${name} cell voltage 16" address: 0x110F register_type: read value_type: U_WORD unit_of_measurement: "V" device_class: voltage state_class: measurement accuracy_decimals: 3 filters: - multiply: 0.001 # 1110 Cell temperature 1 R UINT16 2 0.1K - platform: modbus_controller modbus_controller_id: bms0 name: "${name} cell temperature 1" address: 0x1110 register_type: read value_type: S_WORD unit_of_measurement: "°C" device_class: temperature state_class: measurement accuracy_decimals: 1 filters: - offset: -2731.5 - multiply: 0.1 # 1111 Cell temperature 2 R UINT16 2 0.1K - platform: modbus_controller modbus_controller_id: bms0 name: "${name} cell temperature 2" address: 0x1111 register_type: read value_type: S_WORD unit_of_measurement: "°C" device_class: temperature state_class: measurement accuracy_decimals: 1 filters: - offset: -2731.5 - multiply: 0.1 # 1112 Cell temperature 3 R UINT16 2 0.1K - platform: modbus_controller modbus_controller_id: bms0 name: "${name} cell temperature 3" address: 0x1112 register_type: read value_type: S_WORD unit_of_measurement: "°C" device_class: temperature state_class: measurement accuracy_decimals: 1 filters: - offset: -2731.5 - multiply: 0.1 # 1113 Cell temperature 4 R UINT16 2 0.1K - platform: modbus_controller modbus_controller_id: bms0 name: "${name} cell temperature 4" address: 0x1113 register_type: read value_type: S_WORD unit_of_measurement: "°C" device_class: temperature state_class: measurement accuracy_decimals: 1 filters: - offset: -2731.5 - multiply: 0.1 # 1118 Environment Temperature R UINT16 2 0.1K - platform: modbus_controller modbus_controller_id: bms0 name: "${name} environment temperature" address: 0x1118 register_type: read value_type: S_WORD unit_of_measurement: "°C" device_class: temperature state_class: measurement accuracy_decimals: 1 filters: - offset: -2731.5 - multiply: 0.1 # 1119 Power temperature R UINT16 2 0.1K - platform: modbus_controller modbus_controller_id: bms0 name: "${name} mosfet temperature" address: 0x1119 register_type: read value_type: S_WORD unit_of_measurement: "°C" device_class: temperature state_class: measurement accuracy_decimals: 1 filters: - offset: -273.15 - multiply: 0.01 # Pack Info C # # 1200 Cells voltage 08-01low alarm state R HEX 1 1:alarm # 1208 Cells voltage 16-09low alarm state R HEX 1 1:alarm # 1210 Cells voltage 08-01high alarm state R HEX 1 1:alarm # 1218 Cells voltage 16-09high alarm state R HEX 1 1:alarm # 1220 Cell 08-01 temperature Tlow alarm state R HEX 1 1:alarm # 1228 Cell 08-01 temperature high alarm state R HEX 1 1:alarm # 1230 Cell 08-01 equalization event code R HEX 1 1:on 0:off # 1238 Cell 16-09 equalization event code R HEX 1 1:on 0:off # 1240 System state code R HEX 1 See TB09 # 1248 Voltage event code R HEX 1 See TB02 # 1250 Cells Temperature event code R HEX 1 See TB03 # 1258 Environment and power Temperature event code R HEX 1 See TB04 # 1260 Current event code1 R HEX 1 See TB05 # 1268 Current event code2 R HEX 1 See TB16 # 1270 The residual capacity code R HEX 1 See TB06 # System Parameter reg. 1300...1367 # System Function reg. 1400...1448 # System Control reg. 1500...1519 # History Info reg. 1600...1627 # Version Info reg. 1700...1724 # PCS Control reg. 1800...1823 # EMS Info A reg. 2000...2019 # EMS Info B reg. 2100...2115 # EMS Info C reg. 2200...2248 # # See docs/XZH BMS Modbus-RTU Protocol.pdf ############################################### DELTA ########################################### - platform: template # Obliczanie różnicy name: "${name} delta V cell" unit_of_measurement: "V" accuracy_decimals: 3 device_class: power state_class: "measurement" lambda: |- return (id(max_cell_voltage).state - id(min_cell_voltage).state); update_interval: 5s filters: - multiply: 1 - platform: template # Obliczanie mocy name: "${name} power BMS" unit_of_measurement: "W" accuracy_decimals: 0 device_class: power state_class: "measurement" lambda: |- return (id(total_voltage).state * id(BMS_current).state); update_interval: 5s ############################################ SETTINGS ################################################ - platform: modbus_controller modbus_controller_id: bms0 id: Battery_high_voltage_recover name: "${name} Battery high voltage recover" address: 0x1302 register_type: read value_type: U_WORD unit_of_measurement: "V" entity_category: diagnostic state_class: measurement accuracy_decimals: 2 filters: - multiply: 0.01 - platform: modbus_controller modbus_controller_id: bms0 id: Battery_high_voltage_alarm name: "${name} Battery High voltage alarm" address: 0x1303 register_type: read value_type: U_WORD unit_of_measurement: "V" entity_category: diagnostic state_class: measurement accuracy_decimals: 2 filters: - multiply: 0.01 - platform: modbus_controller modbus_controller_id: bms0 id: Battery_over_voltage_recover name: "${name} Battery over voltage recover" address: 0x1304 register_type: read value_type: U_WORD unit_of_measurement: "V" entity_category: diagnostic state_class: measurement accuracy_decimals: 2 filters: - multiply: 0.01 - platform: modbus_controller modbus_controller_id: bms0 id: Battery_over_voltage_protection name: "${name} Battery over voltage protection" address: 0x1305 register_type: read value_type: U_WORD unit_of_measurement: "V" entity_category: diagnostic state_class: measurement accuracy_decimals: 2 filters: - multiply: 0.01 - platform: modbus_controller modbus_controller_id: bms0 id: Battery_low_voltage_recover name: "${name} Battery low voltage recover" address: 0x1306 register_type: read value_type: U_WORD unit_of_measurement: "V" entity_category: diagnostic state_class: measurement accuracy_decimals: 2 filters: - multiply: 0.01 - platform: modbus_controller modbus_controller_id: bms0 id: Battery_low_voltage_alarm name: "${name} Battery low voltage alarm" address: 0x1307 register_type: read value_type: U_WORD unit_of_measurement: "V" entity_category: diagnostic state_class: measurement accuracy_decimals: 2 filters: - multiply: 0.01 - platform: modbus_controller modbus_controller_id: bms0 id: Battery_under_voltage_recover name: "${name} Battery under voltage recover" address: 0x1308 register_type: read value_type: U_WORD unit_of_measurement: "V" entity_category: diagnostic state_class: measurement accuracy_decimals: 2 filters: - multiply: 0.01 - platform: modbus_controller modbus_controller_id: bms0 id: Battery_under_voltage_protection name: "${name} Battery under voltage protection" address: 0x1309 register_type: read value_type: U_WORD unit_of_measurement: "V" entity_category: diagnostic state_class: measurement accuracy_decimals: 2 filters: - multiply: 0.01 - platform: modbus_controller modbus_controller_id: bms0 id: Cell_high_voltage_recover name: "${name} Cell high voltage recover" address: 0x130A register_type: read value_type: U_WORD unit_of_measurement: "V" entity_category: diagnostic state_class: measurement accuracy_decimals: 2 filters: - multiply: 0.001 - platform: modbus_controller modbus_controller_id: bms0 id: Cell_high_voltage_alarm name: "${name} Cell high voltage alarm" address: 0x130B register_type: read value_type: U_WORD unit_of_measurement: "V" entity_category: diagnostic state_class: measurement accuracy_decimals: 2 filters: - multiply: 0.001 - platform: modbus_controller modbus_controller_id: bms0 id: Cell_over_voltage_recover name: "${name} Cell over voltage recover" address: 0x130C register_type: read value_type: U_WORD unit_of_measurement: "V" entity_category: diagnostic state_class: measurement accuracy_decimals: 2 filters: - multiply: 0.001 - platform: modbus_controller modbus_controller_id: bms0 id: Cell_over_voltage_protection name: "${name} Cell over voltage protection" address: 0x130D register_type: read value_type: U_WORD unit_of_measurement: "V" entity_category: diagnostic state_class: measurement accuracy_decimals: 2 filters: - multiply: 0.001 - platform: modbus_controller modbus_controller_id: bms0 id: Cell_low_voltage_recover name: "${name} Cell low voltage recover" address: 0x130E register_type: read value_type: U_WORD unit_of_measurement: "V" entity_category: diagnostic state_class: measurement accuracy_decimals: 2 filters: - multiply: 0.001 - platform: modbus_controller modbus_controller_id: bms0 id: Cell_low_voltage_alarm name: "${name} Cell low voltage alarm" address: 0x130F register_type: read value_type: U_WORD unit_of_measurement: "V" entity_category: diagnostic state_class: measurement accuracy_decimals: 2 filters: - multiply: 0.001 - platform: modbus_controller modbus_controller_id: bms0 id: Cell_under_voltage_recover name: "${name} Cell under voltage recover" address: 0x1310 register_type: read value_type: U_WORD unit_of_measurement: "V" entity_category: diagnostic state_class: measurement accuracy_decimals: 2 filters: - multiply: 0.001 - platform: modbus_controller modbus_controller_id: bms0 id: Cell_under_voltage_protection name: "${name} Cell under voltage protection" address: 0x1311 register_type: read value_type: U_WORD unit_of_measurement: "V" entity_category: diagnostic state_class: measurement accuracy_decimals: 2 filters: - multiply: 0.001 - platform: modbus_controller modbus_controller_id: bms0 id: Cell_under_voltage_fault name: "${name} Cell under voltage fault" address: 0x1312 register_type: read value_type: U_WORD unit_of_measurement: "V" entity_category: diagnostic state_class: measurement accuracy_decimals: 2 filters: - multiply: 0.001 - platform: modbus_controller modbus_controller_id: bms0 id: Cell_diff_protection name: "${name} Cell diff protection" address: 0x1313 register_type: read value_type: U_WORD unit_of_measurement: "V" entity_category: diagnostic state_class: measurement accuracy_decimals: 2 filters: - multiply: 0.001 - platform: modbus_controller modbus_controller_id: bms0 id: Secondary_charge_current_protection_cell name: "${name} Secondary charge current protection" address: 0x1314 register_type: read value_type: S_WORD unit_of_measurement: "mA" entity_category: diagnostic state_class: measurement accuracy_decimals: 2 filters: - multiply: 0.001 - platform: modbus_controller modbus_controller_id: bms0 id: Charge_high_current_recover name: "${name} Charge high current recover" address: 0x1315 register_type: read value_type: U_WORD unit_of_measurement: "A" entity_category: diagnostic state_class: measurement accuracy_decimals: 2 - platform: modbus_controller modbus_controller_id: bms0 id: Charge_high_current_alarm name: "${name} Charge high current alarm" address: 0x1316 register_type: read value_type: S_WORD unit_of_measurement: "A" entity_category: diagnostic state_class: measurement accuracy_decimals: 2 - platform: modbus_controller modbus_controller_id: bms0 id: Charge_over_current_protection name: "${name} Charge over current protection" address: 0x1317 register_type: read value_type: U_WORD unit_of_measurement: "A" entity_category: diagnostic state_class: measurement accuracy_decimals: 2 - platform: modbus_controller modbus_controller_id: bms0 id: Charge_over_current_time_delay name: "${name} Charge over current time delay" address: 0x1318 register_type: read value_type: S_WORD unit_of_measurement: "s" entity_category: diagnostic state_class: measurement accuracy_decimals: 0 filters: - multiply: 0.1 - platform: modbus_controller modbus_controller_id: bms0 id: Secondary_charge_current_protection name: "${name} Secondary charge current protection" address: 0x1319 register_type: read value_type: S_WORD unit_of_measurement: "A" entity_category: diagnostic state_class: measurement accuracy_decimals: 2 - platform: modbus_controller modbus_controller_id: bms0 id: Secondary_charge_current_time_delay name: "${name} Secondary charge current time delay" address: 0x131A register_type: read value_type: S_WORD unit_of_measurement: "ms" entity_category: diagnostic state_class: measurement accuracy_decimals: 0 - platform: modbus_controller modbus_controller_id: bms0 id: Discharge_low_current_recover name: "${name} Discharge low current recover" address: 0x131B register_type: read value_type: S_WORD unit_of_measurement: "A" entity_category: diagnostic state_class: measurement accuracy_decimals: 2 - platform: modbus_controller modbus_controller_id: bms0 id: Discharge_low_current_alarm name: "${name} Discharge low current alarm" address: 0x131C register_type: read value_type: S_WORD unit_of_measurement: "A" entity_category: diagnostic state_class: measurement accuracy_decimals: 2 - platform: modbus_controller modbus_controller_id: bms0 id: Discharge_over_current_protection name: "${name} Discharge over current protection" address: 0x131D register_type: read value_type: U_WORD unit_of_measurement: "A" entity_category: diagnostic state_class: measurement accuracy_decimals: 2 - platform: modbus_controller modbus_controller_id: bms0 id: Discharge_over_current_time_delay name: "${name} Discharge over current time delay" address: 0x131E register_type: read value_type: S_WORD unit_of_measurement: "s" entity_category: diagnostic state_class: measurement accuracy_decimals: 0 filters: - multiply: 0.1 - platform: modbus_controller modbus_controller_id: bms0 id: Secondary_discharge_current_protection name: "${name} Secondary discharge current protection" address: 0x131F register_type: read value_type: U_WORD unit_of_measurement: "A" entity_category: diagnostic state_class: measurement accuracy_decimals: 2 - platform: modbus_controller modbus_controller_id: bms0 id: Secondary_discharge_current_time name: "${name} Secondary discharge current time" address: 0x1320 register_type: read value_type: S_WORD unit_of_measurement: "ms" entity_category: diagnostic state_class: measurement accuracy_decimals: 0 |
Mamy już działające urządzenie w ESPHOME:

Przechodzimy do Ustawienia => Urządzenia oraz usługi => Klikamy w ESPHOME => wybieramy Seplos , zobaczymy wszystkie interesujące nas encje:

Jeżeli wszystkie odczyty są poprawne, możemy przystąpić do wizualizacji naszej baterii.
Udajemy się do naszego dashboard, wybieramy dodaj kartę (w prawym dolnym rogu), następnie wybieramy Edytor konfiguracji YAML:

I wklejamy poniższy kod:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 |
type: vertical-stack cards: - type: horizontal-stack cards: - type: custom:button-card name: Cell Voltage Delta size: 25% entity: sensor.seplos_bms_delta_v_cell show_icon: true show_name: true show_state: true show_label: false label: > [[[ return 'Average Cell: ' + Number.parseFloat(states['sensor.seplos_bms_average_cell_voltage'].state).toFixed(2) + ' V']]] icon: mdi:delta styles: icon: - color: | [[[ if (entity.state < 0.010) return 'darkgreen'; if (entity.state < 0.020) return 'darkorange'; else return 'red'; ]]] card: - font-size: 12px - type: custom:button-card name: Pack Voltage size: 25% entity: sensor.seplos_bms_total_voltage show_icon: true show_name: true show_state: true show_label: true icon: mdi:server styles: icon: - color: | [[[ if (entity.state > 50) return 'darkgreen'; if (entity.state > 55) return 'darkorange'; else return 'red'; ]]] card: - font-size: 12px - type: custom:button-card name: | [[[ if (entity.state < 0) return "Discharging"; else return "Charging"; ]]] size: 25% entity: sensor.seplos_bms_power_bms show_icon: true show_name: true show_state: true show_label: true icon: | [[[ if (entity.state < 0) return "mdi:battery-arrow-down-outline"; else return "mdi:battery-arrow-up-outline"; ]]] styles: icon: - color: | [[[ if (entity.state > 5000) return 'darkred'; if (entity.state > 1000) return 'darkorange'; if (entity.state < -5000) return 'darkred'; if (entity.state < -1000) return 'darkorange'; else return 'darkgreen'; ]]] card: - font-size: 12px - type: horizontal-stack cards: - type: custom:button-card name: SOC size: 25% entity: sensor.seplos_bms_state_of_charge show_icon: true show_name: true show_state: true show_label: true icon: | [[[ if (entity.state > 90) return "mdi:battery"; if (entity.state > 80) return "mdi:battery-90"; if (entity.state > 70) return "mdi:battery-80"; if (entity.state > 60) return "mdi:battery-70"; if (entity.state > 50) return "mdi:battery-60"; if (entity.state > 40) return "mdi:battery-50"; if (entity.state > 30) return "mdi:battery-40"; if (entity.state > 20) return "mdi:battery-30"; if (entity.state > 10) return "mdi:battery-20"; else return "mdi:battery-alert-variant-outline"; ]]] styles: icon: - color: | [[[ if (entity.state > 30 ) return 'darkgreen'; if (entity.state > 15 ) return 'yellow'; else return 'red'; ]]] card: - font-size: 12px - type: custom:button-card name: SOH size: 25% entity: sensor.seplos_bms_state_of_health show_icon: true show_name: true show_state: true show_label: true styles: icon: - color: | [[[ if (entity.state > 99) return 'darkgreen'; if (entity.state > 95) return 'darkorange'; else return 'red'; ]]] card: - font-size: 12px - type: custom:button-card name: Charging Cycles size: 25% entity: sensor.seplos_bms_cycle show_icon: true show_name: true show_state: true show_label: true styles: icon: - color: | [[[ if (entity.state > 5000) return 'darkred'; else return 'darkgreen'; ]]] card: - font-size: 12px - type: horizontal-stack cards: - type: custom:button-card name: Mosfet temperature size: 25% entity: sensor.seplos_bms_mosfet_temperature show_icon: true show_name: true show_state: true show_label: true styles: icon: - color: | [[[ if (entity.state > 18) return 'darkgreen'; if (entity.state > 30) return 'darkorange'; else return 'red'; ]]] card: - font-size: 12px - type: custom:button-card name: Environment temperature size: 25% entity: sensor.seplos_bms_environment_temperature show_icon: true show_name: true show_state: true show_label: true styles: icon: - color: | [[[ if (entity.state > 15) return 'darkgreen'; if (entity.state > 30) return 'darkorange'; else return 'red'; ]]] card: - font-size: 12px - type: custom:button-card name: Max cell temperature size: 25% entity: sensor.seplos_bms_max_cell_temperature show_icon: true show_name: true show_state: true show_label: true styles: icon: - color: | [[[ if (entity.state > 18) return 'darkgreen'; if (entity.state > 30) return 'darkorange'; else return 'red'; ]]] card: - font-size: 12px - type: custom:bar-card direction: up columns: 8 decimal: 3 max: 3.45 min: 3 height: 80px severity: - color: darkred from: 3.45 to: 4 - color: darkorange from: 3.4 to: 3.45 - color: darkgreen from: 3.1 to: 3.4 - color: darkred from: 2.5 to: 3.1 positions: icon: 'off' indicator: inside name: outside style: |- bar-card-value { margin-right: auto; margin-left: auto; margin-bottom: 35px; font-size: 10px; font-weight: normal; text-shadow: 1px 1px #0005; } bar-card-name { margin-right: auto; margin-left: auto; margin-bottom: 0px; font-size: 10px; font-weight: normal; text-shadow: 1px 1px #0005; } entities: - entity: sensor.seplos_bms_cell_voltage_1 name: Cell 01 - entity: sensor.seplos_bms_cell_voltage_2 name: Cell 02 - entity: sensor.seplos_bms_cell_voltage_3 name: Cell 03 - entity: sensor.seplos_bms_cell_voltage_4 name: Cell 04 - entity: sensor.seplos_bms_cell_voltage_5 name: Cell 05 - entity: sensor.seplos_bms_cell_voltage_6 name: Cell 06 - entity: sensor.seplos_bms_cell_voltage_7 name: Cell 07 - entity: sensor.seplos_bms_cell_voltage_8 name: Cell 08 - entity: sensor.seplos_bms_cell_voltage_9 name: Cell 09 - entity: sensor.seplos_bms_cell_voltage_10 name: Cell 10 - entity: sensor.seplos_bms_cell_voltage_11 name: Cell 11 - entity: sensor.seplos_bms_cell_voltage_12 name: Cell 12 - entity: sensor.seplos_bms_cell_voltage_13 name: Cell 13 - entity: sensor.seplos_bms_cell_voltage_14 name: Cell 14 - entity: sensor.seplos_bms_cell_voltage_15 name: Cell 15 - entity: sensor.seplos_bms_cell_voltage_16 name: Cell 16 - type: custom:apexcharts-card graph_span: 24h update_interval: 5min yaxis: - id: first decimals: 0 min: ~-6000 max: ~6000 apex_config: tickAmount: 8 - id: second opposite: true decimals: 0 min: 0 max: 100 apex_config: tickAmount: 4 apex_config: chart: height: 300px xaxis: type: datetime labels: show: false tooltip: enabled: false grid: show: true xaxis: lines: show: false yaxis: lines: show: true position: back strokeDashArray: 0.2 legend: show: true all_series_config: show: legend_value: true datalabels: false extremas: false in_brush: false in_header: false float_precision: 0 invert: false fill_raw: 'null' header: show: false title: Overblik show_states: true colorize_states: false series: - entity: sensor.seplos_bms_state_of_charge name: SOC opacity: 1 stroke_width: 1.5 type: line group_by: duration: 1min func: avg show: legend_value: true name_in_header: true in_header: raw yaxis_id: second float_precision: 1 color: gold - entity: sensor.seplos_bms_power_bms name: Power opacity: 1 stroke_width: 1.5 type: line group_by: duration: 1min func: max show: legend_value: true name_in_header: true in_header: raw yaxis_id: first color: orange - entity: sensor.seplos_bms_average_cell_temperature name: Temp opacity: 0.8 stroke_width: 1.5 type: line group_by: duration: 1min func: avg show: legend_value: true name_in_header: true in_header: raw yaxis_id: second float_precision: 1 color: dodgerblue - entity: sensor.seplos_bms_total_voltage name: Pack opacity: 0.8 stroke_width: 1.5 type: line group_by: duration: 1min func: avg show: legend_value: true name_in_header: true in_header: raw yaxis_id: second float_precision: 1 color: red |
Jeżeli wszystkie kroki wykonaliśmy prawidłowo, na karcie zobaczymy następujący widok:

Jeśli ten wpis na blogu okazał się dla Ciebie wartościowy i inspirujący, byłoby mi niezmiernie miło, gdybyś mógł postawić mi kawę za podziękowanie. Twój gest będzie dla mnie miłym wsparciem, które dodatkowo zainspiruje mnie do dalszego dzielenia się wiedzą i doświadczeniem. Dziękuję za docenienie mojej pracy!🌟☕️

Cześć, mam pytanie czy da radę użyć liligo t-can 1 sztuki aby porozmawiać z falownikiem deye i dodatkowo z seplos bms 3.0 ?:) tak aby jedno gadało po can drugie po RS? jeśli tak czy masz przykładową konfigurację?
Pozdrawiam.
Cześć, niestety do magazynów mam osobny ESP.
Czy posiadasz więcej jak jedną baterię seplosa i mógłbyś uaktualnić informację jak to ogarnąć dla 2+ baterii połączonych razem ? 😉 bo za cholerę przez esphome nie udało mi się tego osiągnąć, jedynie zewnętrznym skryptem w pythonie (przez co HA mi się rzuca o niewspierane oprogramowanie) który wysyła dane do mqtt…
Skąd brać zasilanie do konwertera USB i reszty – dla zestawu Seplosa ?
Można „rozdzielić” zasilanie z pinów 7 i 8 ( CN2) albo zakupić jakiś dedykowany zasilacz.
Witaj. Po uruchomieniu wszystkiego mam powtarzające sie errory :
1. custom element doesn’t exist: button-card
2. custom element doesn’t exist: bar-card
Ruszyło – brak był doinstalowanych dodatków – warto to info umieścić w treści aby te dwa doinstalować przed uruchomieniem.
Jakich dodatków?
Hej, czy jest jakaś opcja na monitorowanie dwóch akumulatorów ?
Można ten kod powielać z uwzględnieniem zmiany nazw encji ?
Niestety, na ten moment jest problem z monitorowaniem po rs485. Dlaczego ? Komunikacja pomiędzy master i slave jest po RS485 a niestety może być tylko jeden master. Rozwiązaniem jest komunikacja po bluetooth.
Da się już to ogarnąć przez ESP32 podłączonym po rs485 poniżej kod:
esphome:
name: seplos-esp32-multi
friendly_name: Seplos-ESP32-Multi
esp32:
board: esp32-s3-devkitc-1
framework:
type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: „”
ota:
– platform: esphome
password: „”
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: „Seplos-Esp32-Multi”
password: „Hwp0pNfPgCCV”
captive_portal:
web_server:
port: 80
external_components:
– source:
type: git
url: https://github.com/DpunktS/seplos_v3_sniffer
uart:
• id: seplos
tx_pin: GPIO17
rx_pin: GPIO18
baud_rate: 19200
rx_buffer_size: 2048
substitutions:
time: „5” # update interval for all data points
seplos_parser:
id: seplos_v3
bms_count: 2 # max 16 ?
update_interval: ${time}
uart_id: seplos
sensor:
# bms0
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms0 pack_voltage
unit_of_measurement: „V”
accuracy_decimals: 2
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms0 current
unit_of_measurement: „A”
accuracy_decimals: 2
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms0 remaining_capacity
unit_of_measurement: „Ah”
accuracy_decimals: 2
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms0 total_capacity
unit_of_measurement: „Ah”
accuracy_decimals: 2
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms0 total_discharge_capacity
unit_of_measurement: „Ah”
accuracy_decimals: 0
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms0 soc
unit_of_measurement: „%”
accuracy_decimals: 1
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms0 soh
unit_of_measurement: „%”
accuracy_decimals: 1
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms0 cycle_count
unit_of_measurement: „cycles”
accuracy_decimals: 0
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms0 average_cell_voltage
unit_of_measurement: V
accuracy_decimals: 3
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms0 average_cell_temp
unit_of_measurement: °C
accuracy_decimals: 1
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms0 max_cell_voltage
unit_of_measurement: V
accuracy_decimals: 3
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms0 min_cell_voltage
unit_of_measurement: V
accuracy_decimals: 3
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms0 max_cell_temp
unit_of_measurement: °C
accuracy_decimals: 1
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms0 min_cell_temp
unit_of_measurement: °C
accuracy_decimals: 1
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms0 maxdiscurt
unit_of_measurement: A
accuracy_decimals: 2
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms0 maxchgcurt
unit_of_measurement: A
accuracy_decimals: 2
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms0 cell_1
unit_of_measurement: V
accuracy_decimals: 3
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms0 cell_2
unit_of_measurement: V
accuracy_decimals: 3
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms0 cell_3
unit_of_measurement: V
accuracy_decimals: 3
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms0 cell_4
unit_of_measurement: V
accuracy_decimals: 3
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms0 cell_5
unit_of_measurement: V
accuracy_decimals: 3
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms0 cell_5
unit_of_measurement: V
accuracy_decimals: 3
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms0 cell_6
unit_of_measurement: V
accuracy_decimals: 3
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms0 cell_7
unit_of_measurement: V
accuracy_decimals: 3
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms0 cell_8
unit_of_measurement: V
accuracy_decimals: 3
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms0 cell_9
unit_of_measurement: V
accuracy_decimals: 3
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms0 cell_10
unit_of_measurement: V
accuracy_decimals: 3
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms0 cell_11
unit_of_measurement: V
accuracy_decimals: 3
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms0 cell_12
unit_of_measurement: V
accuracy_decimals: 3
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms0 cell_13
unit_of_measurement: V
accuracy_decimals: 3
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms0 cell_14
unit_of_measurement: V
accuracy_decimals: 3
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms0 cell_15
unit_of_measurement: V
accuracy_decimals: 3
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms0 cell_16
unit_of_measurement: V
accuracy_decimals: 3
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms0 cell_temp_1
unit_of_measurement: °C
accuracy_decimals: 1
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms0 cell_temp_2
unit_of_measurement: °C
accuracy_decimals: 1
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms0 cell_temp_3
unit_of_measurement: °C
accuracy_decimals: 1
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms0 cell_temp_4
unit_of_measurement: °C
accuracy_decimals: 1
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms0 case_temp
unit_of_measurement: °C
accuracy_decimals: 1
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms0 power_temp
unit_of_measurement: °C
accuracy_decimals: 1
filters:
– throttle: ${time}s
# bms1
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms1 pack_voltage
unit_of_measurement: „V”
accuracy_decimals: 2
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms1 current
unit_of_measurement: „A”
accuracy_decimals: 2
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms1 remaining_capacity
unit_of_measurement: „Ah”
accuracy_decimals: 2
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms1 total_capacity
unit_of_measurement: „Ah”
accuracy_decimals: 2
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms1 total_discharge_capacity
unit_of_measurement: „Ah”
accuracy_decimals: 0
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms1 soc
unit_of_measurement: „%”
accuracy_decimals: 1
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms1 soh
unit_of_measurement: „%”
accuracy_decimals: 1
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms1 cycle_count
unit_of_measurement: „cycles”
accuracy_decimals: 0
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms1 average_cell_voltage
unit_of_measurement: V
accuracy_decimals: 3
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms1 average_cell_temp
unit_of_measurement: °C
accuracy_decimals: 1
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms1 max_cell_voltage
unit_of_measurement: V
accuracy_decimals: 3
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms1 min_cell_voltage
unit_of_measurement: V
accuracy_decimals: 3
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms1 max_cell_temp
unit_of_measurement: °C
accuracy_decimals: 1
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms1 min_cell_temp
unit_of_measurement: °C
accuracy_decimals: 1
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms1 maxdiscurt
unit_of_measurement: A
accuracy_decimals: 2
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms1 maxchgcurt
unit_of_measurement: A
accuracy_decimals: 2
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms1 cell_1
unit_of_measurement: V
accuracy_decimals: 3
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms1 cell_2
unit_of_measurement: V
accuracy_decimals: 3
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms1 cell_3
unit_of_measurement: V
accuracy_decimals: 3
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms1 cell_4
unit_of_measurement: V
accuracy_decimals: 3
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms1 cell_5
unit_of_measurement: V
accuracy_decimals: 3
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms1 cell_5
unit_of_measurement: V
accuracy_decimals: 3
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms1 cell_6
unit_of_measurement: V
accuracy_decimals: 3
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms1 cell_7
unit_of_measurement: V
accuracy_decimals: 3
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms1 cell_8
unit_of_measurement: V
accuracy_decimals: 3
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms1 cell_9
unit_of_measurement: V
accuracy_decimals: 3
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms1 cell_10
unit_of_measurement: V
accuracy_decimals: 3
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms1 cell_11
unit_of_measurement: V
accuracy_decimals: 3
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms1 cell_12
unit_of_measurement: V
accuracy_decimals: 3
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms1 cell_13
unit_of_measurement: V
accuracy_decimals: 3
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms1 cell_14
unit_of_measurement: V
accuracy_decimals: 3
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms1 cell_15
unit_of_measurement: V
accuracy_decimals: 3
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms1 cell_16
unit_of_measurement: V
accuracy_decimals: 3
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms1 cell_temp_1
unit_of_measurement: °C
accuracy_decimals: 1
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms1 cell_temp_2
unit_of_measurement: °C
accuracy_decimals: 1
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms1 cell_temp_3
unit_of_measurement: °C
accuracy_decimals: 1
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms1 cell_temp_4
unit_of_measurement: °C
accuracy_decimals: 1
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms1 case_temp
unit_of_measurement: °C
accuracy_decimals: 1
filters:
– throttle: ${time}s
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms1 power_temp
unit_of_measurement: °C
accuracy_decimals: 1
filters:
– throttle: ${time}s
text_sensor:
# bms0
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms0 system_status
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms0 active_balancing_cells
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms0 cell_temperature_alarms
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms0 cell_voltage_alarms
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms0 FET_status
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms0 active_alarms
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms0 active_protections
# bms1
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms1 system_status
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms1 active_balancing_cells
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms1 cell_temperature_alarms
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms1 cell_voltage_alarms
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms1 FET_status
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms1 active_alarms
– platform: seplos_parser
seplos_parser_id: seplos_v3
name: bms1 active_protections
Witam mam seplosa master plus slave tylko w wersji 2.0 masz może rozwiązanie jak dodać go Ha, chyba ze będzie działać ta opcja z 3.0 w co wątpię
Witam mam seplosa master plus slave tylko w wersji 2.0 masz może rozwiązanie jak dodać go Ha, chyba ze będzie działać ta opcja z 3.0 w co wątpię