mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
added shower trigger and coldshot times - #436
This commit is contained in:
@@ -998,6 +998,10 @@ bool System::command_settings(const char * value, const int8_t id, JsonObject &
|
||||
|
||||
node["shower_timer"] = settings.shower_timer;
|
||||
node["shower_alert"] = settings.shower_alert;
|
||||
if (settings.shower_alert) {
|
||||
node["shower_alert_coldshot"] = settings.shower_alert_coldshot / 1000; // seconds
|
||||
node["shower_alert_trigger"] = settings.shower_alert_trigger / 60000; // minutes
|
||||
}
|
||||
|
||||
node["rx_gpio"] = settings.rx_gpio;
|
||||
node["tx_gpio"] = settings.tx_gpio;
|
||||
|
||||
Reference in New Issue
Block a user