Commit graph

97 commits

Author SHA1 Message Date
Daniel Öster
a1e5bc57d0 Remove ifdef from logging 2025-08-29 23:16:36 +03:00
Matt Holmes
cd7e0b51ea Fixing typo and removing unused led_color enum 2025-08-21 18:13:17 +01:00
Matt Holmes
d4f0e188fe Refactoring led handler, webserver and mqtt to all use a common BE status enum rather than relying on duplicatitng logic or using led color 2025-08-21 17:33:15 +01:00
Matt Holmes
980d914ffd Adding event_level and event_level_color to mqtt information 2025-08-21 08:58:55 +01:00
Jaakko Haakana
f609d54a14 Add some required includes 2025-07-25 19:11:07 +03:00
Jaakko Haakana
c2fa2ae68d Use default values for mqtt topics when none given 2025-07-14 09:39:32 +03:00
Jaakko Haakana
0b3bc738ac Merge from main and fix conflict 2025-07-11 17:26:09 +03:00
Jaakko Haakana
6cdcb08abb MQTT settings in the UI 2025-07-05 23:59:32 +03:00
Jaakko Haakana
00fb213cc1 HA autodiscovery enabled with run-time variable 2025-07-05 10:49:18 +03:00
Jaakko Haakana
5f8eedbacb WEB and MQTT settings are actually run-time variables 2025-07-05 10:21:15 +03:00
copilot-swe-agent[bot]
52ee849056 Address feedback: Remove user_requests_balancing and tie cell balancing to cell voltages publishing
Co-authored-by: No-Signal <2316571+No-Signal@users.noreply.github.com>
2025-07-04 19:45:31 +00:00
copilot-swe-agent[bot]
9bf2d08929 Add balancing data to MQTT publishing
Co-authored-by: No-Signal <2316571+No-Signal@users.noreply.github.com>
2025-07-04 19:25:46 +00:00
Jaakko Haakana
2602316369 Merge from main 2025-07-02 19:09:01 +03:00
Jaakko Haakana
12b402f994 Initial hal changes 2025-06-22 23:30:11 +03:00
Jaakko Haakana
48a0cf3afa Fix crash with safer array usage in MQTT implementation 2025-06-16 19:16:40 +03:00
Jaakko Haakana
dbe3de7422 Eliminate mqtt compile time dependency to battery type 2025-06-02 08:24:59 +03:00
Jaakko Haakana
3789d72833 Determine double battery usage in MQTT at run-time 2025-06-01 21:15:42 +03:00
Jaakko Haakana
a7261a9f34 Publish CPU temp to MQTT 2025-05-19 08:15:25 +03:00
Matt Holmes
91238f5b68 Bugfix for mqtt memory leak 2025-05-10 21:59:14 +01:00
Marijn van Galen
07a4ad7abc
Add (dis)charged_energy_Wh to datalayer and mqtt. (#1003)
- Add (dis)charged_energy_Wh to datalayer and mqtt.
- MEB: report (dis)charged_energy_Wh
- MEB: Fix SOH calculation.
- TESLA: also use the total_(dis)charged_battery_Wh in generic datalayer.
2025-03-25 19:18:20 +01:00
Matt Holmes
15b1543555 Updating mqtt topic processing to incorrect topic matching when a shorter topic than expected is used which in some situations could cause a crash 2025-03-21 17:10:47 +00:00
Matt Holmes
6109211c96 Fixes to mqtt to prevent delays when the broker is unavailable which can trigger the watchdog timer reset 2025-03-08 08:41:54 +00:00
James Brookes
bec9b04255 Fix for compilation errors in mqtt due to HA_AUTODISCOVERY 2025-02-01 10:59:06 +00:00
James Brookes
2e31739799 Fix for compilation errors in mqtt.cpp when HA_AUTODISCOVERY is commented out 2025-01-31 17:27:05 +00:00
Matt Holmes
42b1c18d01 Adding mqtt QoS config setting with a default of 0 and updating platformio to use 3.1.1 2025-01-30 21:26:01 +00:00
Matt Holmes
fc3f5b4e31 Merge branch 'main' into feature/mqtt_library_replacement 2025-01-19 21:07:32 +00:00
wjcloudy
a84a1d6580
Add Beta BMW PHEV Support (#804)
* Add Beta BMW PHEV Support
2025-01-19 20:27:57 +02:00
No-Signal
ad80874475 Adding LWT and configuring HA availability to use it and adjusting command structure to make it easier to use 2025-01-17 18:48:48 +00:00
No-Signal
3124656668 Fixing battery 2 unique_id 2025-01-15 08:24:37 +00:00
No-Signal
602242a661 Improvements for dual battery configurations 2025-01-14 22:03:03 +00:00
No-Signal
aa7d34a555 Fixes to HA auto discovery and adding additional commands 2025-01-14 21:09:53 +00:00
No-Signal
4c90898117 Restructuring code to remove duplicates and reduce flash size 2025-01-14 21:06:25 +00:00
No-Signal
ba37177382 Replacing non maintained mqtt library with ESP-MQTT 2025-01-14 21:06:25 +00:00
No-Signal
2d97b63528 Adding ability to remotely trigger a BMS reset via MQTT 2025-01-14 21:06:25 +00:00
Matt Holmes
d2d67db844
Adding ability to remotely trigger a BMS reset via MQTT and configure Device ID for multiple emulators (#746)
* Adding ability to remotely trigger a BMS reset via MQTT

* Adding comment to remove build warning

* Enabling configuration of HA Device Id to allow for multiple battery emulators in HA without collision
2025-01-08 17:53:23 +01:00
Daniel Öster
d28c59ccfc
Merge pull request #662 from No-Signal/feature/user_secrets
Improvement: Moving secrets from USER_SETTINGS.cpp to platformio config
2024-12-23 15:48:30 +02:00
mvgalen
c713d0a94e
Change Serial logging to flexible logging (#690)
* Add Logging class
Add Logging class which inherits from Print class, to be able to route logging to USB Serial or to memory for display in the webpage. Adds a log webpage only visible when DEBUG_VIA_WEB is defined.
2024-12-22 22:48:35 +01:00
No-Signal
8870027d75 Moving secrets from USER_SETTINGS to USER_SECRETS.h 2024-12-21 11:12:55 +00:00
amarofarinha
683e576d99 Add Support for Double-Battery in MQTT Integration 2024-11-04 18:33:32 +00:00
amarofarinha
8def605192 Replace BMS status check with CAN communication status for MQTT updates 2024-11-03 07:49:27 +00:00
amarofarinha
89e64914a7 Remove "Battery Emulator" Prefix from MQTT Sensor Names and Standardize Cell Object IDs 2024-10-28 22:27:41 +00:00
amarofarinha
93cd2083cf Remove all unnecessary string casts 2024-10-28 17:34:18 +00:00
amarofarinha
062e9b3c5c pre-commit fix 2024-10-28 13:27:41 +00:00
amarofarinha
e328bfd37b compile fixes and MQTT clientId name 2024-10-28 13:24:17 +00:00
amarofarinha
dbfb0575a0 Enhance MQTT Naming Customization for Home Assistant 2024-10-28 09:57:39 +00:00
amarofarinha
e4bced9873 add mqtt 2024-10-23 01:28:19 +01:00
amarofarinha
ced16495a0 Add scaled remaining capacity calculation 2024-10-23 01:28:00 +01:00
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