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
This commit is contained in:
Matt Holmes 2025-01-08 16:53:23 +00:00 committed by GitHub
parent 64e633f10f
commit d2d67db844
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 129 additions and 14 deletions

View file

@ -47,8 +47,10 @@ const char* mqtt_object_id_prefix =
"be_"; // Custom prefix for MQTT object ID. Previously, the prefix was automatically set to "esp32-XXXXXX_"
const char* mqtt_device_name =
"Battery Emulator"; // Custom device name in Home Assistant. Previously, the name was automatically set to "BatteryEmulator_esp32-XXXXXX"
#endif // MQTT_MANUAL_TOPIC_OBJECT_NAME
#endif // USE_MQTT
const char* ha_device_id =
"battery-emulator"; // Custom device ID in Home Assistant. Previously, the ID was always "battery-emulator"
#endif // MQTT_MANUAL_TOPIC_OBJECT_NAME
#endif // USE_MQTT
#ifdef EQUIPMENT_STOP_BUTTON
// Equipment stop button behavior. Use NC button for safety reasons.