I have an idea and I wanted to get some advice on potential dangers and practicality. Looking at it now, I might be better off just buying a smart outlet type device from Amazon, but it would be more fun to do it myself.
Goals
** Save money on electrical bill
** Keep apartment at a stable temperature
Method
2 Raspberry Pi's, and various analog components, tbd
I have an Air Conditioner that came with my apartment which is some 8 years old, and isn't able to auto regulate itself. It's either on full blast all day resulting in an expensive ice box, or off all day creating a steamy sauna. I'm hoping to get things somewhere in the middle.
The strategy I have in mind is to setup my Rasberry Pi Zero W on the far wall, running a simple thermistor so I can get the +/- 1 or 2 degree temperature. That pi can also host an Apache server and save the temp data into a JSON file. Across the room is the A.C., which will need some sort of outlet intermediary. That is something I can plug the A.C. plug into which has a relay or such controlled by the 2nd Raspberry Pi before it plugs into the outlet. This way the Pi can control the logic of when to turn the A.C. on or off based on the temperature data is reading from the server across the room.
Few questions arise,
1.) Is serving the data with Apache the easiest method? If both Pi's have Bluetooth can they talk that way, this would be a new area to explore for me.
2.) Is a relay the best way to control the On/Off state of the A.C.? What would that be connected to the negative pole on the outlet and plug?
3.) Is this a bad idea that will ruin my AC, being turned on and off abruptly by cutting power rather than hacking it and using the dial?
Goals
** Save money on electrical bill
** Keep apartment at a stable temperature
Method
2 Raspberry Pi's, and various analog components, tbd
I have an Air Conditioner that came with my apartment which is some 8 years old, and isn't able to auto regulate itself. It's either on full blast all day resulting in an expensive ice box, or off all day creating a steamy sauna. I'm hoping to get things somewhere in the middle.
The strategy I have in mind is to setup my Rasberry Pi Zero W on the far wall, running a simple thermistor so I can get the +/- 1 or 2 degree temperature. That pi can also host an Apache server and save the temp data into a JSON file. Across the room is the A.C., which will need some sort of outlet intermediary. That is something I can plug the A.C. plug into which has a relay or such controlled by the 2nd Raspberry Pi before it plugs into the outlet. This way the Pi can control the logic of when to turn the A.C. on or off based on the temperature data is reading from the server across the room.
Few questions arise,
1.) Is serving the data with Apache the easiest method? If both Pi's have Bluetooth can they talk that way, this would be a new area to explore for me.
2.) Is a relay the best way to control the On/Off state of the A.C.? What would that be connected to the negative pole on the outlet and plug?
3.) Is this a bad idea that will ruin my AC, being turned on and off abruptly by cutting power rather than hacking it and using the dial?