@keithh666, sudo apt-get install libffi-dev might help you out (without knowing much else about your setup).
@mitsumaui, would you mind testing again and see if the dimming works as expected?
Also, it would be nice if somebody with access to shades/cover/blinds could verify the cover implementation.