120 seconds for shower_min_duration

This commit is contained in:
proddy
2024-06-19 20:08:03 +01:00
parent 20beda740a
commit 1364fcca52
3 changed files with 3 additions and 3 deletions

View File

@@ -610,7 +610,7 @@ let settings = {
shower_alert: true,
shower_alert_trigger: 7,
shower_alert_coldshot: 10,
shower_min_duration: 1200,
shower_min_duration: 120,
rx_gpio: 23,
tx_gpio: 5,
phy_type: 0,

View File

@@ -78,7 +78,7 @@
#endif
#ifndef EMSESP_DEFAULT_SHOWER_MIN_DURATION
#define EMSESP_DEFAULT_SHOWER_MIN_DURATION 1200
#define EMSESP_DEFAULT_SHOWER_MIN_DURATION 120
#endif
#ifndef EMSESP_DEFAULT_SHOWER_ALERT_COLDSHOT

View File

@@ -46,7 +46,7 @@ class Shower {
bool shower_alert_; // true if we want the alert of cold water
uint32_t shower_alert_trigger_; // default 7 minutes, before trigger a shot of cold water
uint32_t shower_alert_coldshot_; // default 10 seconds for cold water before turning back hot water
uint32_t shower_min_duration_; // default 2 minutes (1200 seconds), before recognizing its a shower
uint32_t shower_min_duration_; // default 2 minutes (120 seconds), before recognizing its a shower
uint32_t next_alert_;
bool ha_configdone_ = false; // for HA MQTT Discovery
bool shower_state_;