Skip to content

Releases: Nisbo/another_mvg

v2.1.0 Released

17 Dec 07:07
d281430
Compare
Choose a tag to compare

⚠️ BREAKING CHANGES

  • YAML support is deprecated, but all YAML sensors will be automatically converted to a GUI sensor.
    --> After the Update and restart of HA check if the Sensors are available in the GUI configuration. After this you can safely remove the code from your configuration.yaml.

Du to the fact that the YAML support is removed, the uniqui_id creating has been changed. This is only an internal "thing" but leads to the fact, that from now on you don't need the doublestationnumber any more. This means that DEFAULT_CONF_DOUBLESTATIONNUMBER was removed from the config completely and CONF_DOUBLESTATIONNUMBER from the GUI configuration mask. Important for you, if you want to use the same stop (Global ID) more than once, there is no need any more to configure this option. In other words, don't care about it. ^^

Other Changes

  • Fixed the HA deprecation warning for Detected that custom integration sets option flow config_entry explicitly, which is deprecated at custom_components/another_mvg/config_flow.py

I summarized the changes from the BETA and included them below.

Added in BETA 5

Another MVG now also displays departures for the next day if there are no or not enough results for the current day. This will be done with an additional API query if required. Since I can only request data with an offset to the next day, this offset will be calculated from the current time and the time until midnight. For this reason, it is important that the time on the computer running HA is correct.

grafik

Added also a new option Increased Limit under the Advanced Settings

grafik

This option is intended to correct missing entries after midnight if many filters are used. Use this option only if fewer entries than desired are displayed in the evening. Adjust slowly in steps of 10, as this option can lead to unnecessary additional API requests.

Added in BETA 4

  • Added S-Bahn line S5 to prepare for the new line launching in a few weeks.
  • Added a new card content-card-another-mvg-livemap.js.

grafik

The new card can be added and configured directly through the map selector, just like other cards.
Simply go to your dashboard, click on "Add Card", search for "Another MVG", and select the card from the results.

grafik

grafik

That’s all. In the standard configuration, it shows the complete map.
If you want to zoom in, follow the instructions in the description.
This editor is currently only available in German because I have no clue how to add language support to the card.
If there is a real need, I can create an additional card for English users.

If, for some reason, you are not able to find the card, try clearing your frontend and browser cache, or try configuring the card on your own.

type: custom:content-card-another-mvg-livemap
mode: schematic
x: "2750800"
y: "1560005"
zoom: "4.8"

Added in BETA 3

Added new Option to search the Global ID and Global ID 2 also after the initial setup.
Just click on CONFIGURE as before to edit a sensor and choose from the menu the wanted option
grafik

Apart from the changes above, the description of the fields/options has been improved to make it more clear to understand how it works.

Added in BETA 2

  • removed unnecessary entries from the translation files
  • fixed an issue in the "big" card where the line break of the destination column was not correct formatted
  • Added an option to change the format of the Departure time

grafik

You have the following 3 options (the 1st one is the default option)

  • 16:27 +2 (16:29)
  • 16:27 +2
  • 16:29

In the example, 16:27 is the scheduled departure time, the train has a delay of 2 minutes, and 16:29 is the current departure time. If only the current departure time (Option 3) is displayed, the time will be shown in red if there is a delay.

Option 1 (same as before)

grafik

Option 2

grafik

Option 3
grafik

Added in BETA 1

grafik

Added an option (disabled by default) to show a clock on the top right of the card. (same line than the title of the card)
Its a simple JavaScript clock and takes the time from the device (Mobile Phone or Browser)
The update may not happen at the exact second because its triggered by an Home Assistant card update

You can find the new option in the Advanced Settings Section

grafik

v2.1.0-BETA-5 Released - Install on your own risk

09 Dec 09:29
465427e
Compare
Choose a tag to compare

⚠️ First of all, if you skipped BETA.3, please read the BETA.3 release notes regarding the deprecation of the YAML configuration.

What's new in BETA.5

Another MVG now also displays departures for the next day if there are no or not enough results for the current day. This will be done with an additional API query if required. Since I can only request data with an offset to the next day, this offset will be calculated from the current time and the time until midnight. For this reason, it is important that the time on the computer running HA is correct.

grafik

Added also a new option Increased Limit under the Advanced Settings

grafik

This option is intended to correct missing entries after midnight if many filters are used. Use this option only if fewer entries than desired are displayed in the evening. Adjust slowly in steps of 10, as this option can lead to unnecessary additional API requests.

v2.1.0-BETA-4 Released - Install on your own risk

14 Nov 15:00
75336cd
Compare
Choose a tag to compare

