Schematic diagramm for hardware added

This commit is contained in:
2018-04-14 15:40:54 +03:00
parent 7ea21d9ccc
commit 81ea6e31a7
4 changed files with 5 additions and 5 deletions

BIN
hardware/LightHub.pdf Normal file

Binary file not shown.

View File

@@ -918,7 +918,7 @@ int Item::checkFM() {
int pwr = node.getResponseBuffer(3); int pwr = node.getResponseBuffer(3);
if (pwr > 0) aJson.addNumberToObject(out, "pwr", pwr / 10.); else aJson.addNumberToObject(out, "pwr", 0); if (pwr > 0) aJson.addNumberToObject(out, "pwr", pwr / 10.); else aJson.addNumberToObject(out, "pwr", 0);
if (ftemp>fset+FM_OVERHEAT_CELSIUS && set) if (ftemp>FM_OVERHEAT_CELSIUS && set)
{ {
mqttClient.publish("/alarm/ovrht", itemArr->name); mqttClient.publish("/alarm/ovrht", itemArr->name);
Ctrl(CMD_OFF); //Shut down Ctrl(CMD_OFF); //Shut down

View File

@@ -1121,7 +1121,7 @@ void thermoLoop(void) {
mqttClient.publish("/alarm/snsr", item->name); mqttClient.publish("/alarm/snsr", item->name);
} }
if (curtemp > itemTempSetting + THERMO_OVERHEAT_CELSIUS) mqttClient.publish("/alarm/ovrht", item->name); if (curtemp > THERMO_OVERHEAT_CELSIUS) mqttClient.publish("/alarm/ovrht", item->name);
thermostatCheckPrinted = true; thermostatCheckPrinted = true;
Serial.print(item->name); Serial.print(item->name);

View File

@@ -1,6 +1,6 @@
// Configuration of drivers enabled // Configuration of drivers enabled
#ifndef PIO_SRC_REV #ifndef PIO_SRC_REV
#define PIO_SRC_REV v0.994 #define PIO_SRC_REV v0.995
#endif #endif
#define TXEnablePin 13 #define TXEnablePin 13
@@ -10,8 +10,8 @@
#define IET_ATTEMPTS 1 #define IET_ATTEMPTS 1
#define THERMO_GIST_CELSIUS 2 #define THERMO_GIST_CELSIUS 2
#define THERMO_OVERHEAT_CELSIUS 5 #define THERMO_OVERHEAT_CELSIUS 38
#define FM_OVERHEAT_CELSIUS 5. #define FM_OVERHEAT_CELSIUS 40.
#define EEPROM_offset 32+6 #define EEPROM_offset 32+6