2020-10-16 16:10:36 +02:00
|
|
|
/**
|
|
|
|
* @file HomieTypes.h
|
|
|
|
* @author your name (you@domain.com)
|
|
|
|
* @brief
|
|
|
|
* @version 0.1
|
|
|
|
* @date 2020-10-16
|
|
|
|
*
|
|
|
|
* @copyright Copyright (c) 2020
|
|
|
|
* All Settings, configurable in Homie
|
|
|
|
*/
|
|
|
|
#ifndef HOMIE_PLANT_CFG_CONFIG_H
|
|
|
|
#define HOMIE_PLANT_CFG_CONFIG_H
|
|
|
|
|
|
|
|
#include <Homie.h>
|
|
|
|
|
2021-07-09 21:50:51 +02:00
|
|
|
#define DEACTIVATED_PLANT -1
|
|
|
|
#define MISSING_SENSOR -2
|
2020-10-16 21:12:25 +02:00
|
|
|
|
2020-11-04 21:57:40 +01:00
|
|
|
typedef struct PlantSettings_t
|
|
|
|
{
|
2021-07-09 21:50:51 +02:00
|
|
|
HomieSetting<double> *pSensorDry;
|
2020-11-04 21:57:40 +01:00
|
|
|
HomieSetting<long> *pPumpAllowedHourRangeStart;
|
|
|
|
HomieSetting<long> *pPumpAllowedHourRangeEnd;
|
|
|
|
HomieSetting<bool> *pPumpOnlyWhenLowLight;
|
|
|
|
HomieSetting<long> *pPumpCooldownInHours;
|
2020-10-16 16:10:36 +02:00
|
|
|
} PlantSettings_t;
|
|
|
|
|
|
|
|
#endif
|