-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Object folder names starting with "/" dash do not work in the workflow #338
Comments
I think we need to allow "escaping of the / by e.g. / ... then we could persists a / |
I have the same problem and think this is because the node red iobroker nodes replaces the / with . everytime and there is no chance to disable this in the node. |
because it is that way in the node/adapter since years and changing this would be breaking. SO we need to find a way to allow to persist "/" when a "/" is wanted. |
Ok I understand, I asked, because I had a look at the code and would like to help. the replace Regex for the (1) could be: replace(/?<!/)//g, '.') I have seen that in the code there more then one places where the replace is done. I also had this problem with my wallbox and checked it there, with both solutions it looks like that it is working. |
The idea to have // be replcaed to / only and used that way could an idea ... that would be easier then a backslash-escape I think. Like the idea @mickym2 What do you think as one of the power users? I'm happy if you can do a PR then we can check that way (I also need to check code to find all places - only idea could be to centralize it (if it is the same in all places but that would be a bonus). |
I am not sure - if this could have any side effects. I tested an mqtt topic with // and this creates an empty folder oder additional hierarchy. If a / should be allowed then it should only possible when the new option format is switched to the iobroker format. The question is not only that the subscription pattern is working - more important would be how the msg.topic would be created to be still unique. The msg.topic should then have also a double // which is however in conflict with mqtt. |
I thought about the problem, I don't know it it can also come in other constellation. But for the creater of the issue it also occurs also with a dot in front of the slash. |
The problem is in iobroker, other adapters from where we deal with data, stick to the rules of iobroker. In there, "/ABC" is a valid name. This name can not be changed, as it identifies for example an external device, in my case a charging station. My current solution is a full mapping via local variables and a longer JS syncing the two "worlds". Short version: No, that would not solve the problem. :) |
@FlorianSchulze yes I have the same charging station adapter and it looks the same like your example. /Wally is the Name of my Wallbox in the object tree. Or you have another problem with the same adapter. Then I think we must write in German because I haven't understand yet. |
Same Problem. Again, the root cause is that node-red does not support names as iobroker does. The adapters using the iobroker specification and build names "/Wally" do a correct job. Just in Node.Red you are not able to work with these objects. If this is not a problem in red, what is one? ;) |
I have the same problem with the adapter "Renault 0.0.21". |
Sadly, yes. The origional problem is in blockly, where “/“ is not accepted. There is a ticket, but dont expect any movement as it is more than a year old. Alternatiely, you can ask for a “stringreplace” function in this adapter, as I recently asked for. That would do the job and it is very common that “/“ is the beginning on OCPP.
For myself, i wrote a small tweak to do this, you also might want to setup some javascript to operate in blockly. But in short, yes, this still sucks. (:
… On 18. Aug 2023, at 18:21, gitpower2017 ***@***.***> wrote:
I have the same problem with the adapter "Renault 0.0.21".
There is action/... and charge/...
The / is replaced with a . every time.
Is there a workaround for the problem?
—
Reply to this email directly, view it on GitHub <#338 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AJYRJSOU7FY6DDPFPNIMHOLXV6I7HANCNFSM6AAAAAARBKLX6U>.
You are receiving this because you were mentioned.
|
The solution is: to not use "/" in the names. Please open Issues, by the adapters, that generates such a "xxx/" names |
Hi GermanBluefox, that is exactly NOT a solution: Many other dependencies (adapters like NIBE uplink, OCPP protocoll specifications) do exactly build their statis sets have "/" and that makes it unusable in the way it is. It is very common and we potentially never catch up with it. |
Having folders named like "/ABL" can be selcted - but that leads to a "not exists" message and it does not work. In the screenshot find the datastructure, i connect "...0./ABL-10115184.transactionActive" -- does not work. Renaming the path to "...9´0.ABL-10115184.transactionActive" works.
The text was updated successfully, but these errors were encountered: