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

Modbus RTU option? #3

Open
SigLinJo opened this issue Dec 20, 2024 · 4 comments
Open

Modbus RTU option? #3

SigLinJo opened this issue Dec 20, 2024 · 4 comments

Comments

@SigLinJo
Copy link

Hi.

So happy to find this! I have Swegon Casa R7s that I have integrated with manual Modbus RTU through an RS485 to USB adapter in my homeassistant computer. Is it possible to add an configuration alternative for using Modbus RTU instead of TCP/IP? Would have liked to use your component instead of manual Modbus code that are hard to get an overview over and not working perfectly...

@eriknn
Copy link
Owner

eriknn commented Dec 20, 2024

Hi,
I’ll most likely not develop more on this driver, but rather this one:
https://github.com/eriknn/ha-modbus_tcpip

That one is intended as a general «all-in-one» driver. It might support modbus RTU eventually, but I only have TCP/IP myself, so I would need someone else to test for me. I’ve got a different integration using tcp or serial, so I can copy alot of setup stuff from there. Don’t know about the RTU-driver itself though, but I would guess that’s already existing and easy to implement…

@SigLinJo
Copy link
Author

Thank you for getting back to me. The internal Modbus integration in homeassistant supports both TCP/IP and RTU so maybe you could use it for the connection and only add device configuration through the custom componet? I'm not familiar with how it works but what you are describing it sounds like a really good idea to be able to add Modbus devices with already built configuration files that only need some optional user customisation. I would be happy to test any RTU implementation on my system.

@eriknn
Copy link
Owner

eriknn commented Dec 21, 2024

Ah, when I meant the modbus driver I meant "pymodbus" which I guess is the same driver as the HA "Modbus" integration uses. I added support for RTU now, wasn't too much work. But I have no idea if it works. Head over there and try it. Obviously, the integration needs to change name, but that was clear from the beginning. Also, it's lacking logo etc. Don't really know what to use, but need to figure out integration name first.

@eriknn
Copy link
Owner

eriknn commented Jan 6, 2025

@SigLinJo

Did you try the other integration?

Edit: Bump for response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants