veista / nilan

Nilan integration for Home Assistant
Apache License 2.0
46 stars 11 forks source link

Configuration guidance for Sharewave Ethernet-to-RS485 converter #7

Closed MKBU2 closed 1 year ago

MKBU2 commented 1 year ago

Hi,

My setup:

image

image

I get "Invalid Response from Device" when trying to add the integration. Any ideas where the problem would be?

The modbus integration used to work in Openhab and previous USB-converter but I changed to ethernet-based for this specific integration in HA.

veista commented 1 year ago

Hi,

It propably is that your bridge is not ModBus TCP, but instead ModBus RTU over TCP. I havnt enabled official support for that yet, but you can try it by editing the device.py and replacing "tcp" with "rtuovertcp".

Nilan EC9 is not supperted yet, but I think you will help me with that.

veista commented 1 year ago

If that does not help, then you will have to try modifying the settings on your bridge. Please share the settings if you get it to work, it may help in future issues.

MKBU2 commented 1 year ago

If that does not help, then you will have to try modifying the settings on your bridge. Please share the settings if you get it to work, it may help in future issues.

This was on my mind because Sharewave seems to be quite popular and your integration very easy to install.

The manual doesn't clearly state that the converter could act in Modbus TCP state (if it isn't the NONE mode)

image

Kiitos jo näistä vinkeistä.

veista commented 1 year ago

Also I could add support for usb adapters, but I cannot debug this my self, so you would have to help me with that also and it might be difficult to do.

veista commented 1 year ago

If that does not help, then you will have to try modifying the settings on your bridge. Please share the settings if you get it to work, it may help in future issues.

This was on my mind because Sharewave seems to be quite popular and your integration very easy to install.

The manual doesn't clearly state that the converter could act in Modbus TCP state (if it isn't the NONE mode)

image

Kiitos jo näistä vinkeistä.

I would guess transparent is "rtuovertcp" and Modbus TCP is "tcp" so it should work. There might be some other setting that is wrong.

veista commented 1 year ago

Baudrate should be 19200 i think. And also destination and source ports should be both 502.

veista commented 1 year ago

Also make sure that your device id is 30. You can find this setting in the HMI menu.

MKBU2 commented 1 year ago

Changed the ports to 502.

With all custom components/nilan files as defaul I get:

Waveshare / Multi-host settings / Protocol = none -> Invalid response From the device

Waveshare / Multi-host settings / Protocol = Modbus TCP to RTU -> Unsupported Device

Something is changing..

The device id is 30

veista commented 1 year ago

Hi, unsupported device is correct. Open a new issue with the information from the read-me instructions.