Hi. Im trying to make boiler control using Raspberry Pi and Home Genie. Boiler control itself and temperature monitoring will be done by GPIO, plus in future i want to make it smarter by using data from weather forecast too.
Unfortunately i believe there is no ready logic, widgets or modules which could help me with that - and i find that little bit strange, because usually boiler control is one of main tasks of home automation systems. But no worries - i can make logic myself and share it with community:) I need some help though. I have some basic python, cron, etc. skills, i could be even willing to learn CSharp, but i dont know where to start with programing. I dont need any extra hardware support though, im just using GPIO.
First of all i would need something to work as watchdog module, what checks if Raspberry and Home Genie is working properly, if not resets whole thing. Im afraid that this cannot be done in software, but who knows - quick search showed me that Domoticz R-Pi based HA system has software watchdog. Anyway, nobody would want being charged thousands of pounds for gas at the end of the month, or freeze to death overnight, only because of some software error.
Boiler control module itself.
We have two options here - first one is basic controlling of boiler using pre-set times when it should run. I believe this could be currently done by adding lots of On-Off switches on my dashboard - one for every 15 minutes in 24hours, and then making cron based task which checks if switch for current time is On, and if yes - setting "1" state on one of GPIO pins.
Another option is thermostat, which checks current temperature and if it is lower than pre-set value runs boiler. Sounds simple to make, but it gets tricky, because boiler shouldnt be On all the time until we reach desired temperature. It should be on On-Off 15 minutes cycle until temperature reaches pre-set value +3 (to make hysteresis loop). I really dont have idea how this can be done in HomeGenie - i believe i should make some global variable if boiler should be in On-Off loop, and then another cron based task which turns it on and off every 15 minutes.
I also thought about adding presence checking using Wifi. I would need to read and parse data from network router - probably using external script in python or php, and somehow pass this data to HomeGenie - we dont want boiler running when there is nobody in the house.
Any suggestions please?