How do you program the esp32 without using home assistant as I got rid of HA. Cheers
How do you program the esp32 without using home assistant as I got rid of HA. Cheers
Yes to flash the yaml. Is esphome available without using home assistant?Is it to flash the YAML?
If yes, you can do it on the command line with esphome, see the readme.
@Sleeper85Yes that's right, you take my latest YAML V1.16.1 file and you modify the code like in the example below.
YAML:# GPIO pins your CAN bus transceiver ATOMIC CANBus Base (CA-IS3050G) can_tx_pin: GPIO22 can_rx_pin: GPIO19 # GPIO pins your JK-BMS RS485(TTL) is connected to the grove port of ATOM lite tx_pin: GPIO32 rx_pin: GPIO26 esp32: board: m5stack-atom framework: type: arduino
Through my multiple reflashes trying different yaml configs, I noted the setting I did in Home Assistant (charge rate, discharge rate, etc) don't persist. I need to reset them each time I power it back up. Let me know if I'm doing something wrong here.
# +--------------------------------------+
# | Battery Charge Settings |
# +--------------------------------------+
# This is max charging amps eg 100A, for Bulk - Constant Current charging(CC), should be at least 10A less than BMS change current protection, 0.5C max
# 100A * 50V = 5000W
charge_a: "100"
# Float Voltage : corresponds to the voltage at which the battery would be maintained at the end of the absorption phase. (53.6v eg 3.35v/cell for 16 cells 48V battery)
float_v: "53.6"
# Absorption Voltage : corresponds to the Bulk voltage that will be used to charge the battery. (55.2v eg 3.45v/cell for 16 cells 48V battery)
absorption_v: "55.2"
# Absorption time in minutes to hold charge voltage after charge voltage is reached eg 30
absorption_time: "30"
# Absorption offset, x Volts below absorption voltage battery will start the absorption timer, eg 55.2-0.05 = 52.15v
absorption_offset_v: "0.05"
# Rebulk offset, x Volts below absorption voltage battery will request rebulk, eg 55.2-2.5 = 52.7v
rebulk_offset_v: "2.5"
# +--------------------------------------+
# | Battery Discharge Settings |
# +--------------------------------------+
# Max discharge amps eg 120, should be at least 10A less than BMS over discharge current protection, 0.5C max
# 120A * 50V = 6000W
discharge_a: "120"
# Minimum discharge voltage eg 48v/16 = 3V per cell
min_discharge_v: "48"
It still reports Battery capacity at 50 Ah for some reason. I think it has to do with a conservative 0.5C limit set by me in the YAML.
lambda: return ((id(can_msg_counter) == 9) & ((${can_protocol} == 2) | (${can_protocol} == 4)));
Thanks for that. I have installed esphome with python but how do I run esphome now I have installed it ??The esphome (command line) application is available for Windows, Mac and Linux.
It is with this tool that I flash the YAML and it is not necessary to have a Home Assistant server to use it.
You will find the installation procedure on the ESPHome website.
If you installed esphome on your computer, I had some PATH weirdness I had to fix on my MAC even though I had esphome path correct, just follow the steps @Sleeper85 has in the readme. Clone down his repo, modify for your use, test the config, run to flash the device.Thanks for that. I have installed esphome with python but how do I run esphome now I have installed it ??