aaronbronow / Oasis-Spa

An MQTT and traditional GPIO Enabled Hot Tub and Pool controller for the Raspberry Pi

Home Page:http://your-raspberry-pi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Oasis-Spa

An MQTT Enabled Hot Tub controller for the Raspberry Pi

3/23/18 PM: Getting better. Release v1.5 published. Rick will be publishing his Pre-Oasis bugfix release as v1.2 in the Master branch. WIKI filled out and at least to a point where someone can get somewhere.

3/23/18: This is a mess right now, and not even sure if I will keep it public. It works great, with both MQTT and Traditional GPIO controlled RPi relays. If you're interested let me know and I can explain it to you. Otherwise for now, this is just a test. At this point installing the Oasis Spa requires a full Raspberry Pi image to be flashed to your SD card. You can start with the instructables mentioned below. After that, there are several dependencies that need installing, then finally the Oasis Spa mod web files and DB.

The Oasis Spa Controller was built on Rick Feenstra’s excellent project. (http://www.instructables.com/id/Hottub-Pool-Controller-Web-Interface/) He built it for his own purposes, controlling a traditional Hot Tub with traditional pumps and heater. He built the website which controls the Raspberry Pi’s GPIO pins directly. The functionality is perfect, but I wanted to be able to use wireless IoT switches. Since my tub is an inexpensive inflatable model, and I’m using propane heat, my power requirements don’t get into high-voltage territory. Instead of re-writing the website’s functions to adapt it to MQTT communication we are running a program which listens to the state of the Raspberry’s GPIO pins. If this program detects that a change has been made from ON/OFF it will fire off the appropriate MQTT message to the device associated with that Pin. In this way the website will still function as Rick set it up to do, as well as adding new IoT functionality.

Currently, the process for assigning, and configuring MQTT devices is a manual one. You’ll have to edit the config file yourself for every device you want to add. It isn’t ideal, but I don’t have the scripting chops to make it happen via the website directly, maybe you do? This functionality is accomplished with the GitHub project: Hallonlarm (https://github.com/hemtjanst/hallonlarm). The program comes installed with the Oasis Spa Controller Raspberry Pi image. Your job will be to supply the MQTT Broker address and configure each MQTT device so the program knows how to communicate to/from and which pin it should be assigned to. Additionally, there is handy functionality that can invert ON/OFF (1/0) state.

Oasis Spa is a lightweight Raspberry Pi based Hot Tub controller. Fully configurable with the following features

  • Automatic heating schedules
  • Time based schedules
  • Individual device schedules
  • Trigger Actions based on Temp
  • Overheat monitor
  • Frost monitor
  • Temperature recording
  • Mobile optimized interface
  • MQTT device control
  • Based on a vanilla RPi Jessie
  • Standard GPIO control of anything a Raspberry Pi can access
  • Unlimited temperature sensors
  • Configurable views on the main page
  • Tablet optimized page
  • HTTP API for device/site/tub control

About

An MQTT and traditional GPIO Enabled Hot Tub and Pool controller for the Raspberry Pi

http://your-raspberry-pi

License:GNU General Public License v3.0


Languages

Language:PHP 79.0%Language:CSS 13.9%Language:HTML 3.8%Language:Hack 1.8%Language:JavaScript 1.4%