This might be helpful:
https://community.home-assistant.io/t/modbus-read-coils-not-as-binary/406901/12?u=pspot2