If you have a Raspberry Pi, you can try out the BierBot Bricks integration. Code is available for . If you want to build one yourself, checkout the following ressources:
How to add your Raspberry Pi to bricks.bierbot.com
Please refer the section of the repository where the free code is located.