timlaing / modbus_local_gateway

Home Assistant Modbus Tcp Gateway
MIT License
11 stars 3 forks source link

Closing connection - Device not available #19

Open sftgunner opened 2 months ago

sftgunner commented 2 months ago

Currently getting the error [custom_components.modbus_local_gateway.tcp_client] Closing connection - Device not available AsyncModbusTcpClientGateway 10.0.22.250:502 [1]. I am using the same WaveShare Wi-Fi to RS485 as recommended, along with my Heatmiser Edge thermostat. I've got a very barebones yaml set up, and keep getting the error above. I initially saw it working briefly, but haven't seen it function again. The native HomeAssistant MODBUS integration continues to be able to interact with the device fine. Any idea what might be causing this?

Basic yaml:

device:
  manufacturer: Heatmiser
  model: Edge
  operation_mode:
    title: Current operation mode
    address: 33
    control: number
    icon: mdi:serial-port
    precision: 0
    number:
      min: 0
      max: 5

entities:
  machine_status:
    title: Code version number
    address: 1
AravindPrabhs commented 2 months ago

How are you configuring the gateway module ? I wasn't able to get the device to connect (over the standard 502 port). My configuration step was setting the data transfer mode to "modbus tcp <=> modbus rtu" and then configuring the uart settings appropriately, then restarting. all using the web gui.