If I run
sudo hd-idle -t sda
the HDD enters sleep mode. If I run
sudo hd-idle -i 0 sda -i 300 -d
I can see reads and writes to the HDD. These numbers do not change for 30 minutes but the HDD does not enter sleep mode. So I guess hd-idle is not working.