ADS component does not work with hassIO?!

Does anyone have ADS component up and running on a raspi 3 hassIO? I only get this error

Error during setup of component ads
Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/homeassistant/setup.py”, line 148, in _async_setup_component
component.setup, hass, processed_config) # type: ignore
File “/usr/local/lib/python3.6/concurrent/futures/thread.py”, line 56, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/ads/init.py”, line 57, in setup
import pyads
File “/usr/local/lib/python3.6/site-packages/pyads/init.py”, line 5, in
from .ads import open_port, close_port, get_local_address, read_state,
File “/usr/local/lib/python3.6/site-packages/pyads/ads.py”, line 23, in
from .pyads_ex import (
File “/usr/local/lib/python3.6/site-packages/pyads/pyads_ex.py”, line 46, in
_adsDLL = ctypes.CDLL(adslib)
File “/usr/local/lib/python3.6/ctypes/init.py”, line 348, in init
self._handle = _dlopen(self._name, mode)
OSError: Error loading shared library /usr/local/lib/python3.6/site-packages/pyads/adslib.so: Exec format error

This is my setup

# ADS
ads:
 device: '192.168.10.xx.1.1'
 port: 851
 ip_address: 192.168.10.xx

Yeah, me the same.

My setup of Hasio:

ads:
device: '192.168.0.105.1.1'
port: 801
ip_address: '192.168.0.105'

configuration on my CX9020:

image

and all I’ve got is this:

Error during setup of component ads
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/homeassistant/setup.py", line 148, in _async_setup_component
    component.setup, hass, processed_config)  # type: ignore
  File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/ads/__init__.py", line 57, in setup
    import pyads
  File "/usr/local/lib/python3.6/site-packages/pyads/__init__.py", line 5, in <module>
    from .ads import open_port, close_port, get_local_address, read_state, \
  File "/usr/local/lib/python3.6/site-packages/pyads/ads.py", line 23, in <module>
    from .pyads_ex import (
  File "/usr/local/lib/python3.6/site-packages/pyads/pyads_ex.py", line 46, in <module>
    _adsDLL = ctypes.CDLL(adslib)
  File "/usr/local/lib/python3.6/ctypes/__init__.py", line 348, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: Error loading shared library /usr/local/lib/python3.6/site-packages/pyads/adslib.so: Exec format error

Anyone have succeeded in this ADS component anyway?

I mannaged to acces my variables via HTTP post and get. For example:

switch:
  - platform: command_line
switches:
  gabinet:
    command_on: 'curl -k "http://192.168.0.105/or_debug.asp?set=GABINET.bO9_HMI_On:true"'
    command_off: 'curl -k "http://192.168.0.105/or_debug.asp?set=GABINET.bO9_HMI_Off:true"'
    command_state: "curl -k http://192.168.0.105/or_debug.asp?get=GABINET.bO9"
    value_template: '{{ "true" in value }}'

But after night, my PLC is freezed and it need restart. So it’s a dead end. PLS help anyone! :slight_smile:

OK, I think i’ve got it. So I install hassbian instead of hass.io and ads suddenly work just fine! I guess this ADS component does not work with hass.io, only with hassbian.