ioBroker / ioBroker.mqtt

Mqtt server and client for ioBroker.
MIT License
54 stars 29 forks source link

Client/Subscriber: Subscribe pattern can't be set / doesn't save #330

Open LordOfTheSnow opened 1 year ago

LordOfTheSnow commented 1 year ago

Describe the bug
When trying to set the Subscribe Pattern in the Client/Subscriber mode, the pattern is cleared immediately when the focus moves away from the input field.

To Reproduce

  1. Configure the MQTT client/broker to Client/Subscriber mode, enter the connection parameters and test the connection.
  2. When successful, go to the MQTT settings tab
  3. Enter anything in the Subscribe Pattern field, e.g. _rtl_433/c2ec9d1270ea/devices/Nexus-T/2/199/temperatureC
  4. Hit tab to move to the next field
  5. The input is cleared immediately, you are not able to save a custom pattern, instead '#' (which seems to be the invisible default) is used which leads to ALL topics have been subscribed and will be stored in the ioBroker objects.

Expected behavior
The entered pattern is stored and used

Screenshots & Logfiles
n/a

Versions:

Additional context
n/a

Apollon77 commented 1 year ago

Did you tried to press tabor enter after entering a value in the field?

LordOfTheSnow commented 1 year ago

Oh well... I never tried ENTER as I wanted to add values in the following fields too.

With ENTER, I can add one or multiple subscriptions. Thanks for the quetion.

Still, I think it might be a good idea to have the value being saved on leaving the field with TAB too.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within the next 7 days. Please check if the issue is still relevant in the most current version of the adapter and tell us. Also check that all relevant details, logs and reproduction steps are included and update them if needed. Thank you for your contributions. Dieses Problem wurde automatisch als veraltet markiert, da es in letzter Zeit keine Aktivitäten gab. Es wird geschlossen, wenn nicht innerhalb der nächsten 7 Tage weitere Aktivitäten stattfinden. Bitte überprüft, ob das Problem auch in der aktuellsten Version des Adapters noch relevant ist, und teilt uns dies mit. Überprüft auch, ob alle relevanten Details, Logs und Reproduktionsschritte enthalten sind bzw. aktualisiert diese. Vielen Dank für Eure Unterstützung.

klein0r commented 1 year ago

Still, I think it might be a good idea to have the value being saved on leaving the field with TAB too.

This is an issue for the admin adapter (json component chips)