Skip to content

Conversation

@ohAnd
Copy link
Owner

@ohAnd ohAnd commented Jul 16, 2025

This pull request introduces several updates across the codebase, focusing on firmware build workflows, configuration enhancements, and new features for device management and display functionality. Key changes include support for additional ESP32 variants, new configuration options, and expanded MQTT and webserver capabilities.

Build Workflow Updates:

  • Added support for building and uploading firmware for ESP32-S3 and ESP32-S3-16MB variants in .github/workflows/dev_build.yml, .github/workflows/feature_build.yml, and .github/workflows/main_build.yml. Updated artifact naming conventions accordingly. [1] [2] [3] [4] [5]

Configuration Enhancements:

  • Introduced new fields in struct UserConfig for web server port (webServerPort), MQTT topic structure (mqttOpenDTUtopics), and display settings (remoteSummaryDisplayActive). Adjusted the default timezone offset to 3600 seconds. [1] [2] [3]
  • Increased the size of mqttBrokerMainTopic from 32 to 64 characters.

Device and Webserver Features:

  • Added new reboot commands (handleRebootMi, handleRebootDtu, handleRebootDtuGw) in DTUwebserver and corresponding state handling in DTUInterface. [1] [2] [3] [4]
  • Updated DTUwebserver to accept a configurable port parameter.

Display Functionality:

  • Enhanced DisplayDataTFT with fields for tracking power metrics (totalPowerLast, totalPowerMax, totalPowerMaxTimestamp) and added methods for rendering summary views. [1] [2]
  • Changed totalPower type in DisplayData and DisplayDataTFT from int16_t to uint16_t for better precision. [1] [2]

Miscellaneous Updates:

  • Added support for identifying ESP32-S3 in platformData.h.
  • Updated version information to 2.2.260_localDev in version.h and version.json. [1] [2]
  • Extended MQTT functionality with a new topic structure option (setTopicStructure) and reboot device handling (getRebootDevices). [1] [2]

ohAnd and others added 30 commits March 30, 2025 16:59
… functionality

- Adjusted spacing in conditional statements for consistency in displayTFT.cpp
- Updated power max reset logic to ensure it resets correctly after 12 hours or at midnight in displayTFT.cpp
- Enhanced logging for max power updates in displayTFT.cpp
- Modified MQTT message logging to be commented out for cleaner output in mqttHandler.cpp
…ce - resets also values with reboot initiated
This patch makes it possible to reboot micro inverter by mqtt and web.
Correct documentation about PowerLimitSet
… MQTT incl. HA mqtt auto discovery' - fix #95 Restart DTU and Inverter as button and MQTT topic
- Introduced `protectSettings` boolean in UserConfig to prevent changes via web interface.
- Enhanced web interface to display protection status and prevent unauthorized changes.
- Updated README to document the new settings protection command. - fix #71 user and password for changing settings over the dasboard
@ohAnd
Copy link
Owner Author

ohAnd commented Jul 16, 2025

dtuGateway v2.2.x Release Notes

New Features

Complete Documentation Overhaul

  • Fully restructured README: User-friendly setup guide with progressive disclosure
  • 5-minute quick start: Step-by-step installation for new users
  • Hardware compatibility matrix: Clear ESP32 variant support and pinout diagrams
  • Comprehensive troubleshooting: Common issues, serial commands, and recovery procedures
  • Smart home integration guides: Detailed setup for Home Assistant, openHAB, and MQTT
  • Original documentation preserved in readme_old.md

OpenDTU Compatibility

  • OpenDTU MQTT Topics: Enable OpenDTU-compatible topic structure in MQTT settings
  • Drop-in replacement for existing OpenDTU setups
  • Note: Disables Home Assistant auto-discovery (manual sensor setup required)

Timezone & DST Improvements

  • Automatic DST switching based on timezone configuration
  • Fixed night mode timing across DST transitions
  • Better fallback when ESP32 RTC unavailable

System Management

  • Settings protection: Lock web interface settings via serial command protectSettings 1/0
  • Custom web port: Configure non-default port for web interface
  • Remote reboot: Restart inverter, DTU, or gateway via web/MQTT

Hardware Support

  • ESP32-S3 improvements: Better boot reliability and USB support
  • ESP32-S3 16MB: New build target for high-memory variants

Bug Fixes

  • Fixed night mode timing with DST
  • Improved timezone handling fallback
  • Enhanced ESP32-S3 boot sequence
  • Better MQTT error recovery

Breaking Changes

  • OpenDTU mode disables HA auto-discovery
  • Manual DST setting replaced with automatic detection

Migration Notes

  • From OpenDTU: Enable "OpenDTU Topics" in MQTT settings
  • Settings backup recommended before upgrade
  • Factory reset available via resetToFactory 1 if needed

@ohAnd ohAnd merged commit 83b4eaf into main Jul 16, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants