Fix actuator manual control with button press and overheat protection (#1403)

Manual control with a button press triggered the relay but 2 times (when pressing and releasing), fixing this.

Check that we have two consecutive readings of temperature above the threshold to trigger the actuator to OFF
And remove it by default to the shelly, as I see unjustified jumps of temperature above 80C.
This commit is contained in:
Florian authored and GitHub committed 2023-01-18 18:10:54 -06:00
1 parent 76724240f4
commit b4003d4ea1
4 files changed
+28 -17

No files matched your search

+4 -1
View File
@@ -279,6 +279,8 @@ build_flags =
'-DZgatewayIR="IR"'
'-DZgatewayBT="BT"'
'-DZactuatorONOFF="ONOFF"'
'-DACTUATOR_BUTTON_TRIGGER_LEVEL=0'
'-ACTUATOR_TRIGGER=true'
'-DZactuatorFASTLED="FASTLED"'
'-DZactuatorPWM="PWM"'
'-DZsensorINA226="INA226"'
@@ -296,6 +298,7 @@ build_flags =
'-DZsensorGPIOInput="GPIOInput"'
'-DZsensorGPIOKeyCode="GPIOKeyCode"'
'-DZsensorRN8209="RN8209"'
'-DMAX_TEMP_ACTUATOR=80'
'-DZgatewayWeatherStation="WeatherStation"'
'-DsimplePublishing=true'
'-DWM_PWD_FROM_MAC=true'
@@ -1066,7 +1069,7 @@ build_flags =
'-DACTUATOR_ONOFF_GPIO=26'
'-DZsensorADC="ADC"'
'-DADC_GPIO=32'
'-DMAX_TEMP_ACTUATOR=70'
;'-DMAX_TEMP_ACTUATOR=70' ; uncomment to activate automatic switch off following ESP32 temperature measurement (experimental)
'-DUSE_MAC_AS_GATEWAY_NAME'
'-DFRAMEWORK_ARDUINO_SOLO1'
'-DGATEWAY_MANUFACTURER="Shelly"'