Open thohoj opened 1 year ago
I'm not sure if this makes sense that much ... It is still ioBroker and states and objkects have a defined structure with "." and no "/" ... Magically sonverting entered strings can also lead to very unexpected results for other users.
Additionally the selectID dialog is generic to be used by many adapters and is coming from Admin for that and this is a very special convenience wish for node-red in my eyes ...
Mmmh, I thought this would be a simple string replace in the callback function (iobroker.html, where newId is put into node-input-topic). I would have always replaced '.' with '/' there if oldId contains a '/'.
Since version 3.0.1 the default value for 'Topic format' was 'MQTT style'. I thought: ok, it's the future how topics will be handled by ioBroker.node-red, so let's use it everywhere in my flows. No need to distinguish between ioBroker and MQTT. But more and more I get the feeling to be mistaken.
In this case I think reverting my flows to ioBroker format is the best I can do now. It's just annoying to then have to remember to set this default value for 'Topic format' back to ioBroker every time I place an ioBroker node in my flows.
basically I understand your thoughts ... and maybe yes it could be that easy (but then it gets pot even more unexpected for some users that were used to that it is different ...
We need to check and think about this
Since the topic of ioBroker nodes can be formatted as MQTT it should be possible to select IDs in the same format.
Current behavior is: Changing an MQTT-style topic by invoking the SelectID dialog (...) does not initially locate the topic in the dialog. You have to navigate to the new topic and select it. After the dialog closes the new ID found in the topic is not in MQTT-style anymore. Instead you have to replace all '.' manually with '/'.