wimb0 / home-assistant-saj-r5-modbus

Home Assistant Component for reading data locally from SAJ R5 (and Zonneplan One) Inverters through modbus TCP.
MIT License
30 stars 12 forks source link

Add option for modbus to usb converter #90

Open manusjevanalles opened 1 week ago

manusjevanalles commented 1 week ago

Add option for modbus to usb converter.

Currently, there is only the option to use a modbus to ethernet converter when using this integration. I am reading the modbus values using a modbus to usb converter, directly plugged into the server running Home Assistant. Would it be possible to add the option to use a usb converter?

wimb0 commented 3 days ago

I am not sure if I can add this. Does the converter present itself as a serial port? It may be a dirty workaround, but you could use something like ser2net.

manusjevanalles commented 1 day ago

The converter is indeed presented as serial port, and added as following to modbus.yaml: