Update temp.inc.sh

This commit is contained in:
2024-01-09 22:21:09 -06:00
parent 6d53f54ca9
commit 551f06598a

View File

@@ -431,7 +431,11 @@ CHECKTEMP_SERVICE_RUNSENSOR(){
elif [[ "${SENSOR}" = *"FAN"* ]]; then
temp_c=$(cat /sys/class/hwmon/hwmon2/fan1_input)
temp_h=''
echo "HERE: ${temp_c}"
if [ "${SENSOR}" == "Powerwall-FAN" ] && [ "${temp_c}" == "0" ]; then
pwmconfig &
sleep 4s
killall pwmconfig
fi
fi
elif [ "${PW_SENSOR_TYPE[${SENSORa}]}" == "remotesystem" ]; then