Add ESP32 internal temperature measurement and automatic Actuator switch Off (#1384)
* Add automatic stop of relay following ESP32 temperature To avoid overheating when too much current goes through the device. Add internal temperature reporting to SYStoMQTT This function is not available with ESP32 S3 and C3 * Temp update and error log Update of the temperature to get closer to the datasheet of the ESP32 -40 +85C and add the module name to the error log
This commit is contained in:
1 parent
31ffdf1e2b
commit
c1cedcf333
5 files changed
+73
-3
No files matched your search
+4
-1
@@ -66,6 +66,8 @@ extra_configs =
|
||||
;default_envs = heltec-wifi-lora-32-868
|
||||
;default_envs = heltec-wifi-lora-32-915
|
||||
;default_envs = heltec-rtl_433
|
||||
;default_envs = esp32c3-dev-m1-ble
|
||||
;default_envs = esp32s3-dev-c1-ble
|
||||
;default_envs = nodemcuv2-rf
|
||||
;default_envs = nodemcuv2-rf-cc1101
|
||||
;default_envs = nodemcuv2-somfy-cc1101
|
||||
@@ -1041,13 +1043,14 @@ build_flags =
|
||||
'-DZactuatorONOFF="ONOFF"'
|
||||
'-DACTUATOR_ON=1'
|
||||
'-DACTUATOR_OFF=0'
|
||||
'-ACTUATOR_TRIGGER=true'
|
||||
'-DACTUATOR_TRIGGER=true'
|
||||
'-DZsensorGPIOInput="GPIOInput"'
|
||||
'-DINPUT_GPIO=4'
|
||||
'-DGPIO_INPUT_TYPE=INPUT'
|
||||
'-DACTUATOR_ONOFF_GPIO=26'
|
||||
'-DZsensorADC="ADC"'
|
||||
'-DADC_GPIO=32'
|
||||
'-DMAX_TEMP_ACTUATOR=70'
|
||||
'-DUSE_MAC_AS_GATEWAY_NAME'
|
||||
'-DFRAMEWORK_ARDUINO_SOLO1'
|
||||
'-DGATEWAY_MANUFACTURER="Shelly"'
|
||||
|
||||
Reference in new issue
Block a user