Modbus Switch Polling

Good evening I am new to setting up Modbus with HA. The issue I am having is that I can activate all 8 of the relays from HA but they will only stay active on the waveshare control relay board for 60 seconds. Now if I use Modbus pole the and activate the relays they will stay on until I turn them off. Also with Modbus pole the TXD and RXD light flash showing data activity. When i switch back to HA they flash one time with command of the relay. I have tried adding scan intervals. I am not doing something right here at all. I have been working at this for a few days and at a loss. I would greatly apricate any advice I have included a copy of my yaml file

modbus:

  • name: “Waveshare_TCP”
    type: tcp
    host: “192.168.50.142”
    port: 502

    delay: 0
    message_wait_milliseconds: 0
    timeout: 5
    switches:

    • name: “outdoor lights”
      address: 0
      slave: 1
      write_type: coil
      scan_interval: 15
    • name: “relay 2”
      address: 1
      slave: 1
      write_type: coil
      scan_interval: 15
    • name: “relay 3”
      address: 2
      slave: 1
      write_type: coil
      scan_interval: 15
    • name: “relay 4”
      address: 3
      slave: 1
      write_type: coil
      scan_interval: 15
    • name: “relay 5”
      address: 4
      slave: 1
      write_type: coil
      scan_interval: 15
    • name: “relay 6”
      address: 5
      slave: 1
      write_type: coil
      scan_interval: 15
    • name: “relay 7”
      address: 6
      slave: 1
      write_type: coil
      scan_interval: 15
    • name: “relay 8”
      address: 7
      slave: 1
      write_type: coil
      scan_interval: 15

https://community.home-assistant.io/t/how-to-help-us-help-you-or-how-to-ask-a-good-question/114371#oneone-format-it-properly-16

My apologizes. I will try and better explain the issues when I get home this evening

Good evening

I am new to setting up Modbus within Home Assistant (HA) and I am currently facing an issue with a Waveshare control relay board.

The problem is that while I can activate all 8 relays from HA, they only remain active on the board for 60 seconds before automatically deactivating.

However, when I use a different application, such as Modbus Poll, the relays stay on until I manually turn them off. Furthermore, with Modbus Poll, the TXD and RXD lights flash continuously, indicating data activity. When I switch back to HA, these lights only flash once when a relay command is sent.

I have already attempted to add various scan intervals in the configuration, but without success. I believe I am missing something fundamental in the HA setup and I would greatly appreciate any advice you can offer. I have attached a copy of my YAML file for reference.

modbus: [YAML File Attached]