Skip to content

Release v2.2.21-ge

Compare
Choose a tag to compare
@ehorvat1 ehorvat1 released this 05 Sep 18:59
· 27 commits to main since this release
2473489

AMS2MQTTBridge-EHo Release 2.2.21-ge

This is basically a fork from amsreader-firmware (old name: AmsToMqttBridge) amsreader-firmware based on Rev 2.2.21 see: https://github.com/UtilitechAS/amsreader-firmware

Now features:

  1. All functions from amsreader-firmware Rev 2.2.21 (Except automatic FW updates which would overwrite my modifications)
  2. Fixed price (but its more a refund) for exported energy
  3. Added a 10 Minute plot (120 point resolution, 1 pt each 5 sec)
  4. Added a 60 Minute plot (120 point resolution, 1 pt each 30 sec)
  5. Added a section to show "last" counter values since last payment. Data to be entered in configuration.
  6. Exported energy is shown in green color on hour, day and month plot.
  7. Automatic Wifi swapping if configured WLAN does not connect. See below for more info.
  8. Disabled Consent message (since no data is sent anywhere) and automatic FW updates
  9. Some minor color changes on dashboard gauges
  10. Translation to German language

There is a English Version as well, please go to "english" branch or to the Release version ending with "-en"

Wifi function (STA mode or AP mode):

The option on configuration page in section Wifi called: "Start a Wifi AP on home Wifi connection problem" will enable this:
If the configured Wifi (should be your home Wifi) can not be reached within app. 2 minutes software will swap to Wifi AP mode and will present a AP named "amsreader-abcd" with password: amsreader_config so one can acess the web pages on its default IP: 192.168.4.1

Software will try to re-connect to the configured Wifi if no client is connected to this AP for 90 seconds. So if one is connected to AP Wifi the device will stay in AP mode. Please mind that most devices will do a automatic reconnect to the AP Wifi if the Wifi connection "amsreader-abcd" was once used. This could prevent the ESP32 from automatically reconnecting to defined STA Wifi.

"AP" button still is an option to swap between configured WLAN and an Wifi Access point called "amsreader-abcd". The AP button must be pressed longer than 5 seconds to swap Wifi mode.

Additional MQTT items (in raw MQTT mode only):

 - Publish topic + "/realtime/import/cost_kwh"
 - Publish topic + "/realtime/import/last_counter_value"
 - Publish topic + "/realtime/import/last_counter_info"
 - Publish topic + "/realtime/import/last_counter_diff"
 - Publish topic + "/realtime/import/last_counter_costs"
 - Publish topic + "/realtime/export/refund_kwh"
 - Publish topic + "/realtime/export/last_counter_value"
 - Publish topic + "/realtime/export/last_counter_info"
 - Publish topic + "/realtime/export/last_counter_diff"
 - Publish topic + "/realtime/export/last_counter_refund"

So for example, if you set the "Publish topic" in MQTT configuration to "smartmeter" :
-the actual power used is published with full topic: smartmeter/meter/import/active
-the entered fixed price per kWh is published with full topic: smartmeter/realtime/import/cost_kwh

Building this project with PlatformIO

To build this project, you need PlatformIO installed.

It is recommended to use Visual Studio Code with the PlatformIO plugin for development.

Visual Studio Code

PlatformIO vscode plugin

For development purposes, copy the platformio-user.ini-example to platformio-user.ini and customize to your preference. The code will adapt to the platform and board set in your profile.