Twincat 2 ADS

Hi,

Fairly new to HA.
I installed HA into virtualbox and after setting up my connection with my twincat 2 PLC everything worked fine. I had multiple switches in the configuration.yaml and could read the state from all of them.
I now installed HA on an raspberry PI 4 (4gb), copied the configuration.yaml and can now only read the state of the first switch. When I blank the first one out (with # in front) it will read the second one and so on. All the others switches (variables) show as “not available”

configuration:

ads:
  device: '192.168.0.3.1.1'
  port: 801

switch:
  - platform: ads
    adsvar: .bool1
  - platform: ads
    adsvar: .bool2
  - platform: ads
    adsvar: .bool3
  - platform: ads
    adsvar: .bool4

Any ideas why this is happening?