Commit graph

50 commits

Author SHA1 Message Date
amarofarinha
09421057c4 code style 2024-09-28 21:21:14 +01:00
amarofarinha
2a1424c969 Compilation fix - order_events declared inside wrong #ifdef 2024-09-28 08:51:50 +01:00
amarofarinha
9983d81cac Improve MQTT Connection Resilience and Add Event Tracking for Diagnostics 2024-09-20 17:03:20 +01:00
amarofarinha
eb901da385 bugfix - ordering is oposite in events page and mqtt publish 2024-09-20 09:33:38 +01:00
amarofarinha
086c3dfa29 Optimize Event Ordering by Storing Milliseconds and Handling Rollovers 2024-09-20 02:03:49 +01:00
amarofarinha
9d2a3be708 Refactor: Code cleanup and optimization 2024-09-13 22:22:57 +01:00
amarofarinha
a8010abdd9 Refactor: Code cleanup and optimization without functional changes 2024-09-13 17:57:26 +01:00
amarofarinha
856a0838d1 Improvement: Add Battery Pause Feature for Max Charge/Discharge Power and OTA Update Optimization 2024-09-13 15:32:54 +01:00
amarofarinha
882d753b71 Added additional sensors to the MQTT info topic. 2024-09-10 21:30:10 +01:00
amarofarinha
fa880a5228 Improvements in events publication to trigger
state change in Home Assistant.
Changed value_template and added millis to payload
2024-09-05 14:11:16 +01:00
amarofarinha
47fa46ed4e Publish Battery Emulator Events to MQTT 2024-09-04 19:49:48 +01:00
Paul Brand
775ee36d0b Fixes typo
Adds #endif comments
2024-08-28 08:46:30 +02:00
Paul Brand
ddb0623983 Adds even more code to HA_AUTODISCOVERY setting
Removes unused variable
2024-08-27 22:24:24 +02:00
Paul Brand
feb726162f Adds more code to HA_AUTODISCOVERY setting 2024-08-27 22:16:03 +02:00
Paul Brand
ce93284b51 Adds user setting for Home Assistant autodiscovery 2024-08-27 13:47:33 +02:00
Frank Spijkerman
897b4e7184 Removed MQTT subscription functionality 2024-06-26 17:29:56 +02:00
amarofarinha
41e7802ff3
code formating issues 2024-05-26 20:29:39 +01:00
amarofarinha
0fd1d3d113
code formating issues 2024-05-26 18:09:05 +01:00
amarofarinha
064ff27ea7
Prevent MQTT to publish cell voltage values before they are populated
In addition to checking the value of the variable number_of_cells, we also test the value of the last cell, as the value of the cells can be filled some time after initializing the number of cells. This test was also added before publishing the values cell_max_voltage and cell_min_voltage since they are ​​calculated from the cell data.
2024-05-26 15:17:00 +01:00
Cabooman
0fee07313a
Data layer introduction (#254)
* Active power, SOH

* Total and remaining capacity

* pre-commit, baby!

* Typo

* pre-commit wrestling

* Temp min/max

* Voltage and current

* Min/max design voltage

* BMS status, max charge/discharge, cell min/max

* BMS status cleanup

* Pre-commit, we meet again

* Cell voltages and minor fixes

* Cell number

* SOC

* Missed a spot

* Event handling moved, Wh bugs fixed, time measurements improved

* Pre-commit, old friend...

* Battery chemistry

* Update TESLA-MODEL-3-BATTERY.cpp

* Total capacity/Wh max, soem default values

* Good ol' pre-comm

* Some prio/core cleanup, docs...

* Contactor closing variables

* Max charge/discharge amps

* Data layer variable documentation

* USER_SETTINGS comments

* Charger comment

* Update datalayer.h
2024-04-15 22:26:10 +02:00
Daniel
0c62bf16df Add ifdefs for all prints. Remove example folders 2024-03-28 17:01:02 +02:00
Brett Christensen
2f6f166280
Update mqtt.cpp
fix SOC real in mqtt
2024-02-22 08:49:16 +11:00
Brett Christensen
ff18c2fc4a
Merge branch 'main' into mqtt-cleanup 2024-02-21 12:20:09 +11:00
Daniel
3fb362af09 Revert MQTT naming 2024-02-20 21:45:49 +02:00
Daniel
032a0d75ee Rewrite part 1 2024-02-19 00:44:04 +02:00
Brett Christensen
6985fbea49 Update mqtt.cpp 2024-02-14 21:53:44 +11:00
Brett Christensen
41b6551465 Update mqtt.cpp 2024-02-14 21:42:47 +11:00
Brett Christensen
efe5b80474 use static casting in mqtt 2024-02-14 16:34:55 +11:00
Brett Christensen
a74ae258c1 Merge branch 'main' into mqtt-cleanup 2024-02-13 18:57:54 +11:00
Brett Christensen
920786a356 add hostname to mqtt ids. Use arduinojson library 2024-02-13 18:40:53 +11:00
Cabooman
760fc8a60d ffs 2024-02-12 10:12:35 +01:00
Cabooman
7702774af6 Update mqtt.cpp 2024-02-12 09:44:28 +01:00
Cabooman
fe0502e66f Cell voltage min/max decimal fix 2024-02-12 09:42:49 +01:00
Brett Christensen
d3300f3dfa fix battery voltage and current 2024-02-10 17:19:05 +11:00
Brett Christensen
711aeded0c precommit fixes 2024-02-09 16:33:48 +11:00
Brett Christensen
dff9788b96 well I hope this fixes the build 2024-02-09 16:25:20 +11:00
Brett Christensen
8e38e8562f fix mqtt auto 2024-02-09 14:12:11 +11:00
Brett Christensen
9f68296f5f fixing autoconfig 2024-02-09 10:55:49 +11:00
Brett Christensen
91c7a001cc publish common info autoconfig 2024-02-09 08:58:45 +11:00
Cabooman
ba2f1c6561 Removed battery specific MQTT data 2024-02-03 23:57:11 +01:00
Cabooman
3747a468c5 Pre-commit 2024-02-03 22:35:07 +01:00
Cabooman
5fef88504c Pre-commit 2024-02-03 22:31:18 +01:00
Cabooman
13bfdcc33b Centralizations and mods for it 2024-02-03 22:27:25 +01:00
Cabooman
c31c53e856 Changes after review comments 2024-02-03 19:11:43 +01:00
Cabooman
8f00633563 Discovery+comments 2024-02-02 13:29:10 +01:00
Cabooman
12b83e7605 Pre-commit 2024-02-01 22:29:30 +01:00
Cabooman
620db2cc33 Wrapping up the POC
Increased the msg buffer to allow cell voltages to be transmitted (at least Leaf). Tested OK
2024-02-01 22:25:21 +01:00
Cabooman
527bc19649 Some precommit fixes 2024-01-30 09:18:03 +01:00
Cabooman
957a91e55e Loop function added, generic timer added, message buffer increased (you never know) 2024-01-30 07:36:43 +01:00
Cabooman
bf37f655df Iniital commit 2024-01-29 22:39:51 +01:00