Skip to content

Conversation

genestealer
Copy link

The improvements focus on functionality, usability, and integration with Home Assistant.

Key Changes

  1. Home Assistant Integration:
  • Added MQTT AutoDiscovery support for seamless integration with Home Assistant.
  • Published additional diagnostic data (e.g., Wi-Fi signal strength, uptime, and battery level) to MQTT topics.
  1. Frequency Discovery:
  • Enhanced frequency discovery logic to simplify the process of identifying the correct frequency for communication with the meter.

  • Added debug outputs to assist users during the frequency calibration process.

  1. Wi-Fi Diagnostics:
  • Implemented functions to publish Wi-Fi details (IP, RSSI, signal strength, etc.) to MQTT.
  • Improved diagnostics for better monitoring and troubleshooting.
  1. Code Refactoring:
  • Improved code readability and maintainability by organizing functions and adding detailed comments.
  • Consolidated JSON discovery templates for Home Assistant.
  1. OTA Updates:
  • Integrated Arduino OTA functionality for easier firmware updates.
  1. Documentation Updates:
  • Updated the README with detailed setup instructions, hardware requirements, and troubleshooting tips.
  • Added examples and images to guide users through the configuration process.
  1. Bug Fixes and Optimizations:
  • Fixed potential issues in the meter data retrieval process.
  • Optimized delays and retry mechanisms for better performance and reliability.

Motivation
These changes aim to enhance the usability of the project, improve integration with Home Assistant, and provide a more robust and user-friendly experience for monitoring water usage data.

genestealer and others added 30 commits January 20, 2025 21:02
EspMQTTClient now uses "include\Private.h" file for values.
Turn on LED to show we are trying to get the meter data.
Renamed jsonDiscoveryDevicex to English.
Added a Request Reading Now Button
Put the server for configTzTime into "include\Private.h" as I use my local NTP server as my IoT VLAN has no web access.
Added  Optional functionalities of EspMQTTClient for debug.
Add over the air OTA updates
Added MQTT binary sensor for active reading:

Configured Home Assistant discovery for Active Reading with device_class: running.
Published active_reading state (true/false) during meter reading attempts.
Ensured active_reading initializes to false on MQTT connection to handle reboots.
Introduced Wi-Fi signal strength as a percentage:

Converted RSSI to percentage using a custom mapping function.
Published wifi_signal_percentage via MQTT.
Added Home Assistant discovery configuration for signal percentage.
Implemented restart button:

Added Restart Device button with entity_category: configuration.
Subscribed to MQTT topic everblu/cyble/restart to trigger ESP.restart().
Improved status management:

Configured Last Will and Testament (LWT) for everblu/cyble/status to publish offline on unexpected disconnects.
Set status to online on MQTT connection.
Cleaned and updated discovery configurations:

Ensured all discovery topics, including WiFi IP, RSSI, MAC Address, and SSID, are correctly published.
Set appropriate entity_category values (diagnostic or configuration) where applicable.
Updated Readme with new PlatofrIO buiild process
Updated Readme with better wording for Frequency Dicovery steps
Updated Readme with distance advice
Updated Readme with Everblu Cyble v2.1 pics
Fixed broken link in Readme
Removed some comments relating to the older project that are no longer relevant
Fixed a little code syntax that was causing come compiler warnigns (but there are many more)
Cleaned up some whitespace
Fixed inconsistecy ion spelling of Liters (favouring US spelling for consistency with rest of project)
Removed support_url from jsonDiscovery (was bereaking HA Device Discovery)
Fixed WiFi Signal jsonDiscovery (incorrect device class)
Fixed WiFi Status jsonDiscovery (incorrect device class)
Fixed QOS in jsonDiscovery (thanks to @AdrianLThomas)
genestealer and others added 29 commits April 10, 2025 20:17
- Updated instructions in README.md for enabling frequency discovery.
- Added definitions for frequency discovery and Wi-Fi PHY mode in Example_Private.h.
- Implemented conditional frequency scanning in everblu-meters-esp8266.cpp.
…diness message

- Added a new zip file containing radian_trx_code from the website.
- Updated the everblu-meters-esp8266.cpp file to include a "Ready to go..." message upon connection establishment.
@kentin62
Copy link

kentin62 commented May 4, 2025

Bonjour, quelqu'un serait expliquer via une video comment compile l'esp32 ainsi que le cablage ? je n'y arrive pas...

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.

4 participants