Adjust block types, update intervals

I changed the block types to the ones we used with the old style of blocks and
set the update intervals for sensors.
Remove main method used for testing, remove cast