Skip to content
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

I have an array comming in with booleans. I Want to assign every item of the array to a differant device #1033

Closed
BjornDeGloire opened this issue Dec 27, 2022 · 5 comments
Assignees

Comments

@BjornDeGloire
Copy link

I have a PLC that I read the inputs with modbus TCP. I receive an array with boolean's
[0,1,0,0,0,0,0,0,1,0,0,0,1,0,1,0]
The problem is that I want to assign every input to a unique device.
I do not succeed to change the device in thingsboard with a rule chain.
I tried to change the deviceName in metadata but that did not work.
We are thinking to send it to an integration after separating the array but it feels like a dirty fix to do it in this way.
How do I do this in a correct way in Thingsboard?

With friendly regards,

@ericprom
Copy link

Hopefully, after they fix issue #1030, we can work this out in the future.

@samson0v
Copy link
Contributor

Hi @BjornDeGloire, you can't do this dynamically using the default Modbus Connector.
You can try to do it from the opposite: configure the devices, read the register with them and, according to the legend of RuleChains, allocate the data you need.
Another solution is to write a custom connector.

@devaskim
Copy link
Contributor

devaskim commented Jan 3, 2023

@BjornDeGloire use Change originator rule chain node to assign data to another device

@samson0v
Copy link
Contributor

Hi @BjornDeGloire, any updates?

@BjornDeGloire
Copy link
Author

BjornDeGloire commented Jan 16, 2023 via email

@imbeacon imbeacon closed this as not planned Won't fix, can't repro, duplicate, stale Jan 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants