Update power.inc.sh

This commit is contained in:
2024-02-16 23:08:55 -06:00
parent 1ef4eace80
commit 81567fa757

View File

@@ -1216,7 +1216,7 @@ GET_TUYA_POWER(){
VOLT=$(echo "${INFO}" | grep '"6":' | cut -d' ' -f 4 | sed 's/,//g')
VOLT=$(echo "scale=1; ${VOLT}/10" | bc -l)
fi
[ "${WATT}" != "-1" ] && echo "${AMP}:${WATT}:${VOLT}"
[ "${WATT}" != "-1" ] && echo "${AMP}:${WATT}:${VOLT}" || echo "0:0:0"
fi
}