Home Assistant Lovelace UI cards #230
Replies: 26 comments 42 replies
-
Good job! Could you try to convert your Lovelace configuration into a blueprint? |
Beta Was this translation helpful? Give feedback.
-
Your contribution is mentioned at the Goodie section now! :-) Thanks for your support! https://github.com/syssi/esphome-jk-bms/tree/add-googie-section#goodies |
Beta Was this translation helpful? Give feedback.
-
Hi! I tweaked the code so it works by default with your naming @syssi Top card
Stats card
Cells card
Control card
|
Beta Was this translation helpful? Give feedback.
-
Thanks for these contributions everyone! Here's my version with the following changes:
a bit unfortunate that home assistant uglyfies the formatting when you save the configuration, but works and looks nice: |
Beta Was this translation helpful? Give feedback.
-
Thanks for sharing! Here's the final fixed version:
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I can't understand how this .yaml language works |
Beta Was this translation helpful? Give feedback.
-
Thanks, |
Beta Was this translation helpful? Give feedback.
-
Seems you are running a modified version. Try the code from first post.
…On Fri, Mar 1, 2024, 06:04 Đặng Đình Ngọc ***@***.***> wrote:
Hi,
I dont know why, your scripts failed to run "{% for idx in range(1, 5" the
display only show the upper part of the lovelace (image)
The part relating to cells does not show up.
image.png (view on web)
<https://github.com/syssi/esphome-jk-bms/assets/8839597/38f888d6-87a8-412c-baef-043c90826a18>
Can you advice. I can manually list cell entities but the scripts can be
fine if it work!
Please help
Best,
—
Reply to this email directly, view it on GitHub
<#230 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABJGIGYFWKIM3VQTLBMP6V3YV7443AVCNFSM6AAAAAATRVZQA6VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DMMZYGEZDO>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Thanks a lot works perfectly |
Beta Was this translation helpful? Give feedback.
-
Hello guys, can someone tell me why it doesn't change the colors to minimum and maximum on my cell I don't know where I went wrong:
|
Beta Was this translation helpful? Give feedback.
-
Thank you, it works well now, I think |
Beta Was this translation helpful? Give feedback.
-
dr3amr Could you see my code? I don't know why but I always have one goal number 3 in blue and it doesn't change. Minimum in red color jumps on all targets but not blue max
|
Beta Was this translation helpful? Give feedback.
-
hello guys, I recently bought a new BMS model JK_PB2A16S20P Hardware Ver 15.XA and Software Ver. V15.10 everything works as it should |
Beta Was this translation helpful? Give feedback.
-
hi, thanks to syssi I got neey 4th 4A balancer up and running in HA. I wanted to make a balancer card according to the first post, but the blue and red markings of the minimum and maximum do not work. I renamed the entities to my own, but it doesn't work for me my code
` |
Beta Was this translation helpful? Give feedback.
-
Congratulations on the work!!! I have it adapted to my language, Spanish, but it is coming out pretty well. What I can't get is for the first column of cell values to be each on a single line, as happens with the right column, which is perfect. Do you think you can help me??? Thank you very much. This is my code:
|
Beta Was this translation helpful? Give feedback.
-
@dr3amr, I appreciate your contribution, it helps a lot to monitor the battery. When I had to adapt the markup for my screen, I realized that it's useful to apply some macro processor to generate repeating parts. I'm using GNU m4 to generate the markdown ( changequote(`«', `»')dnl
define(DEV, jk_bms1)dnl
define(SWITCH, «states('switch.DEV()_$1')»)dnl
define(SENSOR, «states('sensor.DEV()_$1')»)dnl
define(SHOW_SWITCH, «<center>$1: <b>{% if SWITCH($2) == 'on' %}
<font color=«#»41CD52>{{ SWITCH($2) | upper
}}</font> {% else %} <font color=red>{{
SWITCH($2) | upper }}</font> {% endif %}»)dnl
define(SHOW_SENSOR_HEADER, «<b><font color=«#»41CD52 size=6>{{ SENSOR($1) }} $2</font></b>»)dnl
define(SHOW_SENSOR, «$1: <font color=«#»41CD52>{{ SENSOR($2) }} $3</font>»)dnl
define(SHOW_CELL, «{% if SENSOR(max_voltage_cell) == '$1' %}
<font color="«#»3090C7">{{ SENSOR(cell_voltage_$1) }} V</font>
{% elif SENSOR(min_voltage_cell) == '$1' %}
<font color="red">{{ SENSOR(cell_voltage_$1) }} V</font>
{% else %} {{ SENSOR(cell_voltage_$1) }} V
{% endif %} /
{{ SENSOR(cell_resistance_$1) }} Ω»)dnl
dnl
type: vertical-stack
cards:
- type: grid
square: false
columns: 3
cards:
- type: markdown
content: >-
SHOW_SWITCH(Ch, charging)
- type: markdown
content: >-
SHOW_SWITCH(Dis, discharging)
- type: markdown
content: >-
SHOW_SWITCH(Bal, balancer)
- type: grid
square: false
columns: 2
cards:
- type: markdown
content: >-
<center>SHOW_SENSOR_HEADER(total_voltage, V)<br>
SHOW_SENSOR(Battery Power, power, W)<br>
SHOW_SENSOR(Battery Cap, total_battery_capacity_setting, Ah)<br>
SHOW_SENSOR(Cycle Cap, total_charging_cycle_capacity, Ah)<br>
SHOW_SENSOR(Ave. Cell Vol., average_cell_voltage, V)<br>
SHOW_SENSOR(Balance Cur., balancing_current, A)<br>
SHOW_SENSOR(Battery T1, temperature_sensor_1, °C)
- type: markdown
content: >-
<center>SHOW_SENSOR_HEADER(current, A)<br>
SHOW_SENSOR(Remain, state_of_charge, %)<br>
SHOW_SENSOR(Remain, capacity_remaining, Ah)<br>
SHOW_SENSOR(Cycle Count, charging_cycles)<br>
SHOW_SENSOR(Delta Cell Vol., delta_cell_voltage, V)<br>
SHOW_SENSOR(MOS Temp., power_tube_temperature, °C)<br>
SHOW_SENSOR(Battery T2, temperature_sensor_2, °C)
- type: grid
square: false
columns: 2
cards:
- type: markdown
content: >-
<center>
SHOW_CELL(1) <br>
SHOW_CELL(2) <br>
SHOW_CELL(3) <br>
SHOW_CELL(4) <br>
SHOW_CELL(5) <br>
SHOW_CELL(6) <br>
SHOW_CELL(7) <br>
SHOW_CELL(8) <br>
</center>
- type: markdown
content: >-
<center>
SHOW_CELL(9) <br>
SHOW_CELL(10) <br>
SHOW_CELL(11) <br>
SHOW_CELL(12) <br>
SHOW_CELL(13) <br>
SHOW_CELL(14) <br>
SHOW_CELL(15) <br>
SHOW_CELL(16) <br>
</center> |
Beta Was this translation helpful? Give feedback.
-
Thank you. It looks good, compact. How can this be fixed? Sensors should be clickable. |
Beta Was this translation helpful? Give feedback.
-
Internal resistance of cells, yes.
…On Fri, Sep 6, 2024, 18:51 gideonklein ***@***.***> wrote:
Goo morning, I have a question: the sensors ohms (Ω) are the resistances
of the cells? Thank you
—
Reply to this email directly, view it on GitHub
<#230 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABJGIG3GNW6SXBGTWXZZPYTZVHFR5AVCNFSM6AAAAAATRVZQA6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTANJXGEYDAMI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I've modified the codes to suit ANT-32s BMS
|
Beta Was this translation helpful? Give feedback.
-
Hi, maybe someone will like it) in the end it came together fine
|
Beta Was this translation helpful? Give feedback.
-
I made it for myself with two batteries, it turned out interesting) |
Beta Was this translation helpful? Give feedback.
-
Good evening. I want to connect two jk-bms that I have each with a tesla battery to the home assistant. I'm at the beginning and I don't really know how to start. I bought an ESP32 and I have HOA installed on a mini pc. Please help me with the steps to connect. Thank you |
Beta Was this translation helpful? Give feedback.
-
Note: I will be updating this post if there are modifications to the cards along the way.
Note2: @syssi's example has "substitutions: name: jk-bms" while I used "substitutions: name: bms-bt-monitor" (for sensor names), so in order to use the cards, one needs to do a replace-all from "bms-bt-monitor" to own used substitution name.
Hi all and @syssi
@syssi if you want you can embed the code to README.md
Just sharing my work on adding similar jkbms app graphics to HA:
Code bellow, requires Stack In Card by @RomRider => https://github.com/custom-cards/stack-in-card + markdown card (included with HA)
Top card:
Stats card:
Cells card:
Control card:
Beta Was this translation helpful? Give feedback.
All reactions