ACME power switches, python bindings cannot use in_active iio attribute
For ACME Power Switch control ina2xx linux driver has been customized to add in_active attribute to control switches via GPIOs. This is working as expected from sysfs perspective: /sys/bus/iio/devices/iio:device0/in_active This appears correctly in iio_attribute, visible via iio_info
Can't explain why this is not reflected in the iio python bindings. The additional in_active attribute is not available from python then cannot be used in the expected way: threads[index].dev.attrs['in_active'].value = str(int(data))
As a workaround, we are writing directly into sysfs file: subprocess.run("echo 1 > /sys/bus/iio/devices/iio:device0/in_active", shell=True)