Raspberry Pi based heating and hot water controller