Skip to content

Latest commit

 

History

History
60 lines (47 loc) · 1.25 KB

software-guide.md

File metadata and controls

60 lines (47 loc) · 1.25 KB

Pool Controller 2.0 | 🏊 Smart Swimmingpool

Software Guide

Development Environment

Required Libraries

Defines

const uint8_t PIN_DS_SOLAR = D5;  // Pin of Temp-Sensor Solar
const uint8_t PIN_DS_POOL  = D6;  // Pin of Temp-Sensor Pool

const uint8_t PIN_RELAY_POOL  = D1;
const uint8_t PIN_RELAY_SOLAR = D2;

const uint8_t TEMP_READ_INTERVALL = 30;

Configuration

How to upload JSON-config see the Homie-esp8266 docu

Example config.json

{
  "name": "Pool Controller",
  "device_id": "pool-controller",
  "wifi": {
    "ssid": "<SSID>",
    "password": "<XXX>"
  },
  "mqtt": {
    "host": "<MQTT_HOST>",
    "port": 1883
  },
  "ota": {
    "enabled": true
  },
  "settings": {
    "loop-interval": 60,
    "temperature-max-pool": 28,
    "temperature-min-solar": 50,
    "temperature-hysteresis": 0.5
  }
}