First of all, if you skipped BETA.3, please read the BETA.3 release notes regarding the deprecation of the YAML configuration.

What's new in BETA.4

  • Added S-Bahn line S5 to prepare for the new line launching in a few weeks.
  • Added a new card content-card-another-mvg-livemap.js.

grafik

The new card can be added and configured directly through the map selector, just like other cards.
Simply go to your dashboard, click on "Add Card", search for "Another MVG", and select the card from the results.

grafik

grafik

That’s all. In the standard configuration, it shows the complete map.
If you want to zoom in, follow the instructions in the description.
This editor is currently only available in German because I have no clue how to add language support to the card.
If there is a real need, I can create an additional card for English users.

If, for some reason, you are not able to find the card, try clearing your frontend and browser cache, or try configuring the card on your own.

type: custom:content-card-another-mvg-livemap
mode: schematic
x: "2750800"
y: "1560005"
zoom: "4.8"

v2.1.0-BETA-3 Released - Install on your own risk

08 Nov 13:35
fe3680f
Compare
Choose a tag to compare

⚠️ BREAKING CHANGES

  • YAML support is deprecated, all YAML sensors will be automatically converted to a GUI sensor
    --> After the Update and restart of HA check if the Sensor is available in the GUI configuration. After this you can safely remove the code from your configuration.yaml.

Du to the fact that the YAML support is removed, the uniqui_id creating has been changed. This is only an internal thing but leads to the fact that from now on you don't need the doublestationnumber any more. This means that DEFAULT_CONF_DOUBLESTATIONNUMBER was removed from the config completely and CONF_DOUBLESTATIONNUMBER from the GUI configuration mask. Important for you, if you want to use the same stop (Global ID) more than once, there is no need any more to configure this option.

Added new Option to search the Global ID and Global ID 2 also after the initial setup.
Just click on CONFIGURE as before to edit a sensor and choose from the menu the wanted option
grafik

Apart from the changes above, the description of the fields/options has been improved to make it more clear to understand how it works.

v2.1.0-BETA-2 Released - Install on your own risk

31 Oct 10:26
b9ed484
Compare
Choose a tag to compare
  • removed unnecessary entries from the translation files
  • fixed an issue in the "big" card where the line break of the destination column was not correct formatted
  • Added an option to change the format of the Departure time

grafik

You have the following 3 options (the 1st one is the default option)

  • 16:27 +2 (16:29)
  • 16:27 +2
  • 16:29

In the example, 16:27 is the scheduled departure time, the train has a delay of 2 minutes, and 16:29 is the current departure time. If only the current departure time (Option 3) is displayed, the time will be shown in red if there is a delay.

Option 1 (same as before)

grafik

Option 2

grafik

Option 3
grafik

v2.1.0-BETA-1 Released - Install on your own risk

30 Oct 11:03
d9464b2
Compare
Choose a tag to compare

grafik

Added an option (disabled by default) to show a clock on the top right of the card. (same line than the title of the card)
Its a simple JavaScript clock and takes the time from the device (Mobile Phone or Browser)
The update may not happen at the exact second because its triggered by an Home Assistant card update

You can find the new option in the Advanced Settings Section

grafik

v2.0.0 Released

22 Oct 09:32
9adf514
Compare
Choose a tag to compare

22.10.2024 - Version 2.0.0

  • Formerly planned and announced as v1.6.0, now released as v2.0.0 due to the amount of changes.
  • v2.0.0 includes a complete GUI configuration, following the integration in HACS from the last version.
  • Added language files for English and German.
  • added "Only some destinations"

onlydestination: "Ostbahnhof;Holzkirchen"

If you want to see only some directions / destinations, you have to insert the EXACT names of the wanted destinations like they are shown in the connection display. (card)
The names should be ; separated. They can be , or space sepatared, but this can lead to problems if a , or a space is in the name of the destination.

onlydestination: "Graßlfing, Olchinger See;Olching, Georgenstraße"

  • Improved error handling in the custom card if a sensor is unavailable or deleted.
    • grafik
  • Improved data handling of the custom card during startup.
    • grafik
  • Fixed the deprecation warning.
  • Updated documentation to improve the installation process.

v1.6.0-BETA-5 - Install on your own risk

18 Oct 12:42
124d9e4
Compare
Choose a tag to compare

German language file added
Improved handling inside the custom cards
Some other minor changes
Documentation updated (check BETA branch for changes)

v1.6.0-BETA-4 - Install on your own risk

16 Oct 10:54
c1b86d8
Compare
Choose a tag to compare

Fixed the API URL
Fixed translations
Some other changes

Release v1.5.1

16 Oct 10:38
78e5808
Compare
Choose a tag to compare

This is a bugfix for the API